From cff90a65bd919bde078e4b475f06208947c3931b Mon Sep 17 00:00:00 2001 From: ouv Date: Mon, 10 Oct 2005 14:00:05 +0000 Subject: [PATCH] *** empty log message *** --- src/VISUGUI/VisuGUI_GaussPointsDlg.cxx | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/VISUGUI/VisuGUI_GaussPointsDlg.cxx b/src/VISUGUI/VisuGUI_GaussPointsDlg.cxx index 823990d6..f3ffcc7c 100644 --- a/src/VISUGUI/VisuGUI_GaussPointsDlg.cxx +++ b/src/VISUGUI/VisuGUI_GaussPointsDlg.cxx @@ -82,12 +82,10 @@ VisuGUI_GaussScalarBarPane::VisuGUI_GaussScalarBarPane (QWidget * parent, bool S myRBLocal = new QRadioButton( tr( "LOCAL" ), BarTypeGroup ); myRBGlobal = new QRadioButton( tr( "GLOBAL" ), BarTypeGroup ); - myCBDisplayed = new QCheckBox( tr( "DISPLAYED" ), ActiveBarGroup ); - //myCBDisplayed->setChecked( true ); - //myCBDisplayed->setEnabled( false ); + myCBDisplayed = new QCheckBox( tr( "DISPLAYED" ), ActiveBarGroup ); - ActiveBarGroupLayout->addMultiCellWidget( BarTypeGroup, 0, 1, 0, 0); - ActiveBarGroupLayout->addWidget( myCBDisplayed, 1, 1); + ActiveBarGroupLayout->addMultiCellWidget( BarTypeGroup, 0, 1, 0, 0 ); + ActiveBarGroupLayout->addWidget( myCBDisplayed, 1, 1 ); // Range ============================================================ RangeGroup = new QButtonGroup (tr("SCALAR_RANGE_GRP"), this, "RangeGroup"); @@ -244,7 +242,8 @@ VisuGUI_GaussScalarBarPane::VisuGUI_GaussScalarBarPane (QWidget * parent, bool S myTextDlg->setTitleVisible(!SetPref); // signals and slots connections =========================================== - connect( myRBGlobal, SIGNAL( toggled( bool ) ), myCBDisplayed, SLOT( setEnabled( bool ) ) ); + connect( myRBLocal, SIGNAL( toggled( bool ) ), myCBDisplayed, SLOT( setEnabled( bool ) ) ); + connect( myRBGlobal, SIGNAL( toggled( bool ) ), myCBDisplayed, SLOT( setChecked( bool ) ) ); connect( RainbowButton, SIGNAL( toggled( bool ) ), ColorLabel, SLOT( setEnabled( bool ) ) ); connect( RainbowButton, SIGNAL( toggled( bool ) ), ColorSpin, SLOT( setEnabled( bool ) ) ); connect( RainbowButton, SIGNAL( toggled( bool ) ), LabelLabel, SLOT( setEnabled( bool ) ) ); @@ -274,7 +273,7 @@ void VisuGUI_GaussScalarBarPane::initFromPrsObject(VISU::GaussPoints_i* thePrs) bool activeLocal = thePrs->GetIsActiveLocalScalarBar(); myRBLocal->setChecked( activeLocal ); myRBGlobal->setChecked( !activeLocal ); - myCBDisplayed->setEnabled( !activeLocal ); + myCBDisplayed->setEnabled( activeLocal ); myCBDisplayed->setChecked( thePrs->GetIsDispGlobalScalarBar() ); bool bicolor = thePrs->GetGaussPointsPL()->GetBicolor(); -- 2.39.2