summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
157fdd7)
- Settings implemented. Warnings suppression.
this->help = true;
wxConfigBase* pConfig = wxConfigBase::Get();
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->model = new modelCDMMain();
this->fileExplorer = new wxTextCtrl(this, -1, pConfig->Read(wxT("FILE_EXPLORER"), crea::std2wx(CDMUtilities::FILE_EXPLORER)));
this->terminal = new wxTextCtrl(this, -1, pConfig->Read(wxT("TERMINAL"), crea::std2wx(CDMUtilities::TERMINAL)));
this->helpEnabled = new wxCheckBox(this, -1, wxT(""));
this->fileExplorer = new wxTextCtrl(this, -1, pConfig->Read(wxT("FILE_EXPLORER"), crea::std2wx(CDMUtilities::FILE_EXPLORER)));
this->terminal = new wxTextCtrl(this, -1, pConfig->Read(wxT("TERMINAL"), crea::std2wx(CDMUtilities::TERMINAL)));
this->helpEnabled = new wxCheckBox(this, -1, wxT(""));
- this->helpEnabled->SetValue(pConfig->Read(wxT("HELP"), true));
+ this->helpEnabled->SetValue(pConfig->Read(wxT("HELP"), true) != 0);
formItems->Add(stxtTextEditor, 0, wxALIGN_CENTER_VERTICAL);
formItems->Add(stxtTextEditor, 0, wxALIGN_CENTER_VERTICAL);
//resulting in a Render(), resulting in Update() being called whilst
//still in progress.
//resulting in a Render(), resulting in Update() being called whilst
//still in progress.
- RenderWhenDisabled = (bool)newValue;
+ RenderWhenDisabled = newValue != 0;
}
//---------------------------------------------------------------------------
//
}
//---------------------------------------------------------------------------
//