1 #ifndef GPMG_ActionRule_H
2 #define GPMG_ActionRule_H
5 #include "GUI_Action.h"
51 inline static SP::GPMG_ActionRule
New() {
53 GPMG_ActionRule::Delete());
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");
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