/* # --------------------------------------------------------------------- # # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image # pour la Sant�) # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton # Previous Authors : Laurent Guigues, Jean-Pierre Roux # CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil # # This software is governed by the CeCILL-B license under French law and # abiding by the rules of distribution of free software. You can use, # modify and/ or redistribute the software under the terms of the CeCILL-B # license as circulated by CEA, CNRS and INRIA at the following URL # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html # or in the file LICENSE.txt. # # As a counterpart to the access to the source code and rights to copy, # modify and redistribute granted by the license, users are provided only # with a limited warranty and the software's author, the holder of the # economic rights, and the successive licensors have only limited # liability. # # The fact that you are presently reading this means that you have had # knowledge of the CeCILL-B license and that you accept its terms. # ------------------------------------------------------------------------ */ #ifndef WXCDMMAINFRAME_H_INCLUDED #define WXCDMMAINFRAME_H_INCLUDED #include #include #include #include "wxCDMProjectsTreeCtrl.h" #include "modelCDMMain.h" class wxCDMMainFrame:public wxFrame { DECLARE_EVENT_TABLE() public: wxCDMMainFrame( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& caption = wxT("CREATIS CreaDevManager"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE ); ~wxCDMMainFrame(); bool Create( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& caption = wxT("CREATIS CreaDevManager"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE ); modelCDMMain* GetModel() const; void RefreshProject(); protected: void CreateMenus(); void CreateControls(); private: //Menus wxMenu* menu_File; wxMenu* menu_Edit; wxMenu* menu_Tools; wxMenu* menu_Help; //Controls wxAuiManager auiManager; wxCDMProjectsTreeCtrl* tree_Projects; wxPanel* panel_Properties; wxPanel* panel_ProjectActions; //Model modelCDMMain* model; //Help enabled bool help; //events protected: //File void OnMenuNewProject(wxCommandEvent& event); void OnMenuOpenProject(wxCommandEvent& event); void OnMenuOpenRecent(wxCommandEvent& event); void OnMenuCloseProject(wxCommandEvent& event); void OnMenuCloseAllProjects(wxCommandEvent& event); void OnMenuExportHierarchy(wxCommandEvent& event); void OnMenuExit(wxCommandEvent& event); //Edit void OnMenuRefreshProject(wxCommandEvent& event); void OnMenuMenuCut(wxCommandEvent& event); void OnMenuMenuCopy(wxCommandEvent& event); void OnMenuMenuPaste(wxCommandEvent& event); void OnMenuMenuDelete(wxCommandEvent& event); void OnMenuSelectAll(wxCommandEvent& event); void OnMenuSelectNone(wxCommandEvent& event); //Tools void OnMenuEventLog(wxCommandEvent& event); void OnMenuBBTKGraphicalEditor(wxCommandEvent& event); void OnMenuMiniTools(wxCommandEvent& event); void OnMenuCodeEditor(wxCommandEvent& event); void OnMenuCommandLine(wxCommandEvent& event); //Help void OnMenuToggleHelp(wxCommandEvent& event); void OnMenuHelp(wxCommandEvent& event); void OnMenuReportBug(wxCommandEvent& event); void OnMenuAboutCreaDevManager(wxCommandEvent& event); void OnMenuAboutCreatis(wxCommandEvent& event); //Tree void OnTreeSelectionChanged(wxTreeEvent& event); //PropertiesPanel void OnCreationComplete(wxCommandEvent& event); //Element higlighted void OnElementSelected(wxCommandEvent& event); void OnElementDeselected(wxCommandEvent& event); //Enable/Disable help void OnDisableHelp(wxCommandEvent& event); }; #endif