UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
QfOptions.H
1 /* QfOptions.H */
2 /* $Id: QfOptions.H,v 1.4 2001/11/19 17:39:32 vlad Exp $ */
3 #ifndef __QfOptions_H
4 #define __QfOptions_H
5 
6 
7 #include <mix/WidgetAr.H>
8 #include <zm/Zm.h>
9 
10 #include <zm/qvfcdefs.h>
11 #include <zm/QfBrick.H>
12 
13 
14 /***********************************************************************
15  * Options menu object. Allows to select among different predefined
16  * alternatives.
17  */
18 class QfOptions: public QfBrick
19 {
20 protected:
21 
22  /* Temporal table to store list of options */
23  XmStringTable xmsOptions;
24 
25  /* Temporal table to store list of icons */
26  ZmBitmapSource *iconOptions;
27 
28  /* Temporal variable to store label */
29  XmString xmsLabel;
30 
31  /* Variable to store currently selected option; always is actual */
32  int iCurOption;
33 
34  /* Pointer at external variable to make actual only
35  when store_gui() is called */
36  int *pExtOption;
37 
38  /* Array of option buttons */
39  WidgetAr warOptions;
40 
41  /* wSelf = wForm */
42  Widget wOptionLabel, wOptionMenu, wOptionsList;
43 
44  /* wOptionMenu. */
45  virtual void create_self (Widget wParent);
46 
47  /* Activate with callback when user selects other option. */
48  static void changed_cb (Widget w, XtPointer pUserData,
49  XtPointer pCallData);
50 
51 public:
52 
53  /* Enumerated options. */
54  QfOptions (char* szLabel, int* pIndex, int nOptions, char** szOptions);
55  QfOptions (char* szLabel, int* pIndex, int nOptions, ZmBitmapSource* icons);
56  QfOptions (char* szLabel, int* pIndex, ...);
57 
58  /*
59  * Adjustable features.
60  */
61 
62  virtual void store_gui ();
63  virtual void load_gui ();
64 
65 };
66 
67 
68 #endif /* QfOptions.H */
Definition: QfOptions.H:18
Definition: Zm.h:102
virtual void load_gui()
virtual void create_self(Widget wParent)
Definition: QfBrick.H:54
virtual void store_gui()