]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
0021760: [CEA 505] adding a preference in SALOME
authorvsr <vsr@opencascade.com>
Mon, 20 Aug 2012 10:43:54 +0000 (10:43 +0000)
committervsr <vsr@opencascade.com>
Mon, 20 Aug 2012 10:43:54 +0000 (10:43 +0000)
Add "Show splash screen at start-up" option to SALOME (true by default)

src/LightApp/LightApp_Application.cxx
src/LightApp/resources/LightApp_msg_en.ts
src/LightApp/resources/LightApp_msg_fr.ts

index 8880510ceb7385349396b8f42e4c36a3dc6fb176..7a27df87d9af22159ec682195a1bfaf1019ffb3c 100644 (file)
@@ -2020,6 +2020,9 @@ void LightApp_Application::createPreferences( LightApp_Preferences* pref )
 
   // ... "Look and feel" group <<start>>
   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 
index d68711fdc2d0272dc7dad091554105311326a71b..7d6b70a8486a6fa2ab867c57bb2bac66021f70fa 100644 (file)
@@ -606,6 +606,10 @@ The changes will be applied on the next application session.</translation>
         <source>PREF_GROUP_LOOK_AND_FEEL</source>
         <translation>Look and feel</translation>
     </message>
+    <message>
+        <source>PREF_SHOW_SPLASH</source>
+        <translation>Show splash screen at start-up</translation>
+    </message>
     <message>
         <source>PREF_OPAQUE_RESIZE</source>
         <translation>Opaque resize</translation>
index 3506f41ca0707f48cf693434bf88c6d0e442c4e0..6fd31e8ca57af0f78193fc21795f814edd6aa6e0 100755 (executable)
@@ -606,6 +606,10 @@ Les modifications seront appliquées à la prochaine session.</translation>
         <source>PREF_GROUP_LOOK_AND_FEEL</source>
         <translation>Aspect</translation>
     </message>
+    <message>
+        <source>PREF_SHOW_SPLASH</source>
+        <translation>Show splash screen at start-up</translation>
+    </message>
     <message>
         <source>PREF_OPAQUE_RESIZE</source>
         <translation>Redimensionnement opaque</translation>