/***************************************************************/
// Initialisations
- XSpin->RangeStepAndValidator(-999999.999, +999999.999, 10.0, 3);
- YSpin->RangeStepAndValidator(-999999.999, +999999.999, 10.0, 3);
- ZSpin->RangeStepAndValidator(-999999.999, +999999.999, 10.0, 3);
- AngleSpin->RangeStepAndValidator(-999999.999, +999999.999, 5.0, 3);
+ XSpin->RangeStepAndValidator(COORD_MIN, COORD_MAX, 10.0, 3);
+ YSpin->RangeStepAndValidator(COORD_MIN, COORD_MAX, 10.0, 3);
+ ZSpin->RangeStepAndValidator(COORD_MIN, COORD_MAX, 10.0, 3);
+ AngleSpin->RangeStepAndValidator(-180.0, 180.0, 5.0, 3);
mySelector = (SMESH::GetViewWindow( mySMESHGUI ))->GetSelector();
SMESHGUI_ExtrusionDlgLayout->addWidget(GroupArguments, 1, 0);
/* Initialisations */
- SpinBox_Dx->RangeStepAndValidator(-999999.999, +999999.999, 10.0, 3);
- SpinBox_Dy->RangeStepAndValidator(-999999.999, +999999.999, 10.0, 3);
- SpinBox_Dz->RangeStepAndValidator(-999999.999, +999999.999, 10.0, 3);
+ SpinBox_Dx->RangeStepAndValidator(COORD_MIN, COORD_MAX, 10.0, 3);
+ SpinBox_Dy->RangeStepAndValidator(COORD_MIN, COORD_MAX, 10.0, 3);
+ SpinBox_Dz->RangeStepAndValidator(COORD_MIN, COORD_MAX, 10.0, 3);
QIntValidator* anIntValidator = new QIntValidator(SpinBox_NbSteps);
SpinBox_NbSteps->setValidator(anIntValidator);
SMESHGUI_MergeNodesDlgLayout->addWidget(GroupEdit, 3, 0);
/* Initialisations */
- SpinBoxTolerance->RangeStepAndValidator(0.0, 999999.999, 0.1, 3);
+ SpinBoxTolerance->RangeStepAndValidator(0.0, COORD_MAX, 0.1, 3);
SpinBoxTolerance->SetValue(1e-05);
RadioButton1->setChecked(TRUE);
new QLabel(tr("SMESH_Z"), aCoordGrp);
myZ = new SMESHGUI_SpinBox(aCoordGrp);
- myX->RangeStepAndValidator(-999999.999, +999999.999, 25.0, 3);
- myY->RangeStepAndValidator(-999999.999, +999999.999, 25.0, 3);
- myZ->RangeStepAndValidator(-999999.999, +999999.999, 25.0, 3);
+ myX->RangeStepAndValidator(COORD_MIN, COORD_MAX, 25.0, 3);
+ myY->RangeStepAndValidator(COORD_MIN, COORD_MAX, 25.0, 3);
+ myZ->RangeStepAndValidator(COORD_MIN, COORD_MAX, 25.0, 3);
QVBoxLayout* aLay = new QVBoxLayout(aFrame);
aLay->addWidget(aPixGrp);
step = 25.0;
/* min, max, step and decimals for spin boxes */
- SpinBox_X->RangeStepAndValidator(-999.999, +999.999, step, 3);
- SpinBox_Y->RangeStepAndValidator(-999.999, +999.999, step, 3);
- SpinBox_Z->RangeStepAndValidator(-999.999, +999.999, step, 3);
+ SpinBox_X->RangeStepAndValidator(COORD_MIN, COORD_MAX, step, 3);
+ SpinBox_Y->RangeStepAndValidator(COORD_MIN, COORD_MAX, step, 3);
+ SpinBox_Z->RangeStepAndValidator(COORD_MIN, COORD_MAX, step, 3);
SpinBox_X->SetValue(0.0);
SpinBox_Y->SetValue(0.0);
SpinBox_Z->SetValue(0.0);
SMESHGUI_RevolutionDlgLayout->addWidget(GroupArguments, 1, 0);
/* Initialisations */
- SpinBox_X->RangeStepAndValidator(-999999.999, +999999.999, 10.0, 3);
- SpinBox_Y->RangeStepAndValidator(-999999.999, +999999.999, 10.0, 3);
- SpinBox_Z->RangeStepAndValidator(-999999.999, +999999.999, 10.0, 3);
- SpinBox_DX->RangeStepAndValidator(-999999.999, +999999.999, 10.0, 3);
- SpinBox_DY->RangeStepAndValidator(-999999.999, +999999.999, 10.0, 3);
- SpinBox_DZ->RangeStepAndValidator(-999999.999, +999999.999, 10.0, 3);
+ SpinBox_X->RangeStepAndValidator(COORD_MIN, COORD_MAX, 10.0, 3);
+ SpinBox_Y->RangeStepAndValidator(COORD_MIN, COORD_MAX, 10.0, 3);
+ SpinBox_Z->RangeStepAndValidator(COORD_MIN, COORD_MAX, 10.0, 3);
+ SpinBox_DX->RangeStepAndValidator(COORD_MIN, COORD_MAX, 10.0, 3);
+ SpinBox_DY->RangeStepAndValidator(COORD_MIN, COORD_MAX, 10.0, 3);
+ SpinBox_DZ->RangeStepAndValidator(COORD_MIN, COORD_MAX, 10.0, 3);
- SpinBox_Angle->RangeStepAndValidator(-999999.999, +999999.999, 5.0, 3);
+ SpinBox_Angle->RangeStepAndValidator(COORD_MIN, COORD_MAX, 5.0, 3);
QIntValidator* anIntValidator = new QIntValidator(SpinBox_NbSteps);
SpinBox_NbSteps->setValidator(anIntValidator);
SpinBox_NbSteps->setRange(1, 999999);
- SpinBox_Tolerance->RangeStepAndValidator(0.0, +999999.999, 0.1, 6);
+ SpinBox_Tolerance->RangeStepAndValidator(0.0, COORD_MAX, 0.1, 6);
GroupArguments->show();
RadioButton1->setChecked(TRUE);
SMESHGUI_RotationDlgLayout->addWidget(GroupArguments, 1, 0);
/* Initialisations */
- SpinBox_X->RangeStepAndValidator(-999999.999, +999999.999, 10.0, 3);
- SpinBox_Y->RangeStepAndValidator(-999999.999, +999999.999, 10.0, 3);
- SpinBox_Z->RangeStepAndValidator(-999999.999, +999999.999, 10.0, 3);
- SpinBox_DX->RangeStepAndValidator(-999999.999, +999999.999, 10.0, 3);
- SpinBox_DY->RangeStepAndValidator(-999999.999, +999999.999, 10.0, 3);
- SpinBox_DZ->RangeStepAndValidator(-999999.999, +999999.999, 10.0, 3);
-
- SpinBox_Angle->RangeStepAndValidator(-999999.999, +999999.999, 5.0, 3);
+ SpinBox_X->RangeStepAndValidator(COORD_MIN, COORD_MAX, 10.0, 3);
+ SpinBox_Y->RangeStepAndValidator(COORD_MIN, COORD_MAX, 10.0, 3);
+ SpinBox_Z->RangeStepAndValidator(COORD_MIN, COORD_MAX, 10.0, 3);
+ SpinBox_DX->RangeStepAndValidator(COORD_MIN, COORD_MAX, 10.0, 3);
+ SpinBox_DY->RangeStepAndValidator(COORD_MIN, COORD_MAX, 10.0, 3);
+ SpinBox_DZ->RangeStepAndValidator(COORD_MIN, COORD_MAX, 10.0, 3);
+
+ SpinBox_Angle->RangeStepAndValidator(-360.0, +360.0, 5.0, 3);
GroupArguments->show();
myConstructorId = 0;
#include <QtxDblSpinBox.h>
+// like in GEOM_SRC/src/DlgRef/DlgRef_SpinBox.h
+#define COORD_MIN -1e+15
+#define COORD_MAX +1e+15
+
//=================================================================================
// class : SMESHGUI_SpinBox
// purpose : Derivated from QtxDblSpinBox class
SMESHGUI_SymmetryDlgLayout->addWidget(GroupArguments, 1, 0);
/* Initialisations */
- SpinBox_X->RangeStepAndValidator(-999999.999, +999999.999, 10.0, 3);
- SpinBox_Y->RangeStepAndValidator(-999999.999, +999999.999, 10.0, 3);
- SpinBox_Z->RangeStepAndValidator(-999999.999, +999999.999, 10.0, 3);
- SpinBox_DX->RangeStepAndValidator(-999999.999, +999999.999, 10.0, 3);
- SpinBox_DY->RangeStepAndValidator(-999999.999, +999999.999, 10.0, 3);
- SpinBox_DZ->RangeStepAndValidator(-999999.999, +999999.999, 10.0, 3);
+ SpinBox_X->RangeStepAndValidator(COORD_MIN, COORD_MAX, 10.0, 3);
+ SpinBox_Y->RangeStepAndValidator(COORD_MIN, COORD_MAX, 10.0, 3);
+ SpinBox_Z->RangeStepAndValidator(COORD_MIN, COORD_MAX, 10.0, 3);
+ SpinBox_DX->RangeStepAndValidator(COORD_MIN, COORD_MAX, 10.0, 3);
+ SpinBox_DY->RangeStepAndValidator(COORD_MIN, COORD_MAX, 10.0, 3);
+ SpinBox_DZ->RangeStepAndValidator(COORD_MIN, COORD_MAX, 10.0, 3);
GroupArguments->show();
RadioButton1->setChecked(TRUE);
SMESHGUI_TranslationDlgLayout->addWidget(GroupArguments, 1, 0);
/* Initialisations */
- SpinBox1_1->RangeStepAndValidator(-999999.999, +999999.999, 10.0, 3);
- SpinBox1_2->RangeStepAndValidator(-999999.999, +999999.999, 10.0, 3);
- SpinBox1_3->RangeStepAndValidator(-999999.999, +999999.999, 10.0, 3);
- SpinBox2_1->RangeStepAndValidator(-999999.999, +999999.999, 10.0, 3);
- SpinBox2_2->RangeStepAndValidator(-999999.999, +999999.999, 10.0, 3);
- SpinBox2_3->RangeStepAndValidator(-999999.999, +999999.999, 10.0, 3);
+ SpinBox1_1->RangeStepAndValidator(COORD_MIN, COORD_MAX, 10.0, 3);
+ SpinBox1_2->RangeStepAndValidator(COORD_MIN, COORD_MAX, 10.0, 3);
+ SpinBox1_3->RangeStepAndValidator(COORD_MIN, COORD_MAX, 10.0, 3);
+ SpinBox2_1->RangeStepAndValidator(COORD_MIN, COORD_MAX, 10.0, 3);
+ SpinBox2_2->RangeStepAndValidator(COORD_MIN, COORD_MAX, 10.0, 3);
+ SpinBox2_3->RangeStepAndValidator(COORD_MIN, COORD_MAX, 10.0, 3);
GroupArguments->show();
RadioButton1->setChecked(TRUE);