C++ main module for gpm Package  1.0
GPMG_ActionEnvironment.h
Go to the documentation of this file.
1 #ifndef GPMG_ActionEnvironment_H
2 #define GPMG_ActionEnvironment_H
3 
4 
5 #include "GUI_Action.h"
6 
7 
14 class GPMG_ActionEnvironment : public GUI_Action { // class
15 
16  SP_OBJECT(GPMG_ActionEnvironment);
17 
18  // ATTRIBUTES
19 public:
22 
23 private:
24 
25  // ASSOCIATIONS
26 
27 
28  // METHODS
29 
30 
31 protected:
32  // CONSTRUCTORS
36 
37 
38 
39 
40  // DESTRUCTORS
44  virtual ~GPMG_ActionEnvironment(void);
45 
46 
47 public:
48  // NEW
51  inline static SP::GPMG_ActionEnvironment New() {
52  SP::GPMG_ActionEnvironment p(new GPMG_ActionEnvironment(),
53  GPMG_ActionEnvironment::Delete());
54  p->setThis(p);
55  return p;
56  };
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");
64  return p;
65  };
66 
67  // SET
68 
69  // GET
70 
71 
72  // OTHERS
73 
76  virtual void toDo();
77 
78 
79 
80 
81 
82 };
83 #endif
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