aboutsummaryrefslogtreecommitdiff
path: root/src/displaywindow.h
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2009-12-15 05:54:51 -0800
committerThomas White <taw@bitwiz.org.uk>2009-12-16 01:54:12 -0800
commita97808a51b9e15df23307115ca889e01c604c0dc (patch)
tree67c6987fe5f561616d17a548beeb0b05714c2204 /src/displaywindow.h
parent4d4aa2f6e2a98461d022d6ce494c58b04b586711 (diff)
Introduce 'hdfsee'
Diffstat (limited to 'src/displaywindow.h')
-rw-r--r--src/displaywindow.h62
1 files changed, 62 insertions, 0 deletions
diff --git a/src/displaywindow.h b/src/displaywindow.h
new file mode 100644
index 00000000..587cdb23
--- /dev/null
+++ b/src/displaywindow.h
@@ -0,0 +1,62 @@
+/*
+ * displaywindow.h
+ *
+ * Quick yet non-crappy HDF viewer
+ *
+ * (c) 2006-2009 Thomas White <thomas.white@desy.de>
+ *
+ * Part of CrystFEL - crystallography with a FEL
+ *
+ */
+
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#ifndef DISPLAYWINDOW_H
+#define DISPLAYWINDOW_H
+
+
+typedef struct {
+ GtkWidget *window;
+ GtkWidget *entry;
+} BinningDialog;
+
+
+typedef struct {
+ GtkWidget *window;
+ GtkWidget *entry;
+} BoostIntDialog;
+
+
+typedef struct {
+
+ GtkWidget *window;
+ GtkWidget *drawingarea;
+ GtkUIManager *ui;
+ GtkActionGroup *action_group;
+ GdkPixbuf *pixbuf;
+
+ struct hdfile *hdfile;
+
+ /* Dialog boxes */
+ BinningDialog *binning_dialog;
+ BoostIntDialog *boostint_dialog;
+
+ int width;
+ int height; /* Size of the drawing area */
+ int binning;
+ int boostint;
+
+ int show_col_scale;
+ int monochrome;
+ GdkPixbuf *col_scale;
+
+} DisplayWindow;
+
+/* Open an image display window showing the given filename, or NULL */
+extern DisplayWindow *displaywindow_open(const char *filename);
+
+
+#endif /* DISPLAYWINDOW_H */