C++ main module for gpm Package  1.0
GPMG_MenuPanel.h
Go to the documentation of this file.
1 #ifndef GPMG_MenuPanel_H
2 #define GPMG_MenuPanel_H
3 
4 
5 #include "GUI_MenuPanel.h"
6 
7 #include "GUI_ToolBar.h"
8 
15 class GPMG_MenuPanel : public GUI_MenuPanel {
16  SP_OBJECT(GPMG_MenuPanel);
17  // ATTRIBUTES
18 private:
19 
20  int mFileMenu;
21  int mNewProjectMenu;
22  int mLoadProjectMenu;
23  int mSaveProjectMenu;
24  int mSaveAsProjectMenu;
25  int mEditMenu;
26 
27  int mSaveFileMenu;
28  int mShowGraphMenu;
29 
30  int mGraphMenu;
31 
32  int mRunMenu;
33  int mExecuteMenu;
34  int mVisualizeMenu;
35 
36 
37 
38  int mHelpMenu;
39 
40  // ASSOCIATIONS
41 
42 
43 protected:
44  // METHODS
45 
46  // CONSTRUCTORS
47 
50 
51 
52 
53 
54  // DESTRUCTORS
55 
56 
59  virtual ~GPMG_MenuPanel(void);
60 
61 
62 
63 public:
64 
65  // CONSTRUCTOR
66  inline static SP::GPMG_MenuPanel New() {
67  SP::GPMG_MenuPanel p(new GPMG_MenuPanel(),
68  GPMG_MenuPanel::Delete());
69  p->setThis(p);
70  return p;
71  };
72 
73  // SET methods
74 
75 
76  // GET methods
77 
78  // OTHERS
79 
82  virtual void updateStateMenus();
83 
86  void createMenus(SP::GUI_ToolBar bar);
87 
88 
89 
90 
91 private:
94  void createFileMenu(GUI_ToolBar *bar);
97  void createEditMenu(GUI_ToolBar *bar);
100  void createRunMenu(GUI_ToolBar *bar);
101 
102 
105  void createHelpMenu(GUI_ToolBar *bar);
106 };
107 
108 #endif
virtual void updateStateMenus()
update the menus state
Definition: GPMG_MenuPanel.cpp:59
DEFINE_SPTR(GPMG_MenuPanel)
static SP::GPMG_MenuPanel New()
Definition: GPMG_MenuPanel.h:66
virtual ~GPMG_MenuPanel(void)
destroy an menu panel.
Definition: GPMG_MenuPanel.cpp:30
This class is the menu panel of the kineo application.
Definition: GPMG_MenuPanel.h:15
GPMG_MenuPanel()
create an menu panel
Definition: GPMG_MenuPanel.cpp:25
void createMenus(SP::GUI_ToolBar bar)
create the menus & put tools in tool bar
Definition: GPMG_MenuPanel.cpp:35