From 584e9516d3b6a75f6999bdd8adda4e03454b4594 Mon Sep 17 00:00:00 2001 From: sln Date: Thu, 15 Jan 2009 08:02:49 +0000 Subject: [PATCH] 0019819: EDF 643 VISU : Scalar bar ergonomics. Default origin and size of scalar bar changed --- resources/SalomeApp.xml | 12 ++++++------ src/SMESHGUI/SMESHGUI.cxx | 8 ++++---- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/resources/SalomeApp.xml b/resources/SalomeApp.xml index 699b8b52c..6846d0008 100644 --- a/resources/SalomeApp.xml +++ b/resources/SalomeApp.xml @@ -23,9 +23,9 @@ - - - + + + @@ -34,10 +34,10 @@ - - + + - + diff --git a/src/SMESHGUI/SMESHGUI.cxx b/src/SMESHGUI/SMESHGUI.cxx index cfe0e5d54..df1f47522 100644 --- a/src/SMESHGUI/SMESHGUI.cxx +++ b/src/SMESHGUI/SMESHGUI.cxx @@ -3605,7 +3605,7 @@ void SMESHGUI::preferencesChanged( const QString& sect, const QString& name ) if(sbX1+sbW > aTol){ aWarning = "Origin and Size Vertical: X+Width > 1\n"; sbX1=0.01; - sbW=0.05; + sbW=0.08; aResourceMgr->setValue("SMESH", "scalar_bar_vertical_x", sbX1); aResourceMgr->setValue("SMESH", "scalar_bar_vertical_width", sbW); } @@ -3624,8 +3624,8 @@ void SMESHGUI::preferencesChanged( const QString& sect, const QString& name ) sbW = aResourceMgr->doubleValue("SMESH", "scalar_bar_horizontal_width", sbW); if(sbX1+sbW > aTol){ aWarning = "Origin and Size Horizontal: X+Width > 1\n"; - sbX1=0.01; - sbW=0.05; + sbX1=0.1; + sbW=0.08; aResourceMgr->setValue("SMESH", "scalar_bar_horizontal_x", sbX1); aResourceMgr->setValue("SMESH", "scalar_bar_horizontal_width", sbW); } @@ -3636,7 +3636,7 @@ void SMESHGUI::preferencesChanged( const QString& sect, const QString& name ) if(sbY1+sbH > aTol){ aWarning = "Origin and Size Horizontal: Y+Height > 1\n"; sbY1=0.01; - sbH=0.05; + sbH=0.08; aResourceMgr->setValue("SMESH", "scalar_bar_horizontal_y", sbY1); aResourceMgr->setValue("SMESH", "scalar_bar_horizontal_height",sbH); } -- 2.39.2