myBuildFieldsButton->setPaletteBackgroundColor( Qt::red );
connect( myBuildFieldsCheckBox, SIGNAL( clicked() ), this, SLOT( onBuildCheckBoxClicked() ) );
+ myBuildMinMaxCheckBox = new QCheckBox( tr( "BUILD_MINMAX" ), myProgressBox );
+ myBuildMinMaxCheckBox->setChecked( aResourceMgr->booleanValue( "VISU", "build_min_max", true ) );
+ myBuildMinMaxButton = new QPushButton( myProgressBox );
+ myBuildMinMaxButton->setEnabled( false );
+ myBuildMinMaxButton->setFixedSize( 30, 30 );
+ myBuildMinMaxButton->setPaletteBackgroundColor( Qt::red );
+ connect( myBuildMinMaxCheckBox, SIGNAL( clicked() ), this, SLOT( onBuildCheckBoxClicked() ) );
+
myBuildGroupsCheckBox = new QCheckBox( tr( "BUILD_GROUPS" ), myProgressBox );
myBuildGroupsCheckBox->setChecked( aResourceMgr->booleanValue( "VISU", "build_groups", true ) );
myBuildGroupsButton = new QPushButton( myProgressBox );
aProgressLayout->addWidget( myBuildEntitiesButton, 0, 1 );
aProgressLayout->addWidget( myBuildFieldsCheckBox, 1, 0 );
aProgressLayout->addWidget( myBuildFieldsButton, 1, 1 );
- aProgressLayout->addWidget( myBuildGroupsCheckBox, 2, 0 );
- aProgressLayout->addWidget( myBuildGroupsButton, 2, 1 );
+ aProgressLayout->addWidget( myBuildMinMaxCheckBox, 2, 0 );
+ aProgressLayout->addWidget( myBuildMinMaxButton, 2, 1 );
+ aProgressLayout->addWidget( myBuildGroupsCheckBox, 3, 0 );
+ aProgressLayout->addWidget( myBuildGroupsButton, 3, 1 );
// Time
myTimeBox = new QGroupBox( tr( "IMPORT_TIME" ), this );
tr("BUT_OK"));
onClose();
}else{
- myResult->SetBuildFields( myBuildFieldsCheckBox->isChecked(), true );
+ myResult->SetBuildFields( myBuildFieldsCheckBox->isChecked(), myBuildMinMaxCheckBox->isChecked() );
myResult->SetBuildGroups( myBuildGroupsCheckBox->isChecked() );
//setModal( false );
bool isGroupsDone = myResult->IsGroupsDone();
updateButton( myBuildEntitiesButton, isEntitiesDone );
- updateButton( myBuildFieldsButton, isFieldsDone && isMinMaxDone);
+ updateButton( myBuildFieldsButton, isFieldsDone );
+ updateButton( myBuildMinMaxButton, isMinMaxDone );
updateButton( myBuildGroupsButton, isGroupsDone );
}
else if( aCheckBox == myBuildFieldsCheckBox )
{
myBuildFieldsButton->setPaletteBackgroundColor( aColor );
+ if( !anIsChecked && myBuildMinMaxCheckBox->isChecked() )
+ myBuildMinMaxCheckBox->animateClick();
+ }
+ else if( aCheckBox == myBuildMinMaxCheckBox )
+ {
+ myBuildMinMaxButton->setPaletteBackgroundColor( aColor );
+ if( anIsChecked && !myBuildFieldsCheckBox->isChecked() )
+ myBuildFieldsCheckBox->animateClick();
}
else if( aCheckBox == myBuildGroupsCheckBox )
myBuildGroupsButton->setPaletteBackgroundColor( aColor );