]> Creatis software - crea.git/commitdiff
Feature #1711 CreaDevManager application implementation
authorunknown <gonzalez@EI-ED-345.creatis.insa-lyon.fr>
Thu, 14 Feb 2013 17:29:08 +0000 (18:29 +0100)
committerunknown <gonzalez@EI-ED-345.creatis.insa-lyon.fr>
Thu, 14 Feb 2013 17:29:08 +0000 (18:29 +0100)
- Settings implemented. Warnings suppression.

lib/creaDevManagerLib/wxCDMMainFrame.cpp
lib/creaDevManagerLib/wxCDMSettingsDialog.cpp
src/creawxVTKRenderWindowInteractor.cxx

index 98dfb28..5ecc185 100755 (executable)
@@ -130,7 +130,7 @@ bool wxCDMMainFrame::Create(
   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();
 
index 306c5a8..50dc185 100644 (file)
@@ -113,7 +113,7 @@ void wxCDMSettingsDialog::CreateControls()
   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);
index 68aa2e3..b83bcce 100644 (file)
@@ -791,7 +791,7 @@ void creawxVTKRenderWindowInteractor::SetRenderWhenDisabled(int newValue)
   //resulting in a Render(), resulting in Update() being called whilst
   //still in progress.
 
-  RenderWhenDisabled = (bool)newValue;
+  RenderWhenDisabled = newValue != 0;
 }
 //---------------------------------------------------------------------------
 //