C++ main module for gpm Package  1.0
GPMG_RunWindow.h
Go to the documentation of this file.
1 #ifndef GPMG_RunWindow_H
2 #define GPMG_RunWindow_H
3 
4 
5 #include "GUI_ChildWindow.h"
6 
7 #include "GPMG_Project.h"
8 #include "GPM_ModelFunction.h"
9 
16 
17 class GPMG_RunWindow : public GUI_ChildWindow { // class
18  SP_OBJECT(GPMG_RunWindow);
19 
20  // ATTRIBUTES
21 
22 private:
23 
24  static const tFlag ITERATIONS_NUMBER;
25  static const tFlag ITERATIONS_DONE;
26  static const tFlag PRINT_LOG;
27  static const tFlag DEBUG_LOG;
28  static const tFlag SHOW_LOG;
29 
30  static const tFlag RUN;
31  static const tFlag RE_START;
32  static const tFlag CLOSE;
33 
34 
35 private:
36 
37 
38  // ASSOCIATIONS
39 
40 
41  SP::GPMG_Project mProject;
42 
43  // METHODS
44 
45 
46 protected:
47  // CONSTRUCTORS
48 
52 
53 
54 
55 
56  // DESTRUCTORS
60  virtual ~GPMG_RunWindow(void);
61 
62 
63 
64 public:
65  // NEW
68  static inline SP::GPMG_RunWindow New() {
69  SP::GPMG_RunWindow win(new GPMG_RunWindow(),
70  GPMG_RunWindow::Delete());
71  win->setThis(win);
72  return win;
73  };
74 
77  virtual void toDoAfterThisSetting() {
78  GUI_ChildWindow::toDoAfterThisSetting();
79  createComponents();
80  };
81  // SET
82 
85  inline void setProject(SP::GPMG_Project project) {
86  mProject=project;
87  updateValues();
88  }
89 
90  // GET
91 
92 private:
93 
94 public:
95  // SAVER & LOADER
98  virtual void loadFromUIClass(const UI_Class& mclass);
101  virtual void saveToUIClass(UI_Class& mclass) const;
102 
103  // OTHERS
104 
108  virtual void updateValues();
109 
110 
113  virtual void componentClicked(GUI_ActionComponent& compo);
114 
115 
116 
117 private:
118 
121  void createComponents();
122 
125  void run(const int& iter0);
126 
127  void showLog();
128 
129 
130 
131 
132 
133 };
134 
135 #endif
GPMG_RunWindow()
build a GPMG_RunWindow
Definition: GPMG_RunWindow.cpp:40
virtual ~GPMG_RunWindow(void)
destroy a GPMG_RunWindow
Definition: GPMG_RunWindow.cpp:46
this class describes a window to display run
Definition: GPMG_RunWindow.h:17
static SP::GPMG_RunWindow New()
create a visualization window
Definition: GPMG_RunWindow.h:68
void setProject(SP::GPMG_Project project)
set the graph
Definition: GPMG_RunWindow.h:85
virtual void updateValues()
update the values set the gui components with respect to the project class attributes ...
Definition: GPMG_RunWindow.cpp:166
virtual void saveToUIClass(UI_Class &mclass) const
how to save the object from a mate model class
Definition: GPMG_RunWindow.cpp:155
virtual void componentClicked(GUI_ActionComponent &compo)
method called when a component are clicked on
Definition: GPMG_RunWindow.cpp:187
virtual void toDoAfterThisSetting()
method called after this setting
Definition: GPMG_RunWindow.h:77
virtual void loadFromUIClass(const UI_Class &mclass)
how to load the object from a Meta Model class
Definition: GPMG_RunWindow.cpp:160
DEFINE_SPTR(GPMG_RunWindow)
#define tFlag
Definition: types.h:14