setPreferenceProperty( nbsteps, "max", 200 );
int importGr = addPreference( tr( "MED files import" ), srangeTab );
+ setPreferenceProperty( importGr, "columns", 1 );
addPreference( tr( "Full MED loading" ), importGr, LightApp_Preferences::Bool, "VISU", "full_med_loading" );
+ addPreference( tr( "Close progress dialog at finish" ), importGr, LightApp_Preferences::Bool, "VISU", "close_at_finish" );
}
void VisuGUI::preferencesChanged( const QString&, const QString& )
myBuildAtOnceCheckBox->setChecked( aResourceMgr->booleanValue( "VISU", "build_at_once", true ) );
connect( myBuildAtOnceCheckBox, SIGNAL( clicked() ), this, SLOT( onBuildCheckBoxClicked() ) );
+ myCloseCheckBox = new QCheckBox( tr( "CLOSE_AT_FINISH" ), mySettingsBox );
+ myCloseCheckBox->setChecked( aResourceMgr->booleanValue( "VISU", "close_at_finish", true ) );
+
aSettingsLayout->addWidget( aFileNameLabel, 0, 0 );
aSettingsLayout->addMultiCellWidget( myFileNameLineEdit, 1, 1, 0, 1 );
aSettingsLayout->addWidget( aFileNameButton, 1, 2 );
aSettingsLayout->addWidget( myBuildAllCheckBox, 2, 0 );
- aSettingsLayout->addWidget( myBuildAtOnceCheckBox, 2, 1 );
+ aSettingsLayout->addWidget( myBuildAtOnceCheckBox, 3, 0 );
+ aSettingsLayout->addWidget( myCloseCheckBox, 4, 0 );
// Progress
myProgressBox = new QGroupBox( tr( "IMPORT_PROGRESS" ), this );
myTimeLCDNumber->display( aTime.toString( "m:ss.zzz" ) );
}
- SUIT_MessageBox::warn1( this, tr( "INF_VISU" ), tr( "IMPORT_DONE" ), tr( "BUT_OK" ) );
+ if( myCloseCheckBox->isChecked() )
+ done( 0 );
+ else
+ SUIT_MessageBox::warn1( this, tr( "INF_VISU" ), tr( "IMPORT_DONE" ), tr( "BUT_OK" ) );
}
}
catch( ... ) {