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();
//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
);
+
}