]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix VISU preferences layouting problems
authorvsr <vsr@opencascade.com>
Wed, 11 Mar 2009 15:14:07 +0000 (15:14 +0000)
committervsr <vsr@opencascade.com>
Wed, 11 Mar 2009 15:14:07 +0000 (15:14 +0000)
src/VISUGUI/VisuGUI.cxx

index 4b0e54fa4d4990aace95154377ae9c18d50c4714..e7c5560571551cc053c606e11d28595a5584a538 100644 (file)
@@ -3523,7 +3523,8 @@ void VisuGUI::createPreferences()
   setPreferenceProperty( lPrec, "max", 100 );
   
   int frame = addPreference( "", sbarTab, LightApp_Preferences::Frame, "", "" );
-  setPreferenceProperty( frame, "orientation", "horizontal" );
+  //setPreferenceProperty( frame, "orientation", "vertical" );
+  setPreferenceProperty( frame, "columns", "2" );
 
   // group: "Orientation"
   int orientGr = addPreference( tr( "VISU_ORIENTATION" ), frame, LightApp_Preferences::GroupBox );
@@ -3545,11 +3546,12 @@ void VisuGUI::createPreferences()
 
 
   // group: "Origin & Size Vertical"
-  int psSzFrame = addPreference( "", sbarTab, LightApp_Preferences::Frame, "", "" );
-  setPreferenceProperty( psSzFrame, "orientation", "horizontal" );
+  //int psSzFrame = addPreference( "", sbarTab, LightApp_Preferences::Frame, "", "" );
+  //setPreferenceProperty( psSzFrame, "orientation", "horizontal" );
+  //setPreferenceProperty( psSzFrame, "columns", "2" );
 
   int posVSizeGr = addPreference( tr( "VISU_ORIGIN_AND_SIZE" ) + " " + tr( "VISU_VERTICAL" ),
-                                 psSzFrame, LightApp_Preferences::GroupBox );
+                                 frame, LightApp_Preferences::GroupBox );
   setPreferenceProperty( posVSizeGr, "columns", 2 );
   int xv = addPreference( tr( "VISU_X" ), posVSizeGr,
                           LightApp_Preferences::DblSpin, "VISU", "scalar_bar_vertical_x" );
@@ -3599,7 +3601,7 @@ void VisuGUI::createPreferences()
 
   // group: "Origin & Size Horizontal"
   int posHSizeGr = addPreference( tr( "VISU_ORIGIN_AND_SIZE" ) + " " + tr( "VISU_HORIZONTAL" ),
-                                 psSzFrame, LightApp_Preferences::GroupBox );
+                                 frame, LightApp_Preferences::GroupBox );
   setPreferenceProperty( posHSizeGr, "columns", 2 );
 
   int xh = addPreference( tr( "VISU_X" ), posHSizeGr,