From 9f25e3ba47086bde1c824f768751945c3ae5863e Mon Sep 17 00:00:00 2001 From: dmv Date: Fri, 26 Dec 2008 11:24:41 +0000 Subject: [PATCH] IPAL20689 Problem with the Mutli-Transformation dialog --- src/BlocksGUI/BlocksGUI_TrsfDlg.cxx | 2 +- .../TransformationGUI_MultiRotationDlg.cxx | 6 +++--- .../TransformationGUI_MultiTranslationDlg.cxx | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/BlocksGUI/BlocksGUI_TrsfDlg.cxx b/src/BlocksGUI/BlocksGUI_TrsfDlg.cxx index dab52d971..2796b5233 100644 --- a/src/BlocksGUI/BlocksGUI_TrsfDlg.cxx +++ b/src/BlocksGUI/BlocksGUI_TrsfDlg.cxx @@ -115,7 +115,7 @@ void BlocksGUI_TrsfDlg::Init() QMap::iterator anIter; for (anIter = mySpinBox.begin(); anIter != mySpinBox.end(); ++anIter) { //anIter.data()->RangeStepAndValidator(1.0, 999.999, SpecificStep, 3); - initSpinBox(anIter.value(), 1.0, MAX_NUMBER, SpecificStep, 3); + initSpinBox(anIter.value(), 1.0, 999, SpecificStep, 3); } // signals and slots connections diff --git a/src/TransformationGUI/TransformationGUI_MultiRotationDlg.cxx b/src/TransformationGUI/TransformationGUI_MultiRotationDlg.cxx index 62c05db8a..5bce037a9 100644 --- a/src/TransformationGUI/TransformationGUI_MultiRotationDlg.cxx +++ b/src/TransformationGUI/TransformationGUI_MultiRotationDlg.cxx @@ -127,14 +127,14 @@ void TransformationGUI_MultiRotationDlg::Init() double SpecificStep1 = 5; double SpecificStep2 = 1; // min, max, step and decimals for spin boxes & initial values - initSpinBox(GroupPoints->SpinBox_DX, 1.0, MAX_NUMBER, SpecificStep2, 10); + initSpinBox(GroupPoints->SpinBox_DX, 1.0, 999, SpecificStep2, 10); GroupPoints->SpinBox_DX->setValue(myNbTimes1); GroupPoints->SpinBox_DX->setDecimals(0); initSpinBox(GroupDimensions->SpinBox_DX1, COORD_MIN, COORD_MAX, SpecificStep1, 10); // VSR: TODO: DBL_DIGITS_DISPLAY - initSpinBox(GroupDimensions->SpinBox_DY1, 1.0, MAX_NUMBER, SpecificStep2, 10); + initSpinBox(GroupDimensions->SpinBox_DY1, 1.0, 999, SpecificStep2, 10); initSpinBox(GroupDimensions->SpinBox_DX2, COORD_MIN, COORD_MAX, step, 10); // VSR: TODO: DBL_DIGITS_DISPLAY - initSpinBox(GroupDimensions->SpinBox_DY2, 1.0, MAX_NUMBER, SpecificStep2, 10); + initSpinBox(GroupDimensions->SpinBox_DY2, 1.0, 999, SpecificStep2, 10); GroupDimensions->SpinBox_DX1->setValue(myAng); GroupDimensions->SpinBox_DY1->setValue(myNbTimes1); GroupDimensions->SpinBox_DX2->setValue(myStep); diff --git a/src/TransformationGUI/TransformationGUI_MultiTranslationDlg.cxx b/src/TransformationGUI/TransformationGUI_MultiTranslationDlg.cxx index 77d5acc36..d86cd23bd 100644 --- a/src/TransformationGUI/TransformationGUI_MultiTranslationDlg.cxx +++ b/src/TransformationGUI/TransformationGUI_MultiTranslationDlg.cxx @@ -133,15 +133,15 @@ void TransformationGUI_MultiTranslationDlg::Init() double SpecificStep = 1; // min, max, step and decimals for spin boxes & initial values initSpinBox(GroupPoints->SpinBox_DX, COORD_MIN, COORD_MAX, step, 10); // VSR: TODO: DBL_DIGITS_DISPLAY - initSpinBox(GroupPoints->SpinBox_DY, 1, MAX_NUMBER, SpecificStep, 10); + initSpinBox(GroupPoints->SpinBox_DY, 1, 999, SpecificStep, 10); GroupPoints->SpinBox_DX->setValue(myStepU); GroupPoints->SpinBox_DY->setValue(myNbTimesU); GroupPoints->SpinBox_DY->setDecimals(0); initSpinBox(GroupDimensions->SpinBox_DX1, COORD_MIN, COORD_MAX, step, 10); // VSR: TODO: DBL_DIGITS_DISPLAY - initSpinBox(GroupDimensions->SpinBox_DY1, 1, MAX_NUMBER, SpecificStep, 10); + initSpinBox(GroupDimensions->SpinBox_DY1, 1, 999, SpecificStep, 10); initSpinBox(GroupDimensions->SpinBox_DX2, COORD_MIN, COORD_MAX, step, 10); // VSR: TODO: DBL_DIGITS_DISPLAY - initSpinBox(GroupDimensions->SpinBox_DY2, 1, MAX_NUMBER, SpecificStep, 10); + initSpinBox(GroupDimensions->SpinBox_DY2, 1, 999, SpecificStep, 10); GroupDimensions->SpinBox_DX1->setValue(myStepU); GroupDimensions->SpinBox_DY1->setValue(myNbTimesU); GroupDimensions->SpinBox_DX2->setValue(myStepV); -- 2.39.2