# ---------------------------------------------------------------------
#
# 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
#include <creaWx.h>
#include <wx/aui/aui.h>
+#include <wx/treectrl.h>
#include "wxCDMProjectsTreeCtrl.h"
#include "modelCDMMain.h"
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
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;
+ wxPanel* GetPropertiesPanel() const;
+ bool isHelp() const;
+
+ void RefreshProject();
+
protected:
void CreateMenus();
void CreateControls();
//Model
modelCDMMain* model;
+ //Help enabled
+ bool help;
+
//events
protected:
//File
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