C++ main module for gpm Package  1.0
GPMG_PreferencesRootPanel.h
Go to the documentation of this file.
1 #ifndef GPMG_PreferencesRootPanel_H
2 #define GPMG_PreferencesRootPanel_H
3 
4 
5 #include "GUI_PreferencesRootPanel.h"
6 
7 
8 
9 
16 class GPMG_PreferencesRootPanel : public GUI_PreferencesRootPanel { // class
17  SP_OBJECT(GPMG_PreferencesRootPanel);
18 
19 
20  // ATTRIBUTES
21 
22  private:
23 
24  static const tFlag TRANSFORMER_ELEMENT_COLOR;
25  static const tFlag REMOVE_ELEMENT_COLOR;
26  static const tFlag PATTERN_ELEMENT_COLOR;
27  static const tFlag CONNECTION_ELEMENT_COLOR;
28  static const tFlag KEEP_ELEMENT_COLOR;
29  static const tFlag EXPRESSION_TYPE;
30 
31  // ASSOCIATIONS
32 
33 
34  // METHODS
35 
36 
37  protected:
38  // CONSTRUCTORS
42 
43 
44 
45 
46  // DESTRUCTORS
50  virtual ~GPMG_PreferencesRootPanel(void);
51 
52 
53 
54  public:
55  // NEW
58  static inline SP::GPMG_PreferencesRootPanel New() {
59  SP::GPMG_PreferencesRootPanel obj(new GPMG_PreferencesRootPanel(),
60  GPMG_PreferencesRootPanel::Delete());
61  obj->setThis(obj);
62  return obj;
63  };
64 
65 
66  virtual void toDoAfterThisSetting() {
67  GUI_PreferencesRootPanel::toDoAfterThisSetting();
68  initComponents();
69  };
70  // SET
71 
72 
73  public:
74 
75 
76  // GET
77 
78  // OTHERS
79 
80  private:
83  void initComponents();
84 
85 
86  public:
89  virtual void updateValues();
90 
93  virtual void componentClicked(GUI_ActionComponent& compo);
94 
95  protected:
98  virtual void validate(GUI_Application *app);
99 
100 
101 };
102 #endif
this class describes the root panel of the edit preferences window
Definition: GPMG_PreferencesRootPanel.h:16
virtual void validate(GUI_Application *app)
valide the preferences value
Definition: GPMG_PreferencesRootPanel.cpp:182
virtual ~GPMG_PreferencesRootPanel(void)
destroy a GPMG_PreferencesRootPanel
Definition: GPMG_PreferencesRootPanel.cpp:21
virtual void componentClicked(GUI_ActionComponent &compo)
method called when a component of its main layout and descendants is clicked
Definition: GPMG_PreferencesRootPanel.cpp:133
virtual void updateValues()
update the values of the panel
Definition: GPMG_PreferencesRootPanel.cpp:111
virtual void toDoAfterThisSetting()
Definition: GPMG_PreferencesRootPanel.h:66
DEFINE_SPTR(GPMG_PreferencesRootPanel)
static SP::GPMG_PreferencesRootPanel New()
create a root panel
Definition: GPMG_PreferencesRootPanel.h:58
GPMG_PreferencesRootPanel()
build a GPMG_PreferencesRootPanel
Definition: GPMG_PreferencesRootPanel.cpp:16
#define tFlag
Definition: types.h:14