#include "wx/statline.h"
#include "wx/config.h"
#include "CDMUtilities.h"
+#include "images/CIcon20.xpm"
#include "creaDevManagerIds.h"
#include "wxCDMMainDescriptionPanel.h"
wxCDMMainFrame::~wxCDMMainFrame()
{
+ wxConfigBase* pConfig = wxConfigBase::Get();
+ pConfig->Write(wxT("HELP"), this->help);
+
auiManager.UnInit();
}
this->help = true;
wxConfigBase* pConfig = wxConfigBase::Get();
- this->help = pConfig->Read(wxT("HELP"), this->help);
+ this->help = pConfig->Read(wxT("HELP"), this->help) != 0;
this->model = new modelCDMMain();
CreateMenus();
CreateControls();
+ SetIcon(wxIcon(CIcon20));
return TRUE;
}
//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,
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,
wxSize(600, 400),
0
);
+
}