]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
*** empty log message ***
authorstv <stv@opencascade.com>
Fri, 22 Feb 2008 13:10:03 +0000 (13:10 +0000)
committerstv <stv@opencascade.com>
Fri, 22 Feb 2008 13:10:03 +0000 (13:10 +0000)
src/LightApp/LightApp_Application.cxx
src/LightApp/resources/LightApp.xml
src/SalomeApp/resources/SalomeApp.xml

index 1554d6c8f20e53001e76fb1821225d64d7252b7a..dd70e9b6be43ce06ce0279931e82da5f73bcaf3f 100644 (file)
@@ -303,9 +303,6 @@ LightApp_Application::~LightApp_Application()
 /*!Start application.*/
 void LightApp_Application::start()
 {
-  if ( desktop() )
-    desktop()->retrieveGeometry( resourceMgr()->stringValue( "desktop", "geometry", "(800%)x(800%) (+400%) (+400%) :(full)" ) );
-
   CAM_Application::start();
 
   updateWindows();
@@ -701,8 +698,6 @@ void LightApp_Application::onNewWindow()
 */
 void LightApp_Application::onNewDoc()
 {
-  SUIT_Study* study = activeStudy();
-
   saveDockWindowsState();
 
   CAM_Application::onNewDoc();
@@ -2134,6 +2129,9 @@ void LightApp_Application::loadPreferences()
     if ( aResMgr->value( "windows_visibility", *itr, arr ) )
       myWinVis.insert( *itr, arr );
   }
+
+  if ( desktop() )
+    desktop()->retrieveGeometry( aResMgr->stringValue( "desktop", "geometry" ) );
 }
 
 /*!
index 347903fc775e869cdc9804eb50565867941c4242..bca753a0150dcc2244f4b524d18482c83ad9c58a 100644 (file)
   </section>
   <section name="desktop" >
     <!-- Default GUI desktop state, position, size -->
-    <parameter name="geometry"  value="(800%)x(800%) (+400%) (+400%) :(full)"/>
-    <parameter name="state"  value="normal"/>
-    <parameter name="pos_x"  value="center"/>
-    <parameter name="pos_y"  value="center"/>
-    <parameter name="width"  value="800"/>
-    <parameter name="height" value="600"/>
+    <parameter name="geometry"  value="80%x80%+10%+10%"/>
   </section>
   <section name="PyConsole">
     <!-- Python console preferences -->
index 69ff886a405bfcb65e62bee3a2655afb0bf500e9..9e8e02f2a11b7acf775d301965dce4301dce4b33 100644 (file)
   </section>
   <section name="desktop" >
     <!-- Default GUI desktop state, position, size -->
-    <parameter name="state"  value="normal"/>
-    <parameter name="pos_x"  value="center"/>
-    <parameter name="pos_y"  value="center"/>
-    <parameter name="width"  value="800"/>
-    <parameter name="height" value="600"/>
-  </section>
+    <parameter name="geometry"  value="80%%x80%%+10%%+10%%"/>
+ </section>
   <section name="ObjectBrowser" >
     <!-- Object Browser preferences -->
     <parameter name="auto_size"           value="false" />