diff options
author | Thomas White <taw@bitwiz.org.uk> | 2011-02-18 16:31:40 -0800 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:15 +0100 |
commit | 6fb8d4b727b82f32168f9ba44a1d4f5c5033d181 (patch) | |
tree | 77037316f3f13b257d81670b969aac4d3274fdbf /src/dw-geomatic.h | |
parent | 83af8912dcdc58423298e50441617ebce26891a6 (diff) |
Introduce 'geomatic'
Diffstat (limited to 'src/dw-geomatic.h')
-rw-r--r-- | src/dw-geomatic.h | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/src/dw-geomatic.h b/src/dw-geomatic.h new file mode 100644 index 00000000..0482d26c --- /dev/null +++ b/src/dw-geomatic.h @@ -0,0 +1,68 @@ +/* + * dw-geomatic.h + * + * GUI geometry calibration + * + * (c) 2006-2011 Thomas White <taw@physics.org> + * + * Part of CrystFEL - crystallography with a FEL + * + */ + + +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif + +#ifndef DW_GEOMATIC_H +#define DW_GEOMATIC_H + +#include <gtk/gtk.h> + +#include "cell.h" +#include "reflist.h" + + +struct gmdialog { + GtkWidget *window; + GtkWidget *entry; +}; + + +typedef struct { + + GtkWidget *window; + GtkWidget *drawingarea; + GtkUIManager *ui; + GtkActionGroup *action_group; + GdkPixbuf *pixbuf; + gulong motion_callback; + + struct hdfile *hdfile; + struct image *image; + int width; + int height; + double boostint; + + /* Dialog boxes */ + struct gmdialog *boostint_dialog; + + int show_col_scale; + int scale; + GdkPixbuf *col_scale; + + double motion_origx; + double motion_origy; + + UnitCell *cell; + double pos_x; + double pos_y; + double pos_z; + +} DWGeomatic; + +/* Return an image display window showing the given filename, or NULL */ +extern DWGeomatic *geomatic_open(const char *filename); + + +#endif /* DW_GEOMATICs_H */ |