]> Creatis software - crea.git/blob - lib/creaDevManagerLib/wxCDMMainFrame.h
Feature #1763
[crea.git] / lib / creaDevManagerLib / wxCDMMainFrame.h
1 /*
2 # ---------------------------------------------------------------------
3 #
4 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image 
5 #                        pour la Santé)
6 # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
7 #
8 #  This software is governed by the CeCILL-B license under French law and 
9 #  abiding by the rules of distribution of free software. You can  use, 
10 #  modify and/ or redistribute the software under the terms of the CeCILL-B 
11 #  license as circulated by CEA, CNRS and INRIA at the following URL 
12 #  http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html 
13 #  or in the file LICENSE.txt.
14 #
15 #  As a counterpart to the access to the source code and  rights to copy,
16 #  modify and redistribute granted by the license, users are provided only
17 #  with a limited warranty  and the software's author,  the holder of the
18 #  economic rights,  and the successive licensors  have only  limited
19 #  liability. 
20 #
21 #  The fact that you are presently reading this means that you have had
22 #  knowledge of the CeCILL-B license and that you accept its terms.
23 # ------------------------------------------------------------------------ */ 
24
25
26 #ifndef WXCDMMAINFRAME_H_INCLUDED
27 #define WXCDMMAINFRAME_H_INCLUDED
28
29 #include <creaWx.h>
30 #include <wx/aui/aui.h>
31 #include "wxCDMProjectsTreeCtrl.h"
32 #include "modelCDMMain.h"
33
34 class wxCDMMainFrame:public wxFrame
35 {
36   DECLARE_EVENT_TABLE()
37
38 public:
39   wxCDMMainFrame(
40       wxWindow* parent,
41       wxWindowID id = -1,
42       const wxString& caption = wxString("CREATIS CreaDevManager"),
43       const wxPoint& pos = wxDefaultPosition,
44       const wxSize& size = wxDefaultSize,
45       long style = wxDEFAULT_FRAME_STYLE
46   );
47
48   ~wxCDMMainFrame();
49
50   bool Create(
51       wxWindow* parent,
52       wxWindowID id = -1,
53       const wxString& caption = wxString("CREATIS CreaDevManager"),
54       const wxPoint& pos = wxDefaultPosition,
55       const wxSize& size = wxDefaultSize,
56       long style = wxDEFAULT_FRAME_STYLE
57   );
58
59 protected:
60   void CreateMenus();
61   void CreateControls();
62
63 private:
64
65   //Menus
66   wxMenu* menu_File;
67   wxMenu* menu_Edit;
68   wxMenu* menu_Tools;
69   wxMenu* menu_Help;
70
71   //Controls
72   wxAuiManager auiManager;
73   wxCDMProjectsTreeCtrl* tree_Projects;
74   wxPanel* panel_Properties;
75   wxPanel* panel_ProjectActions;
76
77   //Model
78   modelCDMMain* model;
79
80   //events
81 protected:
82   //File
83   void OnMenuNewProject(wxCommandEvent& event);
84   void OnMenuOpenProject(wxCommandEvent& event);
85   void OnMenuOpenRecent(wxCommandEvent& event);
86   void OnMenuCloseProject(wxCommandEvent& event);
87   void OnMenuCloseAllProjects(wxCommandEvent& event);
88   void OnMenuExportHierarchy(wxCommandEvent& event);
89   void OnMenuExit(wxCommandEvent& event);
90
91   //Edit
92   void OnMenuRefreshProject(wxCommandEvent& event);
93   void OnMenuMenuCut(wxCommandEvent& event);
94   void OnMenuMenuCopy(wxCommandEvent& event);
95   void OnMenuMenuPaste(wxCommandEvent& event);
96   void OnMenuMenuDelete(wxCommandEvent& event);
97   void OnMenuSelectAll(wxCommandEvent& event);
98   void OnMenuSelectNone(wxCommandEvent& event);
99
100   //Tools
101   void OnMenuEventLog(wxCommandEvent& event);
102   void OnMenuBBTKGraphicalEditor(wxCommandEvent& event);
103   void OnMenuMiniTools(wxCommandEvent& event);
104   void OnMenuCodeEditor(wxCommandEvent& event);
105   void OnMenuCommandLine(wxCommandEvent& event);
106
107   //Help
108   void OnMenuHelp(wxCommandEvent& event);
109   void OnMenuReportBug(wxCommandEvent& event);
110   void OnMenuAboutCreaDevManager(wxCommandEvent& event);
111   void OnMenuAboutCreatis(wxCommandEvent& event);
112 };
113
114 #endif