]> Creatis software - crea.git/blobdiff - lib/creaDevManagerLib/wxCDMMainFrame.cpp
Feature #1711 CreaDevManager application implementation
[crea.git] / lib / creaDevManagerLib / wxCDMMainFrame.cpp
index 5ecc185c478f1d696f771d271931b4be90ae66c7..91ffe0fbd9f5c5982f5acea39a67fcc43aa3b67d 100755 (executable)
@@ -40,6 +40,7 @@
 #include "wx/statline.h"
 #include "wx/config.h"
 #include "CDMUtilities.h"
+#include "images/CIcon20.xpm"
 
 #include "creaDevManagerIds.h"
 #include "wxCDMMainDescriptionPanel.h"
@@ -114,6 +115,9 @@ wxCDMMainFrame::wxCDMMainFrame(
 
 wxCDMMainFrame::~wxCDMMainFrame()
 {
+  wxConfigBase* pConfig = wxConfigBase::Get();
+  pConfig->Write(wxT("HELP"), this->help);
+
   auiManager.UnInit();
 }
 
@@ -136,6 +140,7 @@ bool wxCDMMainFrame::Create(
 
   CreateMenus();
   CreateControls();
+  SetIcon(wxIcon(CIcon20));
   return TRUE;
 }
 
@@ -891,7 +896,7 @@ void wxCDMMainFrame::OnChangeView(wxCommandEvent& event)
         //this->tree_Projects->Expand(this->model->GetProject()->GetId());
         //this->tree_Projects->Unselect();
         this->actualTreeItem.Unset();
-                 description = new wxCDMPackageManagerPanel(
+       description = new wxCDMPackageManagerPanel(
             this,
             this->model->GetProject(),
             ID_WINDOW_PROPERTIES,
@@ -916,7 +921,8 @@ void wxCDMMainFrame::OnChangeView(wxCommandEvent& event)
     else if(event.GetString() == wxT("blackbox"))
       {
         modelCDMBlackBox* bb = (modelCDMBlackBox*)event.GetClientData();
-               this->actualTreeItem.Unset();
+        this->actualTreeItem.Unset();
+        this->tree_Projects->SelectItem(bb->GetHeaderFile()->GetId().GetWxId());
         description = new wxCDMBlackBoxDescriptionPanel(
             this,
             bb,
@@ -926,6 +932,7 @@ void wxCDMMainFrame::OnChangeView(wxCommandEvent& event)
             wxSize(600, 400),
             0
         );
+
                
       }