]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Correction for bug IPAL13044.
authorskl <skl@opencascade.com>
Wed, 2 Aug 2006 08:59:29 +0000 (08:59 +0000)
committerskl <skl@opencascade.com>
Wed, 2 Aug 2006 08:59:29 +0000 (08:59 +0000)
src/BlocksGUI/BlocksGUI_TrsfDlg.cxx
src/DlgRef/DlgRef_SpinBox.h
src/GenerationGUI/GenerationGUI_FillingDlg.cxx
src/TransformationGUI/TransformationGUI_MultiTranslationDlg.cxx

index bfc6d9d663cbe992c73ca296e6bc2dc8b0cde2e6..1a4c04a6492e1329a3e26e8bd8ea86931572bdde 100644 (file)
@@ -143,7 +143,8 @@ void BlocksGUI_TrsfDlg::Init()
   double SpecificStep = 1.0;
   QMap<int, DlgRef_SpinBox*>::iterator anIter;
   for (anIter = mySpinBox.begin(); anIter != mySpinBox.end(); ++anIter) {
-    anIter.data()->RangeStepAndValidator(1.0, 999.999, SpecificStep, 3);
+    //anIter.data()->RangeStepAndValidator(1.0, 999.999, SpecificStep, 3);
+    anIter.data()->RangeStepAndValidator(1.0, MAX_NUMBER, SpecificStep, 3);
   }
 
   // signals and slots connections
index 097e1378f2978a41f9abd91046ada6b4eb3f5234..9cc039d456568ab66658a0746de4180e0680e8dc 100644 (file)
@@ -43,6 +43,7 @@
 
 #define COORD_MIN -1e+15
 #define COORD_MAX +1e+15
+#define MAX_NUMBER 100000
 
 //=================================================================================
 // class    : DlgRef_SpinBox
index 5026f26b34cc77012477c0ea5602ee805244c58b..63ffa51cd742be0223f24c4ad00c1f8e8cf3c65f 100644 (file)
@@ -124,10 +124,10 @@ void GenerationGUI_FillingDlg::Init()
   double SpecificStep1 = 1;
   double SpecificStep2 = 0.0001;
   /* min, max, step and decimals for spin boxes & initial values */
-  GroupPoints->SpinBox_1->RangeStepAndValidator(2.0, 999.999, SpecificStep1, 3);
+  GroupPoints->SpinBox_1->RangeStepAndValidator(2.0, MAX_NUMBER, SpecificStep1, 3);
   GroupPoints->SpinBox_2->RangeStepAndValidator(0.00001, 10000.0, SpecificStep2, 5);
-  GroupPoints->SpinBox_3->RangeStepAndValidator(1.0, 999.999, SpecificStep1, 3);
-  GroupPoints->SpinBox_4->RangeStepAndValidator(1.0, 999.999, SpecificStep1, 3);
+  GroupPoints->SpinBox_3->RangeStepAndValidator(1.0, MAX_NUMBER, SpecificStep1, 3);
+  GroupPoints->SpinBox_4->RangeStepAndValidator(1.0, MAX_NUMBER, SpecificStep1, 3);
   GroupPoints->SpinBox_5->RangeStepAndValidator(0.00001, 10000.0, SpecificStep2, 5);
 
   GroupPoints->SpinBox_1->SetValue(myMinDeg);
index f340bc99897eac5bf36aff14e85fd49c205d7849..75f3e4d3500d2cc942e389147cb55112ae12bba1 100644 (file)
@@ -131,14 +131,14 @@ void TransformationGUI_MultiTranslationDlg::Init()
   double SpecificStep = 1;
   /* min, max, step and decimals for spin boxes & initial values */
   GroupPoints->SpinBox_DX->RangeStepAndValidator(COORD_MIN, COORD_MAX, step, 3);
-  GroupPoints->SpinBox_DY->RangeStepAndValidator(1.0, COORD_MAX, SpecificStep, 3);
+  GroupPoints->SpinBox_DY->RangeStepAndValidator(1.0, MAX_NUMBER, SpecificStep, 3);
   GroupPoints->SpinBox_DX->SetValue(myStepU);
   GroupPoints->SpinBox_DY->SetValue(myNbTimesU);
 
   GroupDimensions->SpinBox_DX1->RangeStepAndValidator(COORD_MIN, COORD_MAX, step, 3);
-  GroupDimensions->SpinBox_DY1->RangeStepAndValidator(1.0, COORD_MAX, SpecificStep, 3);
+  GroupDimensions->SpinBox_DY1->RangeStepAndValidator(1.0, MAX_NUMBER, SpecificStep, 3);
   GroupDimensions->SpinBox_DX2->RangeStepAndValidator(COORD_MIN, COORD_MAX, step, 3);
-  GroupDimensions->SpinBox_DY2->RangeStepAndValidator(1.0, COORD_MAX, SpecificStep, 3);
+  GroupDimensions->SpinBox_DY2->RangeStepAndValidator(1.0, MAX_NUMBER, SpecificStep, 3);
   GroupDimensions->SpinBox_DX1->SetValue(myStepU);
   GroupDimensions->SpinBox_DY1->SetValue(myNbTimesU);
   GroupDimensions->SpinBox_DX2->SetValue(myStepV);