]> Creatis software - crea.git/blob - lib/creaDevManagerLib/wxCreaDevManagerMainFrame.h
a4a3147a85d0562ada35dd74ac2d33a95d063460
[crea.git] / lib / creaDevManagerLib / wxCreaDevManagerMainFrame.h
1 #ifndef WXCREADEVMANAGERMAINFRAME_H_INCLUDED
2 #define WXCREADEVMANAGERMAINFRAME_H_INCLUDED
3
4 #include <creaWx.h>
5 #include <wx/treectrl.h>
6 #include <wx/aui/aui.h>
7
8 #include "ModelCreaDevManagerTree.h"
9
10 class wxCreaDevManagerMainFrame:public wxFrame
11 {
12   DECLARE_EVENT_TABLE()
13
14   public:
15     wxCreaDevManagerMainFrame(
16       wxWindow* parent,
17       wxWindowID id = -1,
18       const wxString& caption = _("CREATIS CreaDevManager"),
19       const wxPoint& pos = wxDefaultPosition,
20       const wxSize& size = wxDefaultSize,
21       long style = wxDEFAULT_FRAME_STYLE
22     );
23     
24     ~wxCreaDevManagerMainFrame();
25     
26     bool Create(
27       wxWindow* parent,
28       wxWindowID id = -1,
29       const wxString& caption = _("CREATIS CreaDevManager"),
30       const wxPoint& pos = wxDefaultPosition,
31       const wxSize& size = wxDefaultSize,
32       long style = wxDEFAULT_FRAME_STYLE
33     );
34
35   protected:
36     void CreateMenus();
37     void CreateControls();
38
39     //events
40     //File
41     void OnMenuNewProject(wxCommandEvent& event);
42     void OnMenuOpenProject(wxCommandEvent& event);
43     void OnMenuOpenRecent(wxCommandEvent& event);
44     void OnMenuCloseProject(wxCommandEvent& event);
45     void OnMenuCloseAllProjects(wxCommandEvent& event);
46     void OnMenuExportHierarchy(wxCommandEvent& event);
47     void OnMenuExit(wxCommandEvent& event);
48
49     //Edit
50     void OnMenuRefreshProject(wxCommandEvent& event);
51     void OnMenuMenuCut(wxCommandEvent& event);
52     void OnMenuMenuCopy(wxCommandEvent& event);
53     void OnMenuMenuPaste(wxCommandEvent& event);
54     void OnMenuMenuDelete(wxCommandEvent& event);
55     void OnMenuSelectAll(wxCommandEvent& event);
56     void OnMenuSelectNone(wxCommandEvent& event);
57
58     //Tools
59     void OnMenuEventLog(wxCommandEvent& event);
60     void OnMenuBBTKGraphicalEditor(wxCommandEvent& event);
61     void OnMenuMiniTools(wxCommandEvent& event);
62     void OnMenuCodeEditor(wxCommandEvent& event);
63     void OnMenuCommandLine(wxCommandEvent& event);
64
65     //Help
66     void OnMenuHelp(wxCommandEvent& event);
67     void OnMenuReportBug(wxCommandEvent& event);
68     void OnMenuAboutCreaDevManager(wxCommandEvent& event);
69     void OnMenuAboutCreatis(wxCommandEvent& event);
70
71   private:
72
73     //Menus
74     wxMenu* menu_File;
75     wxMenu* menu_Edit;
76     wxMenu* menu_Tools;
77     wxMenu* menu_Help;
78
79     //Controls
80     wxAuiManager auiManager;
81     wxTreeCtrl* tree_Projects;
82     wxPanel* panel_Properties;
83     wxPanel* panel_ProjectActions;
84
85     //Model
86     ModelCreaDevManagerTree projectTree;
87
88 };
89
90 #endif