UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TScastle.H
1 /* TScastle.H */
2 /* $Id: TScastle.H,v 1.1 2003/09/29 07:46:22 vlad Exp $ */
3 #ifndef __TScastle_H
4 #define __TScastle_H
5 
6 #include <zm/QfTools.H>
7 
8 #include "Selector.h"
9 #include "VisualTS.h"
10 #include "Dialogs.h"
11 
12 
13 /***********************************************************************
14  * Class to extent QfCastle by creating trace selection GUI and
15  * handling events (pressing buttons mainly).
16  ***********************************************************************/
17 
18 class TScastle : public QfCastle
19 {
20 public:
21 
22  /* Create dialog GUI but don't manage it for a while */
23  TScastle (Widget wParent, VisualTraceSet vists,
24  SelectorSet& selset, void (*OnSelect)() = NULL);
25 
26  /* Store entered value(s) in GUI-independent buffers, that can be
27  accessed externally. */
28  virtual void store_gui ();
29 
30 
32  static ErrCode apply_selection (VisualTraceSet vists,
33  SelectorSet& selset);
34 
35 protected:
36 
37  /* Reference to stored trace selector */
38  SelectorSet& ss;
39 
40  /* Reference to visual trace set */
41  VisualTraceSet vts;
42 
43  /* Fucntion to call in case of selection applied or NULL */
44  void (*pOnSelect)();
45 
46 };
47 
48 
49 #endif /* TScastle.H */
static ErrCode apply_selection(VisualTraceSet vists, SelectorSet &selset)
Definition: TScastle.H:18
Definition: VisualTS.h:157
virtual void store_gui()
Definition: QfCastle.H:13
Definition: Selector.h:63