From: ouv Date: Mon, 10 Oct 2005 14:00:05 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: BR-D5-38-2003_D2005-12-10~18 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=cff90a65bd919bde078e4b475f06208947c3931b;p=modules%2Fvisu.git *** empty log message *** --- 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();