- double step = resMgr->doubleValue( "Geometry", "SettingsGeomStep", 100);
-
- double SpecificStep = 1;
- /* min, max, step and decimals for spin boxes & initial values */
- GroupPoints->SpinBox_DX->RangeStepAndValidator(-999.999, 999.999, step, 3);
- GroupPoints->SpinBox_DY->RangeStepAndValidator(1.0, 999.999, SpecificStep, 3);
- GroupPoints->SpinBox_DX->SetValue(myStepU);
- GroupPoints->SpinBox_DY->SetValue(myNbTimesU);
-
- GroupDimensions->SpinBox_DX1->RangeStepAndValidator(-999.999, 999.999, step, 3);
- GroupDimensions->SpinBox_DY1->RangeStepAndValidator(1.0, 999.999, SpecificStep, 3);
- GroupDimensions->SpinBox_DX2->RangeStepAndValidator(-999.999, 999.999, step, 3);
- GroupDimensions->SpinBox_DY2->RangeStepAndValidator(1.0, 999.999, SpecificStep, 3);
- GroupDimensions->SpinBox_DX1->SetValue(myStepU);
- GroupDimensions->SpinBox_DY1->SetValue(myNbTimesU);
- GroupDimensions->SpinBox_DX2->SetValue(myStepV);
- GroupDimensions->SpinBox_DY2->SetValue(myNbTimesV);
-
- /* signals and slots connections */
- connect(buttonOk, SIGNAL(clicked()), this, SLOT(ClickOnOk()));
- connect(buttonApply, SIGNAL(clicked()), this, SLOT(ClickOnApply()));
- connect(GroupConstructors, SIGNAL(clicked(int)), this, SLOT(ConstructorsClicked(int)));
-
- connect(GroupPoints->PushButton1, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
- connect(GroupPoints->PushButton2, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
+ double step = resMgr->doubleValue("Geometry", "SettingsGeomStep", 100);
+
+ int SpecificStep = 1;
+ // init variables
+ myStepU = myStepV = 50.0;
+ myNbTimesU = myNbTimesV = 3;
+
+ // min, max, step and decimals for spin boxes & initial values
+ initSpinBox(GroupPoints->SpinBox_DX, COORD_MIN, COORD_MAX, step, "length_precision" );
+ initSpinBox(GroupPoints->SpinBox_DY, 1, 999, SpecificStep);
+ GroupPoints->SpinBox_DX->setValue(myStepU);
+ GroupPoints->SpinBox_DY->setValue(myNbTimesU);
+
+ initSpinBox(GroupDimensions->SpinBox_DX1, COORD_MIN, COORD_MAX, step, "length_precision" );
+ initSpinBox(GroupDimensions->SpinBox_DY1, 1, 999, SpecificStep);
+ initSpinBox(GroupDimensions->SpinBox_DX2, COORD_MIN, COORD_MAX, step, "length_precision" );
+ initSpinBox(GroupDimensions->SpinBox_DY2, 1, 999, SpecificStep);
+ GroupDimensions->SpinBox_DX1->setValue(myStepU);
+ GroupDimensions->SpinBox_DY1->setValue(myNbTimesU);
+ GroupDimensions->SpinBox_DX2->setValue(myStepV);
+ GroupDimensions->SpinBox_DY2->setValue(myNbTimesV);
+
+ GroupPoints->LineEdit1->setText("");
+ GroupPoints->LineEdit2->setText("");
+
+ GroupDimensions->LineEdit1->setText("");
+ GroupDimensions->LineEdit2->setText("");
+ GroupDimensions->LineEdit3->setText("");
+
+ myBase.nullify();
+ myVectorU.nullify();
+ myVectorV.nullify();
+
+ mainFrame()->GroupBoxPublish->show();
+
+ // signals and slots connections
+ connect(buttonOk(), SIGNAL(clicked()), this, SLOT(ClickOnOk()));
+ connect(buttonApply(), SIGNAL(clicked()), this, SLOT(ClickOnApply()));
+
+ connect(this, SIGNAL(constructorsClicked(int)), this, SLOT(ConstructorsClicked(int)));
+
+ connect(GroupPoints->PushButton1, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
+ connect(GroupPoints->PushButton2, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));