C++ main module for gpm Package  1.0
GPMG_GridGeneratorWindow.h
Go to the documentation of this file.
1 #ifndef GPMG_GridGeneratorWindow_H
2 #define GPMG_GridGeneratorWindow_H
3 
4 
5 #include "GUI_ChildWindow.h"
6 
7 
8 
15 
16 class GPMG_GridGeneratorWindow : public GUI_ChildWindow { // class
17  SP_OBJECT(GPMG_GridGeneratorWindow);
18 
19  // ATTRIBUTES
20 
21 private:
22  static const tFlag W,H;
23  static const tFlag NX,NY;
24  static const tFlag XMIN,YMIN;
25  static const tFlag GRID;
26  static const tFlag GENERATE;
27  static const tFlag CANCEL;
28 
29  static const tFlag RECTANGULAR_GRID;
30  static const tFlag RIGHT_ANGLE_TRIANGULAR_GRID;
31  static const tFlag ISOSCELES_TRIANGULAR_GRID;
32  static const tFlag MOORE_GRID;
33 
34 private:
35 
36 
37  // ASSOCIATIONS
38 
39 
40  // METHODS
41 
42 
43 protected:
44  // CONSTRUCTORS
45 
49 
50 
51 
52 
53  // DESTRUCTORS
57  virtual ~GPMG_GridGeneratorWindow(void);
58 
59 
60 
61 public:
62  // NEW
65  static inline SP::GPMG_GridGeneratorWindow New() {
66  SP::GPMG_GridGeneratorWindow win(new GPMG_GridGeneratorWindow(),
67  GPMG_GridGeneratorWindow::Delete());
68  win->setThis(win);
69  return win;
70  };
71 
72  virtual void toDoAfterThisSetting() {
73  GUI_ChildWindow::toDoAfterThisSetting();
74  createComponents();
75  };
76 
77 
78  // SET
79 
80 
81 
82  // GET
83 
84 
85  // OTHERS
86 
89  virtual void componentClicked(GUI_ActionComponent& compo);
90 
91 
92 private:
95  void createComponents();
96 
99  void generate();
100 
101 };
102 #endif
virtual void toDoAfterThisSetting()
Definition: GPMG_GridGeneratorWindow.h:72
GPMG_GridGeneratorWindow()
build a GPMG_GridGeneratorWindow
Definition: GPMG_GridGeneratorWindow.cpp:37
static SP::GPMG_GridGeneratorWindow New()
create a visualization window
Definition: GPMG_GridGeneratorWindow.h:65
virtual void componentClicked(GUI_ActionComponent &compo)
method called when a component are clicked on
Definition: GPMG_GridGeneratorWindow.cpp:150
this class describes a window to generate graph as grid
Definition: GPMG_GridGeneratorWindow.h:16
DEFINE_SPTR(GPMG_GridGeneratorWindow)
virtual ~GPMG_GridGeneratorWindow(void)
destroy a GPMG_GridGeneratorWindow
Definition: GPMG_GridGeneratorWindow.cpp:42
#define tFlag
Definition: types.h:14