+//=================================================================================
+// function : SetDoubleSpinBoxStep()
+// purpose : Double spin box management
+//=================================================================================
+void BasicGUI_CircleDlg::SetDoubleSpinBoxStep( double step )
+{
+ GroupPntVecR->SpinBox_DX->setSingleStep(step);
+}
+
+//=================================================================================
+// function : ConstructorsClicked()
+// purpose : Radio button management
+//=================================================================================
+void BasicGUI_CircleDlg::ConstructorsClicked( int constructorId )
+{
+ disconnect( myGeomGUI->getApp()->selectionMgr(), 0, this, 0);
+
+ myPoint.nullify();
+ myDir.nullify();
+ myPoint1.nullify();
+ myPoint2.nullify();
+ myPoint3.nullify();
+ myPoint4.nullify();
+ myPoint5.nullify();
+ myPoint6.nullify();
+
+ switch ( constructorId ) {
+ case 0:
+ {
+ Group3Pnts->hide();
+ GroupCenter2Pnts->hide();
+ GroupPntVecR->show();
+
+ myEditCurrentArgument = GroupPntVecR->LineEdit1;
+ GroupPntVecR->LineEdit1->setText( "" );
+ GroupPntVecR->LineEdit2->setText( "" );
+ GroupPntVecR->PushButton1->setDown( true );
+ GroupPntVecR->PushButton2->setDown( false );
+ GroupPntVecR->LineEdit1->setEnabled( true );
+ GroupPntVecR->LineEdit2->setEnabled( false );
+ break;
+ }
+ case 1:
+ {
+ GroupPntVecR->hide();
+ GroupCenter2Pnts->hide();
+ Group3Pnts->show();
+
+ myEditCurrentArgument = Group3Pnts->LineEdit1;
+ Group3Pnts->LineEdit1->setText( "" );
+ Group3Pnts->LineEdit2->setText( "" );
+ Group3Pnts->LineEdit3->setText( "" );
+ Group3Pnts->PushButton1->setDown( true );
+ Group3Pnts->PushButton2->setDown( false );
+ Group3Pnts->PushButton3->setDown( false );
+ Group3Pnts->LineEdit1->setEnabled( true );
+ Group3Pnts->LineEdit2->setEnabled( false );
+ Group3Pnts->LineEdit3->setEnabled( false );
+ break;
+ }
+ case 2:
+ {
+ GroupPntVecR->hide();
+ Group3Pnts->hide();
+ GroupCenter2Pnts->show();
+
+ myEditCurrentArgument = GroupCenter2Pnts->LineEdit1;
+ GroupCenter2Pnts->LineEdit1->setText( "" );
+ GroupCenter2Pnts->LineEdit2->setText( "" );
+ GroupCenter2Pnts->LineEdit3->setText( "" );
+ GroupCenter2Pnts->PushButton1->setDown( true );
+ GroupCenter2Pnts->PushButton2->setDown( false );
+ GroupCenter2Pnts->PushButton3->setDown( false );
+ GroupCenter2Pnts->LineEdit1->setEnabled( true );
+ GroupCenter2Pnts->LineEdit2->setEnabled( false );
+ GroupCenter2Pnts->LineEdit3->setEnabled( false );
+ break;
+ }
+ }
+
+ qApp->processEvents();
+ updateGeometry();
+ resize( minimumSizeHint() );
+ SelectionIntoArgument();
+
+ myEditCurrentArgument->setFocus();
+ globalSelection(); // close local contexts, if any
+ localSelection( GEOM::GEOM_Object::_nil(), TopAbs_VERTEX );
+
+ connect( myGeomGUI->getApp()->selectionMgr(), SIGNAL(currentSelectionChanged() ),
+ this, SLOT( SelectionIntoArgument() ) );
+
+ displayPreview(true);
+}