int undoPref = pref->addPreference( tr( "PREF_UNDO_LEVEL" ), studyGroup, LightApp_Preferences::IntSpin, "Study", "undo_level" );
pref->setItemProperty( undoPref, "min", 1 );
pref->setItemProperty( undoPref, "max", 100 );
+ pref->addPreference( tr( "PREF_STORE_POS" ), studyGroup, LightApp_Preferences::Bool, "Study", "store_positions" );
int extgroup = pref->addPreference( tr( "PREF_GROUP_EXT_BROWSER" ), genTab );
pref->setItemProperty( extgroup, "columns", 1 );
}
}
+ if( sec=="Study" )
+ {
+ if( param=="store_positions" )
+ updateWindows();
+ }
+
if( sec=="PyConsole" )
{
if( param=="font" )
/*!Load windows geometry.*/
void LightApp_Application::loadWindowsGeometry()
{
+ bool store = resourceMgr()->booleanValue( "Study", "store_positions", true );
+ if( !store )
+ return;
+
QtxDockAction* dockMgr = 0;
QAction* a = action( ViewWindowsId );
/*!Save windows geometry.*/
void LightApp_Application::saveWindowsGeometry()
{
+ bool store = resourceMgr()->booleanValue( "Study", "store_positions", true );
+ if( !store )
+ return;
+
QtxDockAction* dockMgr = 0;
QAction* a = action( ViewWindowsId );
<parameter name="QuickDirList" value=""/>
<!-- Here go other common user preferences -->
</section>
+ <section name="Study">
+ <parameter value="true" name="store_positions" />
+ </section>
<section name="OCCViewer" >
<parameter value="35, 136, 145" name="background" />
<parameter value="1" name="iso_number_u" />
msgid "LightApp_Application::PREF_UNDO_LEVEL"
msgstr "Undo level"
+msgid "LightApp_Application::PREF_STORE_POS"
+msgstr "Store positions of windows"
+
msgid "LightApp_Application::PREF_GROUP_EXT_BROWSER"
msgstr "External browser"
<parameter name="GHS3DPlugin" value="${GHS3DPLUGIN_ROOT_DIR}/share/salome/resources"/>
<parameter name="ToolsGUI" value="${SUITRoot}/resources"/>
</section>
+ <section name="Study">
+ <parameter name="store_positions" value="true" />
+ </section>
<section name="GEOM">
<parameter name="name" value="Geometry"/>
<parameter name="icon" value="ModuleGeom.png"/>