6 #include <X11/Intrinsic.h>
9 #include <zm/ZtScrollBar.H>
17 #define grnh_scrolled (grnh_base+1)
20 #define grnv_scrolled (grnv_base+1)
28 int argc,
char* argv[]);
34 virtual void create_gui ();
36 virtual void init_zgraphics ();
38 virtual void expose_zgraphics ();
40 virtual void event_loop ();
46 virtual void add_menu_item (
const char* szSubMenu,
48 XtCallbackProc cb = NULL);
50 virtual void add_submenu (
const char* szSubMenu,
51 const char* szSubItem);
60 XtAppContext rAppContext;
66 Widget wWorkForm, wHScrollbar, wVScrollbar, wWorkplace;
67 Widget wFileSubMenu, wFileButton;
68 Widget wFileExitButton, wFileSaveImageButton;
70 static void WorkplaceEH (Widget w, XtPointer pUserData, XEvent* xev,
71 Boolean* continue_to_dispatch);
72 static void ExitCB (Widget w, XtPointer pUserData, XtPointer pCallData);
73 static void SaveImageCB (Widget w, XtPointer pUserData, XtPointer pCallData);
74 static void ExposeCB (Widget w, XtPointer pUserData, XtPointer pCallData);