C++ main module for gpm Package  1.0
GPMG_RuleGraphPanel.h
Go to the documentation of this file.
1 #ifndef GPMG_RuleGraphPanel_H
2 #define GPMG_RuleGraphPanel_H
3 
4 #include "GPMG_GraphPanel.h"
5 
7 
8 
15 class GPMG_RuleGraphPanel : public GPMG_GraphPanel { // class
16  SP_OBJECT(GPMG_RuleGraphPanel);
17 
18  // ATTRIBUTES
19 
20 private:
21 
22 
23  // ASSOCIATIONS
24 
25 
26  // METHODS
27 
28 
29 protected:
30  // CONSTRUCTORS
34 
35 
36 
37 
38  // DESTRUCTORS
42  virtual ~GPMG_RuleGraphPanel(void);
43 
44 
45 
46 public:
47  // NEW
50  static inline SP::GPMG_RuleGraphPanel New() {
51  SP::GPMG_RuleGraphPanel obj(new GPMG_RuleGraphPanel(),
52  GPMG_RuleGraphPanel::Delete());
53  obj->setThis(obj);
54  return obj;
55  };
56 
59  virtual void toDoAfterThisSetting() {
61  initComponents(true,false);
62  };
63 
66  virtual SP::GPMG_DrawPanel NewGraphDrawPanel() const {
68  }
69  // SET
70 
71 
74  void showRule(GPM_ModelFunction& rule);
77  void clearGraphs();
78 public:
79 
80 
81 
82  // GET
83 
84 
85 
86  // OTHERS
87 
88  // SPECIALIZED Methods
89 public:
92  virtual void updateValues();
93 
96  virtual void componentClicked(GUI_ActionComponent& compo);
97 
98 
101  virtual void loadFromUIClass(const UI_Class& mclass);
104  virtual void saveToUIClass(UI_Class& mclass) const;
105 
106 
107 
108 
109 };
110 #endif
virtual void saveToUIClass(UI_Class &mclass) const
how to save the object from a mate model class
Definition: GPMG_RuleGraphPanel.cpp:49
virtual void loadFromUIClass(const UI_Class &mclass)
how to load the object from a Meta Model class
Definition: GPMG_RuleGraphPanel.cpp:44
this class describes the root panel of the rule graph window
Definition: GPMG_RuleGraphPanel.h:15
virtual void updateValues()
method called for updating values of the panel
Definition: GPMG_RuleGraphPanel.cpp:18
virtual void initComponents(const tBoolean &isReadOnlyShown, const tBoolean &isGraphElementShownEnabled)
init the components
Definition: GPMG_GraphPanel.cpp:44
this class describes the root panel of the graph window
Definition: GPMG_GraphPanel.h:17
virtual void toDoAfterThisSetting()
method called after this setting
Definition: GPMG_RuleGraphPanel.h:59
virtual void toDoAfterThisSetting()
Definition: GPMG_GraphPanel.h:60
static SP::GPMG_RuleGraphPanel New()
create a root panel
Definition: GPMG_RuleGraphPanel.h:50
DEFINE_SPTR(GPMG_RuleGraphPanel)
virtual SP::GPMG_DrawPanel NewGraphDrawPanel() const
create the graph draw panel
Definition: GPMG_RuleGraphPanel.h:66
void clearGraphs()
clear the graphs of the rules
Definition: GPMG_RuleGraphPanel.cpp:32
void showRule(GPM_ModelFunction &rule)
show the rule
Definition: GPMG_RuleGraphPanel.cpp:25
virtual void componentClicked(GUI_ActionComponent &compo)
method called when a panel's component is clicked on
Definition: GPMG_RuleGraphPanel.cpp:38
GPMG_RuleGraphPanel()
build a GPMG_RuleGraphPanel
Definition: GPMG_RuleGraphPanel.cpp:9
This class describes a pattern function.
Definition: GPM_ModelFunction.h:23
virtual ~GPMG_RuleGraphPanel(void)
destroy a GPMG_RuleGraphPanel
Definition: GPMG_RuleGraphPanel.cpp:13
static SP::GPMG_RuleGraphDrawPanel New()
create a 2D plotter panel
Definition: GPMG_RuleGraphDrawPanel.h:63