From: vsr Date: Wed, 11 Mar 2009 15:14:07 +0000 (+0000) Subject: Fix VISU preferences layouting problems X-Git-Tag: V5_1_1rc2~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3fdf5a016b5cfbf0c970a557558694f3696c7b13;p=modules%2Fvisu.git Fix VISU preferences layouting problems --- diff --git a/src/VISUGUI/VisuGUI.cxx b/src/VISUGUI/VisuGUI.cxx index 4b0e54fa..e7c55605 100644 --- a/src/VISUGUI/VisuGUI.cxx +++ b/src/VISUGUI/VisuGUI.cxx @@ -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,