diff options
author | Thomas White <taw@physics.org> | 2021-05-11 10:54:49 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2021-05-11 10:57:13 +0200 |
commit | d22d7a79c3cded54dd9203622ee0071bdcea8527 (patch) | |
tree | add32cbd61a60d14254a22b6cfdfff700913e7f8 /src/crystfelsymmetryselector.h | |
parent | dc1689e674b1b48c73cee2b2957e42f766d8dbf0 (diff) |
Add the 'real' implementation of CrystFELSymmetrySelector
Closes: https://gitlab.desy.de/thomas.white/crystfel/-/issues/13
Diffstat (limited to 'src/crystfelsymmetryselector.h')
-rw-r--r-- | src/crystfelsymmetryselector.h | 34 |
1 files changed, 31 insertions, 3 deletions
diff --git a/src/crystfelsymmetryselector.h b/src/crystfelsymmetryselector.h index f3ce3170..5f32e733 100644 --- a/src/crystfelsymmetryselector.h +++ b/src/crystfelsymmetryselector.h @@ -32,6 +32,8 @@ #include <gtk/gtk.h> #include <glib-object.h> +#include <cell.h> + #define CRYSTFEL_TYPE_SYMMETRY_SELECTOR (crystfel_symmetry_selector_get_type()) #define CRYSTFEL_SYMMETRY_SELECTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ @@ -49,17 +51,43 @@ #define CRYSTFEL_SYMMETRY_SELECTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), \ CRYSTFEL_TYPE_SYMMETRY_SELECTOR, CrystFELSymmetrySelector)) +struct pointgroup_widget +{ + GtkWidget *w; + const char *symbol; + int centro; + int sohnke; + LatticeType lattice_type; + char *unique_axis; +}; + + struct _crystfelsymmetryselector { - GtkBox parent_instance; + GtkButton parent_instance; /*< private >*/ - GtkWidget *entry; + GtkWindow *parent_window; + GtkWidget *label; + GtkWidget *dialog; + GtkWidget *lattice_combo; + GtkWidget *sohnke_checkbox; + GtkWidget *centro_checkbox; + GtkWidget *flowbox; + GtkWidget *unique_axis_combo; + GtkWidget *weird; + GtkWidget *rhombo1; + GtkWidget *rhombo2; + GtkWidget *nonbio; + int have_pg; + int n_pgs; + + struct pointgroup_widget *pointgroups; }; struct _crystfelsymmetryselectorclass { - GtkBoxClass parent_class; + GtkButtonClass parent_class; }; typedef struct _crystfelsymmetryselector CrystFELSymmetrySelector; |