-// Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
connect( impBtn, SIGNAL( clicked() ), this, SLOT( onImportPref() ) );
connect( this, SIGNAL( defaultPressed() ), prefs, SIGNAL( resetToDefaults() ) );
+ connect( prefs, SIGNAL( restartRequired() ), this, SLOT( onRestartRequired() ) );
+
setMinimumSize( 800, 600 );
}
{
SUIT_Application* app = SUIT_Session::session()->activeApplication();
if ( app )
- app->onHelpContextModule( "GUI", "setting_preferences_page.html" );
+ app->onHelpContextModule( "GUI", "setting_preferences.html" );
}
/*!Store preferences on apply.*/
myPrefs->toBackup();
}
}
+
+/*! Called if some preferences that will come in force only after application restart are changed */
+void LightApp_PreferencesDlg::onRestartRequired()
+{
+ SUIT_MessageBox::information( this, tr( "WRN_WARNING" ), tr( "PREF_NEED_RESTART" ) );
+}