Salome HOME
Preparation of intermediate revision
[modules/geom.git] / src / GenerationGUI / GenerationGUI_FillingDlg.cxx
index 4f46e1962f51a7749f7c22d20d1945d8fdd0bc80..69f9d09e8580955c3a309a62a6f6e9f93e7fc8f1 100644 (file)
@@ -32,6 +32,7 @@
 #include <SUIT_ResourceMgr.h>
 #include <SUIT_Session.h>
 #include <SalomeApp_Application.h>
+#include <SalomeApp_Notebook.h>
 #include <LightApp_SelectionMgr.h>
 
 #include <TopoDS_Iterator.hxx>
@@ -149,6 +150,7 @@ void GenerationGUI_FillingDlg::Init()
           SIGNAL( currentSelectionChanged() ), this, SLOT( SelectionIntoArgument() ) );
 
   initName( tr( "GEOM_FILLING" ) );
+  resize(100,100);
 }
 
 //=================================================================================
@@ -354,22 +356,18 @@ bool GenerationGUI_FillingDlg::isValid( QString& msg )
 //=================================================================================
 bool GenerationGUI_FillingDlg::execute( ObjectList& objects )
 {
-  GEOM::GEOM_Object_var anObj;
-
-  anObj = GEOM::GEOM_I3DPrimOperations::_narrow(getOperation() )->MakeFilling(
-    myCompound, myMinDeg, myMaxDeg, myTol2D, myTol3D, myNbIter, myIsApprox );
+  GEOM::GEOM_I3DPrimOperations_var anOper = GEOM::GEOM_I3DPrimOperations::_narrow(getOperation());
+  GEOM::GEOM_Object_var anObj = anOper->MakeFilling( myCompound, myMinDeg, myMaxDeg, 
+                                                    myTol2D, myTol3D, myNbIter, myIsApprox );
   if ( !anObj->_is_nil() )
   {
     if ( !IsPreview() )
-    {
-      QStringList aParameters;
-      aParameters << GroupPoints->SpinBox1->text();
-      aParameters << GroupPoints->SpinBox2->text();
-      aParameters << GroupPoints->SpinBox3->text();
-      aParameters << GroupPoints->SpinBox4->text();
-      aParameters << GroupPoints->SpinBox5->text();
-      anObj->SetParameters(GeometryGUI::JoinObjectParameters(aParameters));
-    }
+      myNoteBook->setParameters(anObj, 5,
+                                GroupPoints->SpinBox1,
+                                GroupPoints->SpinBox2,
+                                GroupPoints->SpinBox3,
+                                GroupPoints->SpinBox4,
+                                GroupPoints->SpinBox5);
     objects.push_back( anObj._retn() );
   }