X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=lib%2FcreaDevManagerLib%2FwxCDMMainFrame.h;h=18f00a05aa8410de1a6fc6f4a8dcfa817db197d6;hb=311bdcc514f85386f3bbbef9ff6a88bf69fd930f;hp=4c77f4574e6dd7fabdb061faddf3b82fe4e44500;hpb=17824854619941a12697fea8524f4218f9a14ef9;p=crea.git diff --git a/lib/creaDevManagerLib/wxCDMMainFrame.h b/lib/creaDevManagerLib/wxCDMMainFrame.h index 4c77f45..18f00a0 100755 --- a/lib/creaDevManagerLib/wxCDMMainFrame.h +++ b/lib/creaDevManagerLib/wxCDMMainFrame.h @@ -2,8 +2,10 @@ # --------------------------------------------------------------------- # # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image -# pour la Santé) +# 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, @@ -20,7 +22,8 @@ # # 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 @@ -28,6 +31,7 @@ #include #include +#include #include "wxCDMProjectsTreeCtrl.h" #include "modelCDMMain.h" @@ -38,8 +42,8 @@ class wxCDMMainFrame:public wxFrame public: wxCDMMainFrame( wxWindow* parent, - wxWindowID id = -1, - const wxString& caption = wxString("CREATIS CreaDevManager"), + wxWindowID id = wxID_ANY, + const wxString& caption = wxT("CREATIS CreaDevManager"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE @@ -49,13 +53,17 @@ public: bool Create( wxWindow* parent, - wxWindowID id = -1, - const wxString& caption = wxString("CREATIS CreaDevManager"), + 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(); @@ -109,6 +117,16 @@ protected: 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); }; #endif