- myPoint = myDir = GEOM::GEOM_Object::_nil();
-
- /* Get setting of step value from file configuration */
- SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
- double step = resMgr->doubleValue( "Geometry", "SettingsGeomStep", 100);
-
- /* min, max, step and decimals for spin boxes & initial values */
- /* First constructor : radius */
- GroupPoints->SpinBox_DX->RangeStepAndValidator(0.001, 999.999, step, 3);
- /* First constructor : algebric height */
- GroupPoints->SpinBox_DY->RangeStepAndValidator(-999.999, 999.999, step, 3);
- /* Second constructor : radius */
- GroupDimensions->SpinBox_DX->RangeStepAndValidator(0.001, 999.999, step, 3);
- /* Second constructor : algebric height */
- GroupDimensions->SpinBox_DY->RangeStepAndValidator(-999.999, 999.999, step, 3);
-
- GroupPoints->SpinBox_DX->SetValue(100.0);
- GroupPoints->SpinBox_DY->SetValue(300.0);
- GroupDimensions->SpinBox_DX->SetValue(100.0);
- GroupDimensions->SpinBox_DY->SetValue(300.0);
-
- /* 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)));
+ GroupPoints->LineEdit1->setText("");
+ GroupPoints->LineEdit2->setText("");
+ myPoint.nullify();
+ myDir.nullify();
+
+ double aRadius(100.0), aHeight(300.0);
+ GroupPoints->SpinBox_DX->setValue(aRadius);
+ GroupPoints->SpinBox_DY->setValue(aHeight);
+ GroupDimensions->SpinBox_DX->setValue(aRadius);
+ GroupDimensions->SpinBox_DY->setValue(aHeight);
+
+ // 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)));