]> Creatis software - crea.git/blobdiff - lib/creaDevManagerLib/wxCDMMainFrame.h
Feature #1711
[crea.git] / lib / creaDevManagerLib / wxCDMMainFrame.h
index 4c77f4574e6dd7fabdb061faddf3b82fe4e44500..18f00a05aa8410de1a6fc6f4a8dcfa817db197d6 100755 (executable)
@@ -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 <creaWx.h>
 #include <wx/aui/aui.h>
+#include <wx/treectrl.h>
 #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