/* * displaywindow.h * * Quick yet non-crappy HDF viewer * * (c) 2006-2009 Thomas White * * Part of CrystFEL - crystallography with a FEL * */ #ifdef HAVE_CONFIG_H #include #endif #ifndef DISPLAYWINDOW_H #define DISPLAYWINDOW_H typedef struct { GtkWidget *window; GtkWidget *entry; } BinningDialog; typedef struct { GtkWidget *window; GtkWidget *entry; } BoostIntDialog; struct numberswindow { GtkWidget *window; GtkWidget *labels[17*17]; unsigned int cx; unsigned int cy; }; typedef struct { GtkWidget *window; GtkWidget *drawingarea; GtkUIManager *ui; GtkActionGroup *action_group; GdkPixbuf *pixbuf; gulong motion_callback; struct hdfile *hdfile; /* Dialog boxes */ BinningDialog *binning_dialog; BoostIntDialog *boostint_dialog; struct numberswindow *numbers_window; 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, const char *peaks, int boost, int binning); #endif /* DISPLAYWINDOW_H */