+ else // getConstructorId()==1 - extrusion using 2 points
+ {
+ if (IObjectCount() != 1) {
+ if (myEditCurrentArgument == GroupPoints2->LineEdit1)
+ myOkBase = false;
+ else if (myEditCurrentArgument == GroupPoints2->LineEdit2) {
+ myPoint1 = GEOM::GEOM_Object::_nil();
+ myOkPnt1 = false;
+ }
+ else if (myEditCurrentArgument == GroupPoints2->LineEdit3) {
+ myPoint2 = GEOM::GEOM_Object::_nil();
+ myOkPnt2 = false;
+ }
+ return;
+ }
+
+ // nbSel == 1
+ Standard_Boolean testResult = Standard_False;
+ GEOM::GEOM_Object_var aSelectedObject =
+ GEOMBase::ConvertIOinGEOMObject(firstIObject(), testResult );
+
+ if (!testResult || CORBA::is_nil( aSelectedObject ))
+ return;
+
+ if (myEditCurrentArgument == GroupPoints2->LineEdit1) {
+ myBase = aSelectedObject;
+ myOkBase = true;
+ }
+ else if (myEditCurrentArgument == GroupPoints2->LineEdit2) {
+ myPoint1 = aSelectedObject;
+ myOkPnt1 = true;
+ }
+ else if (myEditCurrentArgument == GroupPoints2->LineEdit3) {
+ myPoint2 = aSelectedObject;
+ myOkPnt2 = true;
+ }
+
+ myEditCurrentArgument->setText(GEOMBase::GetName(aSelectedObject));
+ displayPreview();
+ }
+}
+
+
+//=================================================================================
+// function : LineEditReturnPressed()
+// purpose :
+//=================================================================================
+void GenerationGUI_PrismDlg::LineEditReturnPressed()
+{
+ QLineEdit* send = (QLineEdit*)sender();
+ if (send == GroupPoints->LineEdit1 ||
+ send == GroupPoints->LineEdit2 ||
+ send == GroupPoints2->LineEdit1 ||
+ send == GroupPoints2->LineEdit2 ||
+ send == GroupPoints2->LineEdit3 )
+ {
+ myEditCurrentArgument = send;
+ GEOMBase_Skeleton::LineEditReturnPressed();