]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Set precision with scientific format for 'Scale factor' spinbox.
authorakl <akl@opencascade.com>
Tue, 27 Jan 2009 14:02:36 +0000 (14:02 +0000)
committerakl <akl@opencascade.com>
Tue, 27 Jan 2009 14:02:36 +0000 (14:02 +0000)
src/VISUGUI/VisuGUI_Plot3DDlg.cxx

index 064226ee45eba30f7890d5841f578ec4755b52bb..1417f4394f16a2c4b6ca84b110aded5e62c4c1e3 100644 (file)
@@ -222,7 +222,10 @@ VisuGUI_Plot3DPane::VisuGUI_Plot3DPane (QWidget* parent)
   bottomLayout->setMargin(0);
   // scale
   QLabel* scaleLabel = new QLabel (tr("SCALE"), bottomFrame);
-  ScaleSpn = new QtxDblSpinBox (-1.e6, 1.e6, 0.1, bottomFrame);
+  ScaleSpn = new QtxDblSpinBox (-1.e38, 1.e38, 0.1, bottomFrame);
+  SUIT_ResourceMgr* aResourceMgr = VISU::GetResourceMgr();
+  int aPrecision = aResourceMgr->integerValue( "VISU", "floating_point_precision", 0 );
+  ScaleSpn->setPrecision( aPrecision*(-1) );
   // Presentation type
   GBPrsType = new QHButtonGroup (tr("PRESENTATION_TYPE"), bottomFrame);
   new QRadioButton (tr("SURFACE"), GBPrsType);