#include "wxCDMProjectActionsPanel.h"
#include "wxCDMNewProjectDialog.h"
-#include "wxCDMProjectHelpDialog.h"
BEGIN_EVENT_TABLE(wxCDMMainFrame, wxFrame)
EVT_MENU(ID_MENU_REPORT_BUG, wxCDMMainFrame::OnMenuReportBug)
EVT_MENU(ID_MENU_ABOUT_CREADEVMANAGER, wxCDMMainFrame::OnMenuAboutCreaDevManager)
EVT_MENU(ID_MENU_ABOUT_CREATIS, wxCDMMainFrame::OnMenuAboutCreatis)
+
EVT_BUTTON(ID_BUTTON_NEWPROJECT, wxCDMMainFrame::OnMenuNewProject)
EVT_BUTTON(ID_BUTTON_OPENPROJECT, wxCDMMainFrame::OnMenuOpenProject)
+
EVT_TREE_SEL_CHANGED(ID_TREE_PROJECTS, wxCDMMainFrame::OnTreeSelectionChanged)
+
EVT_COMMAND(wxID_ANY, wxEVT_DISPLAY_CHANGED, wxCDMMainFrame::OnCreationComplete)
EVT_COMMAND(wxID_ANY, wxEVT_COMMAND_LIST_ITEM_SELECTED, wxCDMMainFrame::OnElementSelected)
EVT_COMMAND(wxID_ANY, wxEVT_COMMAND_LIST_ITEM_DESELECTED, wxCDMMainFrame::OnElementDeselected)
+
+
EVT_CHECKBOX(ID_CHECKBOX_DISABLE_HELP, wxCDMMainFrame::OnDisableHelp)
END_EVENT_TABLE()
return this->model;
}
+wxPanel* wxCDMMainFrame::GetPropertiesPanel() const
+{
+ return this->panel_Properties;
+}
+
+bool wxCDMMainFrame::isHelp() const
+{
+ return this->help;
+}
+
void wxCDMMainFrame::RefreshProject()
{
std::string* result;
//project
modelCDMProject* elementProject = dynamic_cast<modelCDMProject*>(element);
wxPanel* description;
- wxDialog* helpDialog = NULL;
if(elementProject != NULL)
{
//create element description
0
);
- if(this->help)
- {
- helpDialog = new wxCDMProjectHelpDialog(this, wxID_ANY);
- }
}
else
{
wxSize(600, 400),
0
);
+
}
else
{
//set new view
this->panel_Properties = description;
- if(this->help && helpDialog != NULL)
- {
- helpDialog->Show(true);
- }
+
//auiManager.AddPane(panel_Properties, wxAuiPaneInfo().Center().Name(wxT("panel_Properties")).Caption(wxT("Properties")).BestSize(600,400).CloseButton(false));
auiManager.Update();
event.Skip();