C++ main module for gpm Package  1.0
GPMG_ActionRun.h
Go to the documentation of this file.
1 #ifndef GPMG_ActionRun_H
2 #define GPMG_ActionRun_H
3 
4 
5 #include "GUI_Action.h"
6 
7 
14 class GPMG_ActionRun : public GUI_Action { // class
15 
16  SP_OBJECT(GPMG_ActionRun);
17 
18  // ATTRIBUTES
19 public:
20  static const tFlag RUN;
21  static const tFlag VISUALIZE;
22 
23 private:
24 
25  // ASSOCIATIONS
26 
27 
28  // METHODS
29 
30 
31 protected:
32  // CONSTRUCTORS
35  GPMG_ActionRun();
36 
37 
38 
39 
40  // DESTRUCTORS
44  virtual ~GPMG_ActionRun(void);
45 
46 
47 public:
48  // NEW
51  inline static SP::GPMG_ActionRun New() {
52  SP::GPMG_ActionRun p(new GPMG_ActionRun(),
53  GPMG_ActionRun::Delete());
54  p->setThis(p);
55  return p;
56  };
59  inline static SP::GPMG_ActionRun New(const int& action) {
60  SP::GPMG_ActionRun p=New();
61  p->setActionType(action);
62  if (action==RUN) p->setIcon("run-toolIcon.png");
63  if (action==VISUALIZE) p->setIcon("visualize-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 SP::GPMG_ActionRun New()
create an action
Definition: GPMG_ActionRun.h:51
GPMG_ActionRun()
build a GPMG_ActionRun
Definition: GPMG_ActionRun.cpp:11
DEFINE_SPTR(GPMG_ActionRun)
virtual ~GPMG_ActionRun(void)
destroy a GPMG_ActionRun
Definition: GPMG_ActionRun.cpp:22
static const tFlag VISUALIZE
Definition: GPMG_ActionRun.h:21
virtual void toDo()
action to do
Definition: GPMG_ActionRun.cpp:27
this class describes the rule menu action
Definition: GPMG_ActionRun.h:14
static SP::GPMG_ActionRun New(const int &action)
create an action
Definition: GPMG_ActionRun.h:59
static const tFlag RUN
Definition: GPMG_ActionRun.h:20
#define tFlag
Definition: types.h:14