UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
QfTrigger.H
1 /* QfTrigger.H */
2 /* $Id: QfTrigger.H,v 1.7 2004/04/19 12:15:54 vlad Exp $ */
3 #ifndef __QfTrigger_H
4 #define __QfTrigger_H
5 
6 
7 #include <zm/qvfcdefs.h>
8 #include <zm/QfBrick.H>
9 #include <zm/Qmisc.H>
10 
11 
12 /***********************************************************************
13  * Toggle button object. Provides way to set boolean variable.
14  */
15 class QfTrigger: public QfBrick
16 {
17 protected:
18 
19  XmString xmsLabel; /* NULL means icon */
20  ZmBitmapSource iconSource; /* temporal storage */
21 
22  int eState; /* If radio-behaviour. */
23  Logic bBuf, *bExtBuf; /* Where to save result. */
24 
25  virtual void create_self (Widget wParent);
26 
27 public:
28 
29  /* In/out buffer: bState. */
30  QfTrigger (char* szLabel, Logic* bState);
31  QfTrigger (ZmBitmapSource* icon, Logic* bState);
32 
33  /* No in/out buffer: radio-button behaviour. */
34  QfTrigger (char* szLabel);
35  QfTrigger (ZmBitmapSource* icon);
36 
37  /* Return actual state identifier (don't touch GUI sync state). */
38  virtual Logic state ();
39 
40  /*
41  * Adjustable features.
42  */
43 
44  virtual void store_gui ();
45  virtual void load_gui ();
46 
47  /* Method to hang callbacks at creation stage. */
48  virtual void add_callback (const QCallback& qcb);
49 
50 };
51 
52 
53 #endif /* QfTrigger.H */
Definition: QfTrigger.H:15
Definition: Zm.h:102
virtual void create_self(Widget wParent)
Definition: QfBrick.H:54
virtual void load_gui()
Definition: Qmisc.H:44
virtual void store_gui()
virtual void add_callback(const QCallback &qcb)