1 #ifndef GPMG_ActionEnvironment_H
2 #define GPMG_ActionEnvironment_H
5 #include "GUI_Action.h"
51 inline static SP::GPMG_ActionEnvironment
New() {
53 GPMG_ActionEnvironment::Delete());
59 inline static SP::GPMG_ActionEnvironment
New(
const int& action) {
60 SP::GPMG_ActionEnvironment p=
New();
61 p->setActionType(action);
62 if (action==SHOW_GRAPH_ENVIRONMENT) p->setIcon(
"envEdit-toolIcon.png");
63 if (action==SHOW_GLOBAL_ENVIRONMENT) p->setIcon(
"genvEdit-toolIcon.png");
static const tFlag SHOW_GLOBAL_ENVIRONMENT
Definition: GPMG_ActionEnvironment.h:20
static SP::GPMG_ActionEnvironment New(const int &action)
create an action
Definition: GPMG_ActionEnvironment.h:59
static SP::GPMG_ActionEnvironment New()
create an action
Definition: GPMG_ActionEnvironment.h:51
GPMG_ActionEnvironment()
build a GPMG_ActionEnvironment
Definition: GPMG_ActionEnvironment.cpp:11
DEFINE_SPTR(GPMG_ActionEnvironment)
virtual ~GPMG_ActionEnvironment(void)
destroy a GPMG_ActionEnvironment
Definition: GPMG_ActionEnvironment.cpp:21
virtual void toDo()
action to do
Definition: GPMG_ActionEnvironment.cpp:26
static const tFlag SHOW_GRAPH_ENVIRONMENT
Definition: GPMG_ActionEnvironment.h:21
this class describes the environnement menu action
Definition: GPMG_ActionEnvironment.h:14
#define tFlag
Definition: types.h:14