]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Customize decimals and precision of 'Scale factor' spinbox.
authorakl <akl@opencascade.com>
Tue, 27 Jan 2009 14:03:44 +0000 (14:03 +0000)
committerakl <akl@opencascade.com>
Tue, 27 Jan 2009 14:03:44 +0000 (14:03 +0000)
src/VISUGUI/VisuGUI_Plot3DDlg.cxx

index a6f6938674b3c56cbf30f3e910e8caef93de6e5d..23ac13b55a559e6ede84867c6851af46e00133b4 100644 (file)
@@ -237,7 +237,9 @@ VisuGUI_Plot3DPane::VisuGUI_Plot3DPane (QWidget* parent)
   bottomLayout->setMargin(0);
   // scale
   QLabel* scaleLabel = new QLabel (tr("SCALE"), bottomFrame);
-  ScaleSpn = new QtxDoubleSpinBox (-1.e6, 1.e6, 0.1, bottomFrame);
+  SUIT_ResourceMgr* aResourceMgr = VISU::GetResourceMgr();
+  int aPrecision = aResourceMgr->integerValue( "VISU", "floating_point_precision", 0 );
+  ScaleSpn = new QtxDoubleSpinBox (-1.e38, 1.e38, 0.1, aPrecision*(-1), 38, bottomFrame);
   // Presentation type
   GBPrsType = new QButtonGroup ( bottomFrame);
   QGroupBox* aGB = new QGroupBox (tr("PRESENTATION_TYPE"), bottomFrame);