Salome HOME
untabify
[modules/geom.git] / src / GenerationGUI / GenerationGUI_RevolDlg.cxx
index 2a5d00b43dddffff259cd1558d33d11544a9fc58..b5f35c76799aaf9cb8678ecfca184f5ff1cf8bc9 100644 (file)
@@ -138,6 +138,7 @@ void GenerationGUI_RevolDlg::Init()
   connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), this, SLOT(SetDoubleSpinBoxStep(double)));
 
   initName(tr("GEOM_REVOLUTION"));
+  resize(100,100);
 
   GroupPoints->PushButton1->click();
   SelectionIntoArgument();
@@ -344,7 +345,7 @@ void GenerationGUI_RevolDlg::ActivateThisDialog()
 {
   GEOMBase_Skeleton::ActivateThisDialog();
   connect( myGeomGUI->getApp()->selectionMgr(), SIGNAL( currentSelectionChanged() ),
-          this, SLOT( SelectionIntoArgument() ) );
+           this, SLOT( SelectionIntoArgument() ) );
 
   displayPreview();
 }
@@ -404,13 +405,13 @@ bool GenerationGUI_RevolDlg::execute (ObjectList& objects)
 {
   GEOM::GEOM_Object_var anObj;
 
+  GEOM::GEOM_I3DPrimOperations_var anOper = GEOM::GEOM_I3DPrimOperations::_narrow(getOperation());
+
   if (!myBothway) {
-    anObj = GEOM::GEOM_I3DPrimOperations::_narrow(getOperation())->
-      MakeRevolutionAxisAngle(myBase, myAxis, getAngle() * PI180);
+    anObj = anOper->MakeRevolutionAxisAngle(myBase, myAxis, getAngle() * PI180);
   }
   else {
-    anObj = GEOM::GEOM_I3DPrimOperations::_narrow(getOperation())->
-      MakeRevolutionAxisAngle2Ways(myBase, myAxis, getAngle() * PI180);
+    anObj = anOper->MakeRevolutionAxisAngle2Ways(myBase, myAxis, getAngle() * PI180);
   }
 
   if (!anObj->_is_nil())
@@ -419,7 +420,7 @@ bool GenerationGUI_RevolDlg::execute (ObjectList& objects)
     {
       QStringList aParameters;
       aParameters << GroupPoints->SpinBox_DX->text();
-      anObj->SetParameters(GeometryGUI::JoinObjectParameters(aParameters));
+      anObj->SetParameters(aParameters.join(":").toLatin1().constData());
     }
     objects.push_back(anObj._retn());
   }