C++ main module for gpm Package  1.0
GPMG_ActionRule.h
Go to the documentation of this file.
1 #ifndef GPMG_ActionRule_H
2 #define GPMG_ActionRule_H
3 
4 
5 #include "GUI_Action.h"
6 
7 
14 class GPMG_ActionRule : public GUI_Action { // class
15 
16  SP_OBJECT(GPMG_ActionRule);
17 
18  // ATTRIBUTES
19 public:
20  static const tFlag EDIT;
21  static const tFlag CLEAR_GRAPHS;
22 
23 private:
24 
25  // ASSOCIATIONS
26 
27 
28  // METHODS
29 
30 
31 protected:
32  // CONSTRUCTORS
35  GPMG_ActionRule();
36 
37 
38 
39 
40  // DESTRUCTORS
44  virtual ~GPMG_ActionRule(void);
45 
46 
47 public:
48  // NEW
51  inline static SP::GPMG_ActionRule New() {
52  SP::GPMG_ActionRule p(new GPMG_ActionRule(),
53  GPMG_ActionRule::Delete());
54  p->setThis(p);
55  return p;
56  };
59  inline static SP::GPMG_ActionRule New(const int& action) {
60  SP::GPMG_ActionRule p=New();
61  p->setActionType(action);
62  if (action==EDIT) p->setIcon("rulesEdit-toolIcon.png");
63  return p;
64  };
65 
66  // SET
67 
68  // GET
69 
70 
71  // OTHERS
72 
75  virtual void toDo();
76 
77 
78 
79 
80 
81 };
82 #endif
DEFINE_SPTR(GPMG_ActionRule)
static SP::GPMG_ActionRule New(const int &action)
create an action
Definition: GPMG_ActionRule.h:59
virtual void toDo()
action to do
Definition: GPMG_ActionRule.cpp:28
static SP::GPMG_ActionRule New()
create an action
Definition: GPMG_ActionRule.h:51
static const tFlag CLEAR_GRAPHS
Definition: GPMG_ActionRule.h:21
GPMG_ActionRule()
build a GPMG_ActionRule
Definition: GPMG_ActionRule.cpp:12
virtual ~GPMG_ActionRule(void)
destroy a GPMG_ActionRule
Definition: GPMG_ActionRule.cpp:23
static const tFlag EDIT
Definition: GPMG_ActionRule.h:20
this class describes the rule menu action
Definition: GPMG_ActionRule.h:14
#define tFlag
Definition: types.h:14