From: apo Date: Fri, 23 Nov 2007 07:31:19 +0000 (+0000) Subject: Fix for Bug IPAL17688 X-Git-Tag: mergefrom_MERGE_MULTIPR_EVOLUTION_07-Dec-07~31 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b9a8a121f81fe437fd3d1bb1d11cd761120f2789;p=modules%2Fvisu.git Fix for Bug IPAL17688 TC71: REGR: Preferences - ?Generate data table? works wrong --- diff --git a/src/VISUGUI/VisuGUI_CutLinesDlg.cxx b/src/VISUGUI/VisuGUI_CutLinesDlg.cxx index 9f44b482..fca17c18 100644 --- a/src/VISUGUI/VisuGUI_CutLinesDlg.cxx +++ b/src/VISUGUI/VisuGUI_CutLinesDlg.cxx @@ -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 );