00001 00002 #ifndef _APP_H_ 00003 #define _APP_H_ 00004 00005 #include "cam.h" 00006 00007 typedef struct _Cnc2D Cnc2D; 00008 struct _Cnc2D 00009 { 00010 GtkWidget *window; 00011 GladeXML *xml; 00012 gchar *filename; 00013 GdkDrawable *draw_area; 00014 GtkWidget *draw_widget; 00015 GdkGC *gc; 00016 GtkWidget *filedialog; 00017 GtkStatusbar *statusbar; 00018 gchar *infotext; 00019 GtkFileFilter *img_filter; 00020 gfloat zoom; 00021 CAM__HeightMap *HeightMapSource; 00022 CAM__HeightMap *HeightMapView; 00023 CamSetup *CamSet; 00024 }; 00025 Cnc2D *app; 00026 00027 Cnc2D *app__new (void); 00028 void app__view_redraw(void); 00029 void app__showmap(CAM__HeightMap *HeightMap); 00030 void app__set_infobar (gchar *text_str); 00031 void app__set_sizeinfo (void); 00032 void app__load_file (gchar *filename, gboolean use_rg, gboolean invert); 00033 00034 #endif