]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix for Bug IPAL17688
authorapo <apo@opencascade.com>
Fri, 23 Nov 2007 07:31:19 +0000 (07:31 +0000)
committerapo <apo@opencascade.com>
Fri, 23 Nov 2007 07:31:19 +0000 (07:31 +0000)
  TC71: REGR: Preferences - ?Generate data table? works wrong

src/VISUGUI/VisuGUI_CutLinesDlg.cxx

index 9f44b4826de89342d0d7d6899f4fa20e0adf2b98..fca17c189417eb7ebe67627812bc7a831e777adf 100644 (file)
@@ -80,6 +80,7 @@ VisuGUI_CutLinesDlg::VisuGUI_CutLinesDlg (SalomeApp_Module* theModule)
   QVBoxLayout* aMainLayout = new QVBoxLayout (this, 7, 6);
   aMainLayout->setSpacing(5);
 
+  SUIT_ResourceMgr* aResourceMgr = VISU::GetResourceMgr();
   hasInit = false;
 
   // Tab pane
@@ -132,7 +133,7 @@ VisuGUI_CutLinesDlg::VisuGUI_CutLinesDlg (SalomeApp_Module* theModule)
   aPlaneLayout->addWidget(aPosBox);
 
   myPreviewCheck = new QCheckBox (tr("LBL_SHOW_PREVIEW"), aPlanePane);
-  myPreviewCheck->setChecked(false);
+  myPreviewCheck->setChecked( aResourceMgr->booleanValue("VISU", "show_preview", false) );
   aPlaneLayout->addWidget(myPreviewCheck);
 
   myAllCurvesInvertedCheck = new QCheckBox(tr("LBL_INVERT_CURVES"), aPlanePane);
@@ -144,7 +145,7 @@ VisuGUI_CutLinesDlg::VisuGUI_CutLinesDlg (SalomeApp_Module* theModule)
   aPlaneLayout->addWidget(myUseAbsoluteLengthCheck);
 
   myCreateTable = new QCheckBox (tr("LBL_GENERATE_TABLE"), aPlanePane);
-  myCreateTable->setChecked(true);
+  myCreateTable->setChecked( aResourceMgr->booleanValue("VISU", "generate_data_table", true) );
   aPlaneLayout->addWidget( myCreateTable );
 
   QHBox* aCheckPane = new QHBox(aPlanePane);
@@ -152,8 +153,8 @@ VisuGUI_CutLinesDlg::VisuGUI_CutLinesDlg (SalomeApp_Module* theModule)
   aCheckPane->setStretchFactor(aLbl, 0);
   myCurvesCheck = new QCheckBox(tr("LBL_GENERATE_CURVES"), aCheckPane);
   aCheckPane->setStretchFactor(aCheckPane, 0);
-  myCurvesCheck->setChecked(true);
-  myCurvesCheck->setEnabled(true);
+  myCurvesCheck->setChecked( aResourceMgr->booleanValue("VISU", "generate_curves", true) );
+  myCurvesCheck->setEnabled( aResourceMgr->booleanValue("VISU", "generate_data_table", true) );
   QLabel* aLbl2 = new QLabel("   ", aCheckPane);
   aCheckPane->setStretchFactor(aLbl2, 1);
   aPlaneLayout->addWidget( aCheckPane );