From: dmv Date: Tue, 25 Nov 2008 12:32:45 +0000 (+0000) Subject: IPAL20689 Problem with the Mutli-Transformation dialogs X-Git-Tag: V5_1_0rc2~19 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=dde385d664d69c8a93b165174c78cbc0e7fb64b8;p=modules%2Fgeom.git IPAL20689 Problem with the Mutli-Transformation dialogs --- diff --git a/src/TransformationGUI/TransformationGUI_MultiRotationDlg.cxx b/src/TransformationGUI/TransformationGUI_MultiRotationDlg.cxx index 04124c3a5..9463321f9 100644 --- a/src/TransformationGUI/TransformationGUI_MultiRotationDlg.cxx +++ b/src/TransformationGUI/TransformationGUI_MultiRotationDlg.cxx @@ -129,6 +129,7 @@ void TransformationGUI_MultiRotationDlg::Init() // min, max, step and decimals for spin boxes & initial values initSpinBox(GroupPoints->SpinBox_DX, 1.0, MAX_NUMBER, 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); @@ -138,6 +139,8 @@ void TransformationGUI_MultiRotationDlg::Init() GroupDimensions->SpinBox_DY1->setValue(myNbTimes1); GroupDimensions->SpinBox_DX2->setValue(myStep); GroupDimensions->SpinBox_DY2->setValue(myNbTimes2); + GroupDimensions->SpinBox_DY1->setDecimals(0); + GroupDimensions->SpinBox_DY2->setDecimals(0); // init variables myAng = 45.0; diff --git a/src/TransformationGUI/TransformationGUI_MultiTranslationDlg.cxx b/src/TransformationGUI/TransformationGUI_MultiTranslationDlg.cxx index 7ad4a872d..65f2f6642 100644 --- a/src/TransformationGUI/TransformationGUI_MultiTranslationDlg.cxx +++ b/src/TransformationGUI/TransformationGUI_MultiTranslationDlg.cxx @@ -133,18 +133,21 @@ 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.0, MAX_NUMBER, SpecificStep, 10); + initSpinBox(GroupPoints->SpinBox_DY, 1, MAX_NUMBER, 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.0, MAX_NUMBER, SpecificStep, 10); + initSpinBox(GroupDimensions->SpinBox_DY1, 1, MAX_NUMBER, SpecificStep, 10); initSpinBox(GroupDimensions->SpinBox_DX2, COORD_MIN, COORD_MAX, step, 10); // VSR: TODO: DBL_DIGITS_DISPLAY - initSpinBox(GroupDimensions->SpinBox_DY2, 1.0, MAX_NUMBER, SpecificStep, 10); + initSpinBox(GroupDimensions->SpinBox_DY2, 1, MAX_NUMBER, SpecificStep, 10); GroupDimensions->SpinBox_DX1->setValue(myStepU); GroupDimensions->SpinBox_DY1->setValue(myNbTimesU); GroupDimensions->SpinBox_DX2->setValue(myStepV); GroupDimensions->SpinBox_DY2->setValue(myNbTimesV); + GroupDimensions->SpinBox_DY1->setDecimals(0); + GroupDimensions->SpinBox_DY2->setDecimals(0); // init variables myStepU = myStepV = 50.0;