]> 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 98dfb28b1d64ed9874e926db18124a265c61fe09..5ecc185c478f1d696f771d271931b4be90ae66c7 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 306c5a82ce4fdd457bf89037e156bc88bebb366d..50dc1857fde726a84b75f7dd8b9d50ae95e71af9 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 68aa2e355e7e4d75788a6bdb032b6a55f9971f0c..b83bcce5c6147a0d217b64ef10809de31249c411 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;
 }
 //---------------------------------------------------------------------------
 //