From: vsr Date: Mon, 20 Aug 2012 10:43:54 +0000 (+0000) Subject: 0021760: [CEA 505] adding a preference in SALOME X-Git-Tag: V6_6_0a1~50 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1eee4d7bef18086bdbc62c969f27ca755dd7802f;p=modules%2Fgui.git 0021760: [CEA 505] adding a preference in SALOME Add "Show splash screen at start-up" option to SALOME (true by default) --- diff --git a/src/LightApp/LightApp_Application.cxx b/src/LightApp/LightApp_Application.cxx index 8880510ce..7a27df87d 100644 --- a/src/LightApp/LightApp_Application.cxx +++ b/src/LightApp/LightApp_Application.cxx @@ -2020,6 +2020,9 @@ void LightApp_Application::createPreferences( LightApp_Preferences* pref ) // ... "Look and feel" group <> int lookGroup = pref->addPreference( tr( "PREF_GROUP_LOOK_AND_FEEL" ), genTab ); + pref->setItemProperty( "columns", 2, lookGroup ); + // .... -> show splash-screen + pref->addPreference( tr( "PREF_SHOW_SPLASH" ), lookGroup, LightApp_Preferences::Bool, "launch", "splash" ); // .... -> opaque resize pref->addPreference( tr( "PREF_OPAQUE_RESIZE" ), lookGroup, LightApp_Preferences::Bool, "desktop", "opaque_resize" ); // .... -> drop-down buttons diff --git a/src/LightApp/resources/LightApp_msg_en.ts b/src/LightApp/resources/LightApp_msg_en.ts index d68711fdc..7d6b70a84 100644 --- a/src/LightApp/resources/LightApp_msg_en.ts +++ b/src/LightApp/resources/LightApp_msg_en.ts @@ -606,6 +606,10 @@ The changes will be applied on the next application session. PREF_GROUP_LOOK_AND_FEEL Look and feel + + PREF_SHOW_SPLASH + Show splash screen at start-up + PREF_OPAQUE_RESIZE Opaque resize diff --git a/src/LightApp/resources/LightApp_msg_fr.ts b/src/LightApp/resources/LightApp_msg_fr.ts index 3506f41ca..6fd31e8ca 100755 --- a/src/LightApp/resources/LightApp_msg_fr.ts +++ b/src/LightApp/resources/LightApp_msg_fr.ts @@ -606,6 +606,10 @@ Les modifications seront appliquées à la prochaine session. PREF_GROUP_LOOK_AND_FEEL Aspect + + PREF_SHOW_SPLASH + Show splash screen at start-up + PREF_OPAQUE_RESIZE Redimensionnement opaque