From 3700814aca8129e0eea75a4e543087e5a636214f Mon Sep 17 00:00:00 2001 From: enk Date: Fri, 10 Feb 2006 06:46:55 +0000 Subject: [PATCH] Fix for Bug IPAL11555: The "Origin & Size" values from "Preferences" aren't taken into account for Scalar Bar. --- src/VISUGUI/VisuGUI_ScalarBarDlg.cxx | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/VISUGUI/VisuGUI_ScalarBarDlg.cxx b/src/VISUGUI/VisuGUI_ScalarBarDlg.cxx index ddc63e88..a00194ae 100644 --- a/src/VISUGUI/VisuGUI_ScalarBarDlg.cxx +++ b/src/VISUGUI/VisuGUI_ScalarBarDlg.cxx @@ -62,8 +62,20 @@ using namespace std; VisuGUI_ScalarBarPane::VisuGUI_ScalarBarPane (QWidget * parent, bool SetPref): QVBox(parent), myPreviewActor(0) { - myVerX = 0.01; myVerY = 0.10; myVerW = 0.10; myVerH = 0.80; - myHorX = 0.20; myHorY = 0.01; myHorW = 0.60; myHorH = 0.12; + SUIT_ResourceMgr* aResourceMgr = VISU::GetResourceMgr(); + QString propertyName; + propertyName = QString("scalar_bar_vertical_"); + myVerX = aResourceMgr->doubleValue("VISU", propertyName + "x", myVerX); + myVerY = aResourceMgr->doubleValue("VISU", propertyName + "y", myVerY); + myVerW = aResourceMgr->doubleValue("VISU", propertyName + "width", myVerW); + myVerH = aResourceMgr->doubleValue("VISU", propertyName + "height",myVerH); + + propertyName = QString("scalar_bar_horizontal_"); + myHorX = aResourceMgr->doubleValue("VISU", propertyName + "x", myHorX); + myHorY = aResourceMgr->doubleValue("VISU", propertyName + "y", myHorY); + myHorW = aResourceMgr->doubleValue("VISU", propertyName + "width", myHorW); + myHorH = aResourceMgr->doubleValue("VISU", propertyName + "height",myHorH); + Imin = 0.0; Imax = 0.0; /*Fmin = 0.0; Fmax = 0.0;*/ Rmin = 0.0; Rmax = 0.0; myRangeMode = -1; -- 2.39.2