C++ main module for gpm Package  1.0
GPMG_ActionGraph.h
Go to the documentation of this file.
1 #ifndef GPMG_ActionGraph_H
2 #define GPMG_ActionGraph_H
3 
4 
5 #include "GUI_Action.h"
6 
7 
14 class GPMG_ActionGraph : public GUI_Action { // class
15 
16  SP_OBJECT(GPMG_ActionGraph);
17 
18  // ATTRIBUTES
19 public:
20  static const tFlag LOAD_FROM_FILE;
21  static const tFlag SAVE_TO_FILE;
22  static const tFlag CLEAR;
23  static const tFlag GENERATE_GRID;
24 
25 private:
26 
27  tString mOldPath;
28  // ASSOCIATIONS
29 
30 
31  // METHODS
32 
33 
34 protected:
35  // CONSTRUCTORS
39 
40 
41 
42 
43  // DESTRUCTORS
47  virtual ~GPMG_ActionGraph(void);
48 
49 
50 public:
51  // NEW
54  inline static SP::GPMG_ActionGraph New() {
55  SP::GPMG_ActionGraph p(new GPMG_ActionGraph(),
56  GPMG_ActionGraph::Delete());
57  p->setThis(p);
58  return p;
59  };
62  inline static SP::GPMG_ActionGraph New(const int& action) {
63  SP::GPMG_ActionGraph p=New();
64  p->setActionType(action);
65  return p;
66  };
67 
68  // SET
69 
70  // GET
71 
72 
73  // OTHERS
74 
77  virtual void toDo();
78 
79 
80 
81 
82 
83 };
84 #endif
static const tFlag CLEAR
Definition: GPMG_ActionGraph.h:22
static const tFlag LOAD_FROM_FILE
Definition: GPMG_ActionGraph.h:20
static SP::GPMG_ActionGraph New(const int &action)
create an action
Definition: GPMG_ActionGraph.h:62
static SP::GPMG_ActionGraph New()
create an action
Definition: GPMG_ActionGraph.h:54
this class describes the Edit Action Menu
Definition: GPMG_ActionGraph.h:14
static const tFlag SAVE_TO_FILE
Definition: GPMG_ActionGraph.h:21
#define tString
Definition: types.h:36
virtual ~GPMG_ActionGraph(void)
destroy a GPMG_ActionGraph
Definition: GPMG_ActionGraph.cpp:31
DEFINE_SPTR(GPMG_ActionGraph)
static const tFlag GENERATE_GRID
Definition: GPMG_ActionGraph.h:23
virtual void toDo()
action to do
Definition: GPMG_ActionGraph.cpp:36
GPMG_ActionGraph()
build a GPMG_ActionGraph
Definition: GPMG_ActionGraph.cpp:20
#define tFlag
Definition: types.h:14