2 # ---------------------------------------------------------------------
4 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
6 # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
7 # Previous Authors : Laurent Guigues, Jean-Pierre Roux
8 # CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil
10 # This software is governed by the CeCILL-B license under French law and
11 # abiding by the rules of distribution of free software. You can use,
12 # modify and/ or redistribute the software under the terms of the CeCILL-B
13 # license as circulated by CEA, CNRS and INRIA at the following URL
14 # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
15 # or in the file LICENSE.txt.
17 # As a counterpart to the access to the source code and rights to copy,
18 # modify and redistribute granted by the license, users are provided only
19 # with a limited warranty and the software's author, the holder of the
20 # economic rights, and the successive licensors have only limited
23 # The fact that you are presently reading this means that you have had
24 # knowledge of the CeCILL-B license and that you accept its terms.
25 # ------------------------------------------------------------------------
29 #include "wxCDMMainFrame.h"
34 #include "wx/treectrl.h"
35 #include "CDMUtilities.h"
37 #include "creaDevManagerIds.h"
38 #include "wxCDMMainDescriptionPanel.h"
39 #include "wxCDMProjectDescriptionPanel.h"
40 #include "wxCDMAppliDescriptionPanel.h"
41 #include "wxCDMApplicationDescriptionPanel.h"
42 #include "wxCDMLibDescriptionPanel.h"
43 #include "wxCDMLibraryDescriptionPanel.h"
44 #include "wxCDMPackageDescriptionPanel.h"
45 #include "wxCDMBlackBoxDescriptionPanel.h"
47 #include "wxCDMProjectActionsPanel.h"
48 #include "wxCDMNewProjectDialog.h"
51 BEGIN_EVENT_TABLE(wxCDMMainFrame, wxFrame)
52 EVT_MENU(ID_MENU_NEW_PROJECT, wxCDMMainFrame::OnMenuNewProject)
53 EVT_MENU(ID_MENU_OPEN_PROJECT, wxCDMMainFrame::OnMenuOpenProject)
54 EVT_MENU(ID_MENU_OPEN_RECENT, wxCDMMainFrame::OnMenuOpenRecent)
55 EVT_MENU(ID_MENU_CLOSE_PROJECT, wxCDMMainFrame::OnMenuCloseProject)
56 EVT_MENU(ID_MENU_CLOSE_ALL_PROJECTS, wxCDMMainFrame::OnMenuCloseAllProjects)
57 EVT_MENU(ID_MENU_EXPORT_HIERARCHY, wxCDMMainFrame::OnMenuExportHierarchy)
58 EVT_MENU(ID_MENU_EXIT, wxCDMMainFrame::OnMenuExit)
59 EVT_MENU(ID_MENU_REFRESH_PROJECT, wxCDMMainFrame::OnMenuRefreshProject)
60 EVT_MENU(ID_MENU_CUT, wxCDMMainFrame::OnMenuMenuCut)
61 EVT_MENU(ID_MENU_COPY, wxCDMMainFrame::OnMenuMenuCopy)
62 EVT_MENU(ID_MENU_PASTE, wxCDMMainFrame::OnMenuMenuPaste)
63 EVT_MENU(ID_MENU_DELETE, wxCDMMainFrame::OnMenuMenuDelete)
64 EVT_MENU(ID_MENU_SELECT_ALL, wxCDMMainFrame::OnMenuSelectAll)
65 EVT_MENU(ID_MENU_SELECT_NONE, wxCDMMainFrame::OnMenuSelectNone)
66 EVT_MENU(ID_MENU_EVENT_LOG, wxCDMMainFrame::OnMenuEventLog)
67 EVT_MENU(ID_MENU_BBTK_GRAPHICAL_EDITOR, wxCDMMainFrame::OnMenuBBTKGraphicalEditor)
68 EVT_MENU(ID_MENU_MINITOOLS, wxCDMMainFrame::OnMenuMiniTools)
69 EVT_MENU(ID_MENU_CODE_EDITOR, wxCDMMainFrame::OnMenuCodeEditor)
70 EVT_MENU(ID_MENU_COMMAND_LINE, wxCDMMainFrame::OnMenuCommandLine)
71 EVT_MENU(ID_MENU_HELP, wxCDMMainFrame::OnMenuHelp)
72 EVT_MENU(ID_MENU_REPORT_BUG, wxCDMMainFrame::OnMenuReportBug)
73 EVT_MENU(ID_MENU_ABOUT_CREADEVMANAGER, wxCDMMainFrame::OnMenuAboutCreaDevManager)
74 EVT_MENU(ID_MENU_ABOUT_CREATIS, wxCDMMainFrame::OnMenuAboutCreatis)
75 EVT_BUTTON(ID_BUTTON_NEWPROJECT, wxCDMMainFrame::OnMenuNewProject)
76 EVT_BUTTON(ID_BUTTON_OPENPROJECT, wxCDMMainFrame::OnMenuOpenProject)
77 EVT_TREE_SEL_CHANGED(ID_TREE_PROJECTS, wxCDMMainFrame::OnTreeSelectionChanged)
80 wxCDMMainFrame::wxCDMMainFrame(
83 const wxString& caption,
89 Create(parent, id, caption, pos, size, style);
92 wxCDMMainFrame::~wxCDMMainFrame()
97 bool wxCDMMainFrame::Create(
100 const wxString& caption,
106 wxFrame::Create(parent, id, caption, pos, size, style);
107 this->model = new modelCDMMain();
113 void wxCDMMainFrame::CreateMenus()
115 wxMenuBar* menuBar = new wxMenuBar;
118 menu_File = new wxMenu();
119 menu_File->Append(ID_MENU_NEW_PROJECT, wxT("&New Project..."));
120 menu_File->Append(ID_MENU_OPEN_PROJECT, wxT("&Open Project..."));
121 menu_File->Append(ID_MENU_OPEN_RECENT, wxT("Open &Recent"));
122 menu_File->AppendSeparator();
123 menu_File->Append(ID_MENU_CLOSE_PROJECT, wxT("&Close Project"));
124 menu_File->Append(ID_MENU_CLOSE_ALL_PROJECTS, wxT("C&lose All Projects"));
125 menu_File->AppendSeparator();
126 menu_File->Append(ID_MENU_EXPORT_HIERARCHY, wxT("&Export Project Hierarchy..."));
127 menu_File->AppendSeparator();
128 menu_File->Append(ID_MENU_EXIT, wxT("E&xit"));
130 menuBar->Append(menu_File, wxT("&File"));
133 menu_Edit = new wxMenu();
134 menu_Edit->Append(ID_MENU_REFRESH_PROJECT, wxT("&Refresh Project"));
135 menu_Edit->AppendSeparator();
136 menu_Edit->Append(ID_MENU_CUT, wxT("Cu&t"));
137 menu_Edit->Append(ID_MENU_COPY, wxT("&Copy"));
138 menu_Edit->Append(ID_MENU_PASTE, wxT("&Paste"));
139 menu_Edit->AppendSeparator();
140 menu_Edit->Append(ID_MENU_DELETE, wxT("&Delete"));
141 menu_Edit->Append(ID_MENU_SELECT_ALL, wxT("Select &All"));
142 menu_Edit->Append(ID_MENU_SELECT_NONE, wxT("Ca&ncel Selection"));
144 menuBar->Append(menu_Edit, wxT("&Edit"));
147 menu_Tools = new wxMenu();
148 menu_Tools->Append(ID_MENU_EVENT_LOG, wxT("Event &Log"));
149 menu_Tools->Append(ID_MENU_BBTK_GRAPHICAL_EDITOR, wxT("BBTK &Graphical Editor"));
150 menu_Tools->Append(ID_MENU_MINITOOLS, wxT("&MiniTools"));
151 menu_Tools->Append(ID_MENU_CODE_EDITOR, wxT("&Code Editor"));
152 menu_Tools->Append(ID_MENU_COMMAND_LINE, wxT("&Command Line"));
154 menuBar->Append(menu_Tools, wxT("&Tools"));
157 menu_Help = new wxMenu();
158 menu_Help->Append(ID_MENU_HELP, wxT("&Help"));
159 menu_Help->Append(ID_MENU_REPORT_BUG, wxT("Report &Bug"));
160 menu_Help->Append(ID_MENU_ABOUT_CREADEVMANAGER, wxT("&About CreaDevManager"));
161 menu_Help->Append(ID_MENU_ABOUT_CREATIS, wxT("A&bout CREATIS"));
163 menuBar->Append(menu_Help, wxT("&Help"));
168 wxStatusBar* statusBar = new wxStatusBar(this, ID_STATUS_BAR, wxST_SIZEGRIP);
169 statusBar->SetFieldsCount(1);
170 SetStatusBar(statusBar);
174 void wxCDMMainFrame::CreateControls()
177 auiManager.SetManagedWindow(this);
180 tree_Projects = new wxCDMProjectsTreeCtrl(
185 wxTR_HAS_BUTTONS | wxTR_AQUA_BUTTONS
187 tree_Projects->SetMinSize(wxSize(200,200));
189 panel_Properties = new wxCDMMainDescriptionPanel(
191 ID_WINDOW_PROPERTIES,
192 wxT("Description Panel"),
202 auiManager.AddPane(tree_Projects, wxLEFT, wxT("Projects Tree"));
203 auiManager.AddPane(panel_Properties, wxCENTER, wxT("Properties"));
206 auiManager.GetPane(tree_Projects).CloseButton(false).MaximizeButton(true);
211 void wxCDMMainFrame::OnMenuNewProject(wxCommandEvent& event)
215 wxCDMNewProjectDialog* dialog = new wxCDMNewProjectDialog(this);
217 userResponse = dialog->ShowModal();
219 if(userResponse == wxID_FORWARD)
222 if(this->model->GetProject() != NULL)
224 if(!this->model->CloseProject(result))
226 std::cout << "error closing project: " << *result << std::endl;
227 wxMessageBox(crea::std2wx(*result),_T("New Project - Error!"),wxOK | wxICON_ERROR);
233 if(!this->model->CreateProject(
234 crea::wx2std(dialog->GetProjectName()),
235 crea::wx2std(dialog->GetProjectLocation()),
237 crea::wx2std(dialog->GetPackageAuthor()),
238 crea::wx2std(dialog->GetPackageDescription())
241 std::cout << "error opening project: " << *result << std::endl;
242 wxMessageBox(crea::std2wx(*result),_T("New Project - Error!"),wxOK | wxICON_ERROR);
247 //populate tree control
248 tree_Projects->BuildTree(this->model->GetModelElements(),this->model->GetProject());
249 tree_Projects->SelectItem(this->model->GetProject()->GetId());
251 //change description panel
252 if(this->panel_Properties != NULL)
254 auiManager.DetachPane(this->panel_Properties);
255 this->panel_Properties->Destroy();
258 this->panel_Properties = new wxCDMProjectDescriptionPanel(
260 this->model->GetProject(),
261 ID_WINDOW_PROPERTIES,
262 wxT("Description Panel"),
266 //show projectactions panel
267 if(this->panel_ProjectActions != NULL)
269 auiManager.DetachPane(this->panel_Properties);
270 this->panel_ProjectActions->Destroy();
273 panel_ProjectActions = new wxCDMProjectActionsPanel(
275 ID_WINDOW_PROJ_ACTIONS,
276 wxT("Project Actions Panel"),
281 panel_ProjectActions->SetMinSize(wxSize(500, 100));
284 auiManager.AddPane(panel_Properties, wxCENTER, wxT("Properties"));
285 auiManager.AddPane(panel_ProjectActions, wxBOTTOM, wxT("Project Actions"));
289 wxMessageBox(_T("New Project created!"),_T("New Project - Success!"), wxOK | wxICON_INFORMATION);
294 void wxCDMMainFrame::OnMenuOpenProject(wxCommandEvent& event)
298 long style = wxDD_DEFAULT_STYLE | wxDD_DIR_MUST_EXIST;
299 wxDirDialog* FD = new wxDirDialog(this, wxT("Select the project directory"), wxT(""), style);
300 long userResponse = FD->ShowModal();
301 if(userResponse == wxID_OK)
303 std::string path = crea::wx2std (FD->GetPath());
307 std::cout << "Selection to open: " << path << std::endl;
311 if(this->model->GetProject() != NULL)
313 std::cout << "Project not null, closing it" << std::endl;
314 if(!this->model->CloseProject(result))
316 std::cout << "error closing project: " << *result << std::endl;
317 wxMessageBox(crea::std2wx(result->c_str()),_T("New Project - Error!"),wxOK | wxICON_ERROR);
323 if (!this->model->OpenProject(path, result))
325 std::cout << "error opening project: " << *result << std::endl;
326 wxMessageBox( crea::std2wx(result->c_str()), wxT("Open Project - Error"), wxICON_ERROR);
331 std::cout << "building ui" << std::endl;
334 //populate tree control
335 tree_Projects->BuildTree(this->model->GetModelElements(), this->model->GetProject());
336 tree_Projects->SelectItem(this->model->GetProject()->GetId());
338 //change description panel
339 if(this->panel_Properties != NULL)
341 auiManager.DetachPane(this->panel_Properties);
342 this->panel_Properties->Destroy();
345 this->panel_Properties = new wxCDMProjectDescriptionPanel(
347 this->model->GetProject(),
348 ID_WINDOW_PROPERTIES,
349 wxT("Description Panel"),
355 //change project's actions panel
356 if(this->panel_ProjectActions!= NULL)
358 auiManager.DetachPane(this->panel_ProjectActions);
359 this->panel_ProjectActions->Destroy();
361 panel_ProjectActions = new wxCDMProjectActionsPanel(
363 ID_WINDOW_PROJ_ACTIONS,
364 wxT("Project Actions Panel"),
369 panel_ProjectActions->SetMinSize(wxSize(500, 100));
372 auiManager.AddPane(panel_Properties, wxCENTER, wxT("Properties"));
373 auiManager.AddPane(panel_ProjectActions, wxBOTTOM, wxT("Project Actions"));
380 void wxCDMMainFrame::OnMenuOpenRecent(wxCommandEvent& event)
382 std::cerr << "Event OnMenuOpenRecent not implemented" << std::endl;
385 void wxCDMMainFrame::OnMenuCloseProject(wxCommandEvent& event)
388 if(!this->model->CloseProject(result))
390 std::cout << "error closing project: " << *result << std::endl;
391 wxMessageBox( crea::std2wx(result->c_str()), wxT("Close Project - Error"), wxICON_ERROR);
393 tree_Projects->BuildTree(this->model->GetModelElements(), this->model->GetProject());
395 if(this->panel_Properties != NULL)
397 auiManager.DetachPane(this->panel_Properties);
398 this->panel_Properties->Destroy();
400 if(this->panel_ProjectActions != NULL)
402 auiManager.DetachPane(this->panel_ProjectActions);
403 this->panel_ProjectActions->Destroy();
406 this->panel_Properties = new wxCDMMainDescriptionPanel(
408 ID_WINDOW_PROPERTIES,
409 wxT("Description Panel"),
415 auiManager.AddPane(panel_Properties, wxCENTER, wxT("Properties"));
420 void wxCDMMainFrame::OnMenuCloseAllProjects(wxCommandEvent& event)
422 std::cerr << "Event OnMenuCloseAllProjects closing only one project" << std::endl;
424 if(!this->model->CloseProject(result))
426 std::cout << "error closing project: " << *result << std::endl;
427 wxMessageBox( crea::std2wx(result->c_str()), wxT("Close Project - Error"), wxICON_ERROR);
429 tree_Projects->BuildTree(this->model->GetModelElements(), this->model->GetProject());
431 if(this->panel_Properties != NULL)
433 auiManager.DetachPane(this->panel_Properties);
434 this->panel_Properties->Destroy();
436 if(this->panel_ProjectActions != NULL)
438 auiManager.DetachPane(this->panel_ProjectActions);
439 this->panel_ProjectActions->Destroy();
442 this->panel_Properties = new wxCDMMainDescriptionPanel(
444 ID_WINDOW_PROPERTIES,
445 wxT("Description Panel"),
451 auiManager.AddPane(panel_Properties, wxCENTER, wxT("Properties"));
456 void wxCDMMainFrame::OnMenuExportHierarchy(wxCommandEvent& event)
458 std::cerr << "Event OnMenuExportHierarchy not implemented" << std::endl;
461 void wxCDMMainFrame::OnMenuExit(wxCommandEvent& event)
463 std::cout << "Closing CreaDevManager..." << std::endl;
465 if(!this->model->CloseProject(result))
467 std::cout << "error closing project: " << *result << std::endl;
468 wxMessageBox( crea::std2wx(result->c_str()), wxT("Close Project - Error"), wxICON_ERROR);
470 tree_Projects->BuildTree(this->model->GetModelElements(), this->model->GetProject());
472 if(this->panel_Properties != NULL)
474 auiManager.DetachPane(this->panel_Properties);
475 this->panel_Properties->Destroy();
477 if(this->panel_ProjectActions != NULL)
479 auiManager.DetachPane(this->panel_ProjectActions);
480 this->panel_ProjectActions->Destroy();
483 this->panel_Properties = new wxCDMMainDescriptionPanel(
485 ID_WINDOW_PROPERTIES,
486 wxT("Description Panel"),
496 void wxCDMMainFrame::OnMenuRefreshProject(wxCommandEvent& event)
499 if(!model->RefreshProject(result))
501 wxMessageBox( crea::std2wx(result->c_str()), wxT("Refresh Project - Error"), wxICON_ERROR);
503 //TODO: Show possible problems in CMakeLists files
506 void wxCDMMainFrame::OnMenuMenuCut(wxCommandEvent& event)
508 std::cerr << "Event OnMenuMenuCut not implemented" << std::endl;
511 void wxCDMMainFrame::OnMenuMenuCopy(wxCommandEvent& event)
513 std::cerr << "Event OnMenuMenuCopy not implemented" << std::endl;
516 void wxCDMMainFrame::OnMenuMenuPaste(wxCommandEvent& event)
518 std::cerr << "Event OnMenuMenuPaste not implemented" << std::endl;
521 void wxCDMMainFrame::OnMenuMenuDelete(wxCommandEvent& event)
523 std::cerr << "Event OnMenuMenuDelete not implemented" << std::endl;
526 void wxCDMMainFrame::OnMenuSelectAll(wxCommandEvent& event)
528 std::cerr << "Event OnMenuSelectAll not implemented" << std::endl;
531 void wxCDMMainFrame::OnMenuSelectNone(wxCommandEvent& event)
533 std::cerr << "Event OnMenuSelectNone not implemented" << std::endl;
538 void wxCDMMainFrame::OnMenuEventLog(wxCommandEvent& event)
540 std::cerr << "Event OnMenuEventLog not implemented" << std::endl;
543 void wxCDMMainFrame::OnMenuBBTKGraphicalEditor(wxCommandEvent& event)
545 std::cerr << "Event OnMenuBBTKGraphicalEditor not implemented" << std::endl;
548 void wxCDMMainFrame::OnMenuMiniTools(wxCommandEvent& event)
550 std::cerr << "Event OnMenuMiniTools not implemented" << std::endl;
553 void wxCDMMainFrame::OnMenuCodeEditor(wxCommandEvent& event)
555 std::cerr << "Event OnMenuCodeEditor not implemented" << std::endl;
558 void wxCDMMainFrame::OnMenuCommandLine(wxCommandEvent& event)
560 std::cerr << "Event OnMenuCommandLine not implemented" << std::endl;
565 void wxCDMMainFrame::OnMenuHelp(wxCommandEvent& event)
567 std::cerr << "Event OnMenuHelp not implemented" << std::endl;
570 void wxCDMMainFrame::OnMenuReportBug(wxCommandEvent& event)
572 std::cerr << "Event OnMenuReportBug not implemented" << std::endl;
575 void wxCDMMainFrame::OnMenuAboutCreaDevManager(wxCommandEvent& event)
577 std::cerr << "Event OnMenuAboutCreaDevManager not implemented" << std::endl;
580 void wxCDMMainFrame::OnMenuAboutCreatis(wxCommandEvent& event)
582 std::cerr << "Event OnMenuAboutCreatis not implemented" << std::endl;
586 void wxCDMMainFrame::OnTreeSelectionChanged(wxTreeEvent& event)
588 std::cout << "New Tree Selection" << std::endl;
589 //get selected element
590 wxTreeItemId elementId = event.GetItem();
592 //get element from model
593 modelCDMIProjectTreeNode* element = this->model->GetModelElements()[elementId];
594 std::cout << "Tree Selection: " << element->GetName() << std::endl;
596 //TODO get element type
598 modelCDMProject* elementProject = dynamic_cast<modelCDMProject*>(element);
599 if(elementProject != NULL)
602 //create element description
603 wxCDMProjectDescriptionPanel* description = new wxCDMProjectDescriptionPanel(
606 ID_WINDOW_PROPERTIES,
607 wxT("Description Panel"),
613 if(this->panel_Properties!= NULL)
615 this->panel_Properties->Hide();
616 this->panel_Properties->Destroy();
617 auiManager.DetachPane(this->panel_Properties);
620 this->panel_Properties = description;
621 auiManager.AddPane(panel_Properties, wxCENTER, wxT("Properties"));
627 modelCDMAppli* elementAppli = dynamic_cast<modelCDMAppli*>(element);
628 if(elementAppli != NULL)
630 //create element description
631 wxCDMAppliDescriptionPanel* description = new wxCDMAppliDescriptionPanel(
634 ID_WINDOW_PROPERTIES,
635 wxT("Description Panel"),
641 if(this->panel_Properties!= NULL)
643 this->panel_Properties->Hide();
644 this->panel_Properties->Destroy();
645 auiManager.DetachPane(this->panel_Properties);
648 this->panel_Properties = description;
649 auiManager.AddPane(panel_Properties, wxCENTER, wxT("Properties"));
655 modelCDMApplication* elementApplication = dynamic_cast<modelCDMApplication*>(element);
656 if(elementApplication != NULL)
658 //create element description
659 wxCDMApplicationDescriptionPanel* description = new wxCDMApplicationDescriptionPanel(
662 ID_WINDOW_PROPERTIES,
663 wxT("Description Panel"),
669 if(this->panel_Properties!= NULL)
671 this->panel_Properties->Hide();
672 this->panel_Properties->Destroy();
673 auiManager.DetachPane(this->panel_Properties);
677 this->panel_Properties = description;
678 auiManager.AddPane(panel_Properties, wxCENTER, wxT("Properties"));
684 modelCDMLib* elementLib = dynamic_cast<modelCDMLib*>(element);
685 if(elementLib != NULL)
687 //create element description
688 wxCDMLibDescriptionPanel* description = new wxCDMLibDescriptionPanel(
691 ID_WINDOW_PROPERTIES,
692 wxT("Description Panel"),
698 if(this->panel_Properties!= NULL)
700 this->panel_Properties->Hide();
701 this->panel_Properties->Destroy();
702 auiManager.DetachPane(this->panel_Properties);
706 this->panel_Properties = description;
707 auiManager.AddPane(panel_Properties, wxCENTER, wxT("Properties"));
713 modelCDMLibrary* elementLibrary = dynamic_cast<modelCDMLibrary*>(element);
714 if(elementLibrary != NULL)
716 //create element description
717 wxCDMLibraryDescriptionPanel* description = new wxCDMLibraryDescriptionPanel(
720 ID_WINDOW_PROPERTIES,
721 wxT("Description Panel"),
727 if(this->panel_Properties!= NULL)
729 this->panel_Properties->Hide();
730 this->panel_Properties->Destroy();
731 auiManager.DetachPane(this->panel_Properties);
735 this->panel_Properties = description;
736 auiManager.AddPane(panel_Properties, wxCENTER, wxT("Properties"));
742 modelCDMPackage* elementPackage = dynamic_cast<modelCDMPackage*>(element);
743 if(elementPackage != NULL)
745 //create element description
746 wxCDMPackageDescriptionPanel* description = new wxCDMPackageDescriptionPanel(
749 ID_WINDOW_PROPERTIES,
750 wxT("Description Panel"),
756 if(this->panel_Properties!= NULL)
758 this->panel_Properties->Hide();
759 this->panel_Properties->Destroy();
760 auiManager.DetachPane(this->panel_Properties);
764 this->panel_Properties = description;
765 auiManager.AddPane(panel_Properties, wxCENTER, wxT("Properties"));
771 modelCDMBlackBox* elementBlackBox = dynamic_cast<modelCDMBlackBox*>(element);
772 if(elementBlackBox != NULL)
774 //create element description
775 wxCDMBlackBoxDescriptionPanel* description = new wxCDMBlackBoxDescriptionPanel(
778 ID_WINDOW_PROPERTIES,
779 wxT("Description Panel"),
785 if(this->panel_Properties!= NULL)
787 this->panel_Properties->Hide();
788 this->panel_Properties->Destroy();
789 auiManager.DetachPane(this->panel_Properties);
793 this->panel_Properties = description;
794 auiManager.AddPane(panel_Properties, wxCENTER, wxT("Properties"));
803 //create element description
804 wxCDMMainDescriptionPanel* description = new wxCDMMainDescriptionPanel(
806 ID_WINDOW_PROPERTIES,
807 wxT("Description Panel"),
813 if(this->panel_Properties!= NULL)
815 this->panel_Properties->Hide();
816 this->panel_Properties->Destroy();
817 auiManager.DetachPane(this->panel_Properties);
821 this->panel_Properties = description;
822 auiManager.AddPane(panel_Properties, wxCENTER, wxT("Properties"));