auiManager.SetManagedWindow(this);
+//EED 2017-09-16 Migration wxWidgets 2.8 to 3.0
+#if wxMAJOR_VERSION <= 2
tree_Projects = new wxCDMProjectsTreeCtrl(
this,
ID_TREE_PROJECTS,
wxDefaultPosition,
wxSize(200,400),
- wxTR_HAS_BUTTONS | wxTR_AQUA_BUTTONS
- );
+ wxTR_HAS_BUTTONS | wxTR_AQUA_BUTTONS );
this->actualTreeItem.Unset();
+#else
+ tree_Projects = new wxCDMProjectsTreeCtrl(
+ this,
+ ID_TREE_PROJECTS,
+ wxDefaultPosition,
+ wxSize(200,400),
+ wxTR_HAS_BUTTONS );
+ this->actualTreeItem.Unset();
+#endif
+
panel_Properties = new wxCDMMainDescriptionPanel(
this,
wxT("Project Actions Panel"),
wxDefaultPosition,
wxSize(800,200),
- 0
+//EED 2017-09-16 Migration wxWidgets 2.8 to 3.0
+#if wxMAJOR_VERSION <= 2
+ 0
+#else
+ wxSHOW_SB_ALWAYS | wxVSCROLL
+#endif
);
auiManager.AddPane(panel_ProjectActions, wxAuiPaneInfo().Bottom().MinSize(800,50).Name(wxT("panel_ProjectActions")).Caption(wxT("General Project Actions")).BestSize(800,70).CloseButton(false));
wxT("Project Actions Panel"),
wxDefaultPosition,
wxSize(800,200),
- 0
+//EED 2017-09-16 Migration wxWidgets 2.8 to 3.0
+#if wxMAJOR_VERSION <= 2
+ 0
+#else
+ wxSHOW_SB_ALWAYS | wxVSCROLL
+#endif
);
panel_ProjectActions->SetMinSize(wxSize(500, 100));
wxT("Project Actions Panel"),
wxDefaultPosition,
wxSize(800,200),
- 0
+//EED 2017-09-16 Migration wxWidgets 2.8 to 3.0
+#if wxMAJOR_VERSION <= 2
+ 0
+#else
+ wxSHOW_SB_ALWAYS | wxVSCROLL
+#endif
);
panel_ProjectActions->SetMinSize(wxSize(500, 100));
wxT("Description Panel"),
wxDefaultPosition,
wxSize(600, 400),
- 0
+//EED 2017-09-16 Migration wxWidgets 2.8 to 3.0
+#if wxMAJOR_VERSION <= 2
+ 0
+#else
+ wxSHOW_SB_ALWAYS | wxVSCROLL
+#endif
);
- }
- else
- {
+ } else {
//appli
modelCDMAppli* elementAppli = dynamic_cast<modelCDMAppli*>(element);
if(elementAppli != NULL)
wxT("Description Panel"),
wxDefaultPosition,
wxSize(600, 400),
- 0
+//EED 2017-09-16 Migration wxWidgets 2.8 to 3.0
+#if wxMAJOR_VERSION <= 2
+ 0
+#else
+ wxSHOW_SB_ALWAYS | wxVSCROLL
+#endif
);
- }
- else
- {
+ } else {
//application
modelCDMApplication* elementApplication = dynamic_cast<modelCDMApplication*>(element);
if(elementApplication != NULL)
wxT("Description Panel"),
wxDefaultPosition,
wxSize(600, 400),
- 0
+//EED 2017-09-16 Migration wxWidgets 2.8 to 3.0
+#if wxMAJOR_VERSION <= 2
+ 0
+#else
+ wxSHOW_SB_ALWAYS | wxVSCROLL
+#endif
);
- }
- else
- {
+ } else {
//lib
modelCDMLib* elementLib = dynamic_cast<modelCDMLib*>(element);
if(elementLib != NULL)
wxT("Description Panel"),
wxDefaultPosition,
wxSize(600, 400),
- 0
+//EED 2017-09-16 Migration wxWidgets 2.8 to 3.0
+#if wxMAJOR_VERSION <= 2
+ 0
+#else
+ wxSHOW_SB_ALWAYS | wxVSCROLL
+#endif
);
- }
- else
- {
+ } else {
//library
modelCDMLibrary* elementLibrary = dynamic_cast<modelCDMLibrary*>(element);
if(elementLibrary != NULL)
wxT("Description Panel"),
wxDefaultPosition,
wxSize(600, 400),
- 0
+//EED 2017-09-16 Migration wxWidgets 2.8 to 3.0
+#if wxMAJOR_VERSION <= 2
+ 0
+#else
+ wxSHOW_SB_ALWAYS | wxVSCROLL
+#endif
);
- }
- else
- {
+ } else {
//package
modelCDMPackage* elementPackage = dynamic_cast<modelCDMPackage*>(element);
if(elementPackage != NULL)
ID_WINDOW_PROPERTIES,
wxT("Description Panel"),
wxDefaultPosition,
- wxSize(600, 400),
- 0
+ wxSize(600, 100),
+//EED 2017-09-16 Migration wxWidgets 2.8 to 3.0
+#if wxMAJOR_VERSION <= 2
+ 0
+#else
+ wxSHOW_SB_ALWAYS | wxVSCROLL
+#endif
);
- }
- else
- {
+
+
+ } else {
//black box
modelCDMBlackBox* elementBlackBox = dynamic_cast<modelCDMBlackBox*>(element);
if(elementBlackBox != NULL)
wxT("Description Panel"),
wxDefaultPosition,
wxSize(600, 400),
- 0
+//EED 2017-09-16 Migration wxWidgets 2.8 to 3.0
+#if wxMAJOR_VERSION <= 2
+ 0
+#else
+ wxSHOW_SB_ALWAYS | wxVSCROLL
+#endif
);
- }
- else
- {
+ } else {
//CMakeLists
modelCDMCMakeListsFile* elementCMakeLists = dynamic_cast<modelCDMCMakeListsFile*>(element);
if(elementCMakeLists != NULL)
wxT("Description Panel"),
wxDefaultPosition,
wxSize(600, 400),
- 0
+//EED 2017-09-16 Migration wxWidgets 2.8 to 3.0
+#if wxMAJOR_VERSION <= 2
+ 0
+#else
+ wxSHOW_SB_ALWAYS | wxVSCROLL
+#endif
);
- }
- else
- {
+ } else {
//CodeFile
modelCDMCodeFile* elementCodeFile = dynamic_cast<modelCDMCodeFile*>(element);
if(elementCodeFile != NULL)
wxT("Description Panel"),
wxDefaultPosition,
wxSize(600, 400),
- 0
+//EED 2017-09-16 Migration wxWidgets 2.8 to 3.0
+#if wxMAJOR_VERSION <= 2
+ 0
+#else
+ wxSHOW_SB_ALWAYS | wxVSCROLL
+#endif
);
- }
- else
- {
+ } else {
//BBSFile
modelCDMBBSFile* elementBBSFile = dynamic_cast<modelCDMBBSFile*>(element);
if(elementBBSFile != NULL)
wxT("Description Panel"),
wxDefaultPosition,
wxSize(600, 400),
- 0
+//EED 2017-09-16 Migration wxWidgets 2.8 to 3.0
+#if wxMAJOR_VERSION <= 2
+ 0
+#else
+ wxSHOW_SB_ALWAYS | wxVSCROLL
+#endif
);
- }
- else
- {
+ } else {
//BBSFile
modelCDMBBGFile* elementBBGFile = dynamic_cast<modelCDMBBGFile*>(element);
if(elementBBGFile != NULL)
wxT("Description Panel"),
wxDefaultPosition,
wxSize(600, 400),
- 0
+//EED 2017-09-16 Migration wxWidgets 2.8 to 3.0
+#if wxMAJOR_VERSION <= 2
+ 0
+#else
+ wxSHOW_SB_ALWAYS | wxVSCROLL
+#endif
);
- }
- else
- {
+ } else {
//folder
modelCDMFolder* elementFolder = dynamic_cast<modelCDMFolder*>(element);
if(elementFolder != NULL)
wxT("Description Panel"),
wxDefaultPosition,
wxSize(600, 400),
- 0
+//EED 2017-09-16 Migration wxWidgets 2.8 to 3.0
+#if wxMAJOR_VERSION <= 2
+ 0
+#else
+ wxSHOW_SB_ALWAYS | wxVSCROLL
+#endif
);
- }
- else
- {
+ } else {
//file
modelCDMFile* elementFile = dynamic_cast<modelCDMFile*>(element);
if(elementFile != NULL)
wxT("Description Panel"),
wxDefaultPosition,
wxSize(600, 400),
- 0
+//EED 2017-09-16 Migration wxWidgets 2.8 to 3.0
+#if wxMAJOR_VERSION <= 2
+ 0
+#else
+ wxSHOW_SB_ALWAYS | wxVSCROLL
+#endif
);
- }
- else
- {
-
+ } else {
//main if not any
//create element description
description = new wxCDMMainDescriptionPanel(
wxT("Description Panel"),
wxDefaultPosition,
wxSize(600, 400),
- 0
+//EED 2017-09-16 Migration wxWidgets 2.8 to 3.0
+#if wxMAJOR_VERSION <= 2
+ 0
+#else
+ wxSHOW_SB_ALWAYS | wxVSCROLL
+#endif
);
}
}
this->panel_Properties = description;
auiManager.Update();
- }
- else
- {
+ } else {
event.Skip();
}
wxT("Description Panel"),
wxDefaultPosition,
wxSize(600, 400),
- 0
+//EED 2017-09-16 Migration wxWidgets 2.8 to 3.0
+#if wxMAJOR_VERSION <= 2
+ 0
+#else
+ wxSHOW_SB_ALWAYS | wxVSCROLL
+#endif
);
}
else if(event.GetString() == wxT("manage_libraries"))