UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
zttest.H
1 /* zttest.H */
2 /* $Id: zttest.H,v 3.2 2004/08/09 11:05:58 vlad Exp $ */
3 #ifndef __zttest_H
4 #define __zttest_H
5 
6 #include <X11/Intrinsic.h>
7 
8 #include <zm/ZtMain.H>
9 #include <zm/ZtScrollBar.H>
10 
11 
12 #define grph_base 100
13 
14 #define grpv_base 200
15 
16 #define grnh_base 300
17 #define grnh_scrolled (grnh_base+1)
18 
19 #define grnv_base 400
20 #define grnv_scrolled (grnv_base+1)
21 
22 
24 {
25 public:
26 
27  ZTTestBones (const char* szAppName,
28  int argc, char* argv[]);
29 
30  /*
31  * Application functionality
32  */
33 
34  virtual void create_gui ();
35 
36  virtual void init_zgraphics ();
37 
38  virtual void expose_zgraphics ();
39 
40  virtual void event_loop ();
41 
42  /*
43  * Tools to extend GUI
44  */
45 
46  virtual void add_menu_item (const char* szSubMenu,
47  const char* szItem,
48  XtCallbackProc cb = NULL);
49 
50  virtual void add_submenu (const char* szSubMenu,
51  const char* szSubItem);
52 
53  /* Z tools part */
54  ZtMain *vMaster;
55  ZtScrollBar *vSbVer, *vSbHor;
56 
57 protected:
58 
59  /* GUI part */
60  XtAppContext rAppContext;
61  Widget wToplevel;
62  Widget wMainWindow;
63  Widget wMenuBar;
64  Widget wToolbar;
65  Widget wLogForm;
66  Widget wWorkForm, wHScrollbar, wVScrollbar, wWorkplace;
67  Widget wFileSubMenu, wFileButton;
68  Widget wFileExitButton, wFileSaveImageButton;
69 
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);
75 
76 };
77 
78 
79 #endif /* zttest.H */
Definition: ZtMain.H:32
Definition: ZtScrollBar.H:25
Definition: zttest.H:23