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");
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 ) ) );
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();