]> Creatis software - crea.git/blobdiff - lib/creaDevManagerLib/wxCDMMainFrame.cpp
Feature #1711 CreaDevManager application implementation
[crea.git] / lib / creaDevManagerLib / wxCDMMainFrame.cpp
index 54b065d33e027704965c68f64210f97605593cd6..8aca7ba1dfdb015fbe91597379c3511582f90077 100755 (executable)
@@ -40,6 +40,7 @@
 #include "wx/statline.h"
 #include "wx/config.h"
 #include "CDMUtilities.h"
+#include "images/CIcon64.xpm"
 
 #include "creaDevManagerIds.h"
 #include "wxCDMMainDescriptionPanel.h"
@@ -139,6 +140,7 @@ bool wxCDMMainFrame::Create(
 
   CreateMenus();
   CreateControls();
+  SetIcon(wxIcon(CIcon64));
   return TRUE;
 }
 
@@ -894,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,
@@ -919,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,
@@ -929,6 +932,7 @@ void wxCDMMainFrame::OnChangeView(wxCommandEvent& event)
             wxSize(600, 400),
             0
         );
+
                
       }