- /* init variables */
- myConstructorId = 0;
- myEditCurrentArgument = GroupPoints->LineEdit1;
-
- myStep1 = 50.0;
- myStep2 = 50.0;
- myNbTimes1 = 2;
- myNbTimes2 = 2;
- myOkBase = myOkDir1 = myOkDir2 = false;
-
- myEdgeFilter = new GEOM_ShapeTypeFilter(TopAbs_EDGE, myGeom);
-
- /* Get setting of step value from file configuration */
- QString St = QAD_CONFIG->getSetting("Geometry:SettingsGeomStep");
- step = St.toDouble();
-
- 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(myStep1);
- GroupPoints->SpinBox_DY->SetValue(myNbTimes1);
-
- 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(myStep1);
- GroupDimensions->SpinBox_DY1->SetValue(myNbTimes1);
- GroupDimensions->SpinBox_DX2->SetValue(myStep2);
- GroupDimensions->SpinBox_DY2->SetValue(myNbTimes2);
-
- /* 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()));
+ // Get setting of step value from file configuration
+ SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
+ 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()));