]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Preparation of intermediate revision
authorouv <ouv@opencascade.com>
Mon, 30 Nov 2009 13:22:20 +0000 (13:22 +0000)
committerouv <ouv@opencascade.com>
Mon, 30 Nov 2009 13:22:20 +0000 (13:22 +0000)
36 files changed:
src/BasicGUI/BasicGUI_CircleDlg.cxx
src/BasicGUI/BasicGUI_EllipseDlg.cxx
src/BasicGUI/BasicGUI_MarkerDlg.cxx
src/BasicGUI/BasicGUI_PlaneDlg.cxx
src/BasicGUI/BasicGUI_PointDlg.cxx
src/BasicGUI/BasicGUI_VectorDlg.cxx
src/BlocksGUI/BlocksGUI_ExplodeDlg.cxx
src/BlocksGUI/BlocksGUI_TrsfDlg.cxx
src/EntityGUI/EntityGUI_SketcherDlg.cxx
src/GEOMBase/GEOMBase_Helper.cxx
src/GEOMBase/GEOMBase_Helper.h
src/GEOMBase/GEOMBase_Skeleton.cxx
src/GEOMBase/GEOMBase_Skeleton.h
src/GenerationGUI/GenerationGUI_FillingDlg.cxx
src/GenerationGUI/GenerationGUI_PrismDlg.cxx
src/GenerationGUI/GenerationGUI_RevolDlg.cxx
src/OperationGUI/OperationGUI_ArchimedeDlg.cxx
src/OperationGUI/OperationGUI_ChamferDlg.cxx
src/OperationGUI/OperationGUI_FilletDlg.cxx
src/PrimitiveGUI/PrimitiveGUI_BoxDlg.cxx
src/PrimitiveGUI/PrimitiveGUI_ConeDlg.cxx
src/PrimitiveGUI/PrimitiveGUI_CylinderDlg.cxx
src/PrimitiveGUI/PrimitiveGUI_DiskDlg.cxx
src/PrimitiveGUI/PrimitiveGUI_FaceDlg.cxx
src/PrimitiveGUI/PrimitiveGUI_SphereDlg.cxx
src/PrimitiveGUI/PrimitiveGUI_TorusDlg.cxx
src/RepairGUI/RepairGUI_DivideEdgeDlg.cxx
src/RepairGUI/RepairGUI_GlueDlg.cxx
src/RepairGUI/RepairGUI_SewingDlg.cxx
src/RepairGUI/RepairGUI_ShapeProcessDlg.cxx
src/TransformationGUI/TransformationGUI_MultiRotationDlg.cxx
src/TransformationGUI/TransformationGUI_MultiTranslationDlg.cxx
src/TransformationGUI/TransformationGUI_OffsetDlg.cxx
src/TransformationGUI/TransformationGUI_RotationDlg.cxx
src/TransformationGUI/TransformationGUI_ScaleDlg.cxx
src/TransformationGUI/TransformationGUI_TranslationDlg.cxx

index 51e63bbe17546a448d7f9de2b28b07bad9cbacaf..67ed1d620cc8864e6780f7ecd5c37e976c1b4a47 100644 (file)
@@ -33,6 +33,7 @@
 #include <SUIT_ResourceMgr.h>
 #include <SUIT_Session.h>
 #include <SalomeApp_Application.h>
+#include <SalomeApp_Notebook.h>
 #include <LightApp_SelectionMgr.h>
 
 #include <TColStd_IndexedMapOfInteger.hxx>
@@ -648,11 +649,9 @@ bool BasicGUI_CircleDlg::execute( ObjectList& objects )
   switch ( getConstructorId() ) {
   case 0 :
     {
-      QStringList aParameters;
-      aParameters << GroupPntVecR->SpinBox_DX->text();
       anObj = anOper->MakeCirclePntVecR( myPoint, myDir, getRadius() );
       if ( !anObj->_is_nil() && !IsPreview() )
-        anObj->SetParameters(aParameters.join(":").toLatin1().constData());
+        myNoteBook->setParameters(anObj, 1, GroupPntVecR->SpinBox_DX);
       res = true;
       break;
     }
index a57188c0895382b972e79018c424ffcaf29c7a68..61340d3be7a97f0f3e8e13e5a069107c2750f256 100644 (file)
@@ -33,6 +33,7 @@
 #include <SUIT_ResourceMgr.h>
 #include <SUIT_Session.h>
 #include <SalomeApp_Application.h>
+#include <SalomeApp_Notebook.h>
 #include <LightApp_SelectionMgr.h>
 
 #include <TColStd_IndexedMapOfInteger.hxx>
@@ -455,17 +456,13 @@ bool BasicGUI_EllipseDlg::execute( ObjectList& objects )
   double aMajorR = GroupPoints->SpinBox_DX->value();
   double aMinorR = GroupPoints->SpinBox_DY->value();
 
-  QStringList aParameters;
-  aParameters<<GroupPoints->SpinBox_DX->text();
-  aParameters<<GroupPoints->SpinBox_DY->text();
-  
   GEOM::GEOM_ICurvesOperations_var anOper = GEOM::GEOM_ICurvesOperations::_narrow( getOperation() );
   GEOM::GEOM_Object_var anObj = myMajor->_is_nil() ? 
     anOper->MakeEllipse   ( myPoint, myDir, aMajorR, aMinorR )         :
     anOper->MakeEllipseVec( myPoint, myDir, aMajorR, aMinorR, myMajor );
   if ( !anObj->_is_nil() ) {
     if ( !IsPreview() )
-      anObj->SetParameters(aParameters.join(":").toLatin1().constData());
+      myNoteBook->setParameters(anObj, 2, GroupPoints->SpinBox_DX, GroupPoints->SpinBox_DY);
     objects.push_back( anObj._retn() );
   }
   return true;
index 6c1ff31b9f6c11c906b956b98d6f3f5ca5b3d1c8..e99553a5978defa1fb8cbe22dfc5107ddee726f5 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 <QLabel>
@@ -730,20 +731,18 @@ bool BasicGUI_MarkerDlg::execute( ObjectList& objects )
                                                    myData[ DX2 ]->value(),
                                                    myData[ DY2 ]->value(),
                                                    myData[ DZ2 ]->value() );
-  QStringList aParameters;
-  aParameters<<myData[X]->text();
-  aParameters<<myData[Y]->text();
-  aParameters<<myData[Z]->text();
-  aParameters<<myData[ DX1 ]->text(); 
-  aParameters<<myData[ DY1 ]->text(); 
-  aParameters<<myData[ DZ1 ]->text();
-  aParameters<<myData[ DX2 ]->text();
-  aParameters<<myData[ DY2 ]->text();
-  aParameters<<myData[ DZ2 ]->text();
-  
   if ( !anObj->_is_nil() ) {
     if ( !IsPreview() )
-      anObj->SetParameters(aParameters.join(":").toLatin1().constData());
+      myNoteBook->setParameters(anObj, 9,
+                                myData[ X ],
+                                myData[ Y ],
+                                myData[ Z ],
+                                myData[ DX1 ],
+                                myData[ DY1 ],
+                                myData[ DZ1 ],
+                                myData[ DX2 ],
+                                myData[ DY2 ],
+                                myData[ DZ2 ]);
     objects.push_back( anObj._retn() );
   }
 
index feca255ea02e20d67cdc6e884fa892d9da208510..924ad265f6fcd0ab1c826c3a6f8d7128b6203b8b 100644 (file)
@@ -33,6 +33,7 @@
 #include <SUIT_ResourceMgr.h>
 #include <SUIT_Session.h>
 #include <SalomeApp_Application.h>
+#include <SalomeApp_Notebook.h>
 #include <LightApp_SelectionMgr.h>
 
 #include <TColStd_MapOfInteger.hxx>
@@ -712,7 +713,7 @@ double BasicGUI_PlaneDlg::getSize() const
 }
 
 //=================================================================================
-// function : getSize()
+// function : getSizeAsString()
 // purpose  :
 //=================================================================================
 QString BasicGUI_PlaneDlg::getSizeAsString() const
@@ -722,6 +723,7 @@ QString BasicGUI_PlaneDlg::getSizeAsString() const
   case 1 : return Group3Pnts->SpinBox_DX->text();
   case 2 : return GroupFace->SpinBox_DX->text();
   case 3 : return Group2Vec->SpinBox_DX->text();
+  case 4 : return GroupLCS->SpinBox_DX->text();
   }
   return QString();
 }
@@ -815,7 +817,7 @@ bool BasicGUI_PlaneDlg::execute( ObjectList& objects )
   
   if ( !anObj->_is_nil() ) {
     if ( !IsPreview() )
-      anObj->SetParameters(getSizeAsString().toLatin1().constData());
+      myNoteBook->setParameters(anObj, QStringList(getSizeAsString()));
     objects.push_back( anObj._retn() );
   }
   return res;
index 972c39dfa514097e5206bc7ca82c66a0b3349f33..dfcc38456e07a1a60c8b6104993f5be8c74bf167 100644 (file)
@@ -28,6 +28,7 @@
 #include <SUIT_ResourceMgr.h>
 #include <SUIT_Session.h>
 #include <SalomeApp_Application.h>
+#include <SalomeApp_Notebook.h>
 #include <LightApp_SelectionMgr.h>
 
 #include <GeometryGUI.h>
@@ -868,11 +869,11 @@ bool BasicGUI_PointDlg::execute( ObjectList& objects )
   }
   
   const int id = getConstructorId();
-  if(!anObj->_is_nil() && !IsPreview() && (id ==  GEOM_POINT_XYZ || 
+  if(!anObj->_is_nil() && !IsPreview() && (id == GEOM_POINT_XYZ || 
                                           id == GEOM_POINT_REF ||
                                           id == GEOM_POINT_EDGE ||
                                           id == GEOM_POINT_SURF) ) {
-      anObj->SetParameters(aParameters.join(":").toLatin1().constData());
+    myNoteBook->setParameters(anObj, aParameters);
   }
   
 
index 829f636da0249ef9e22dbc9eb8b9a90992ab9cf2..612557ff2ab22d26c5852248f64ab9dc3966125b 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_Shape.hxx>
@@ -491,14 +492,13 @@ bool BasicGUI_VectorDlg::execute( ObjectList& objects )
       double dy = GroupDimensions->SpinBox_DY->value();
       double dz = GroupDimensions->SpinBox_DZ->value();
       
-      QStringList aParameters;
-      aParameters << GroupDimensions->SpinBox_DX->text();
-      aParameters << GroupDimensions->SpinBox_DY->text();
-      aParameters << GroupDimensions->SpinBox_DZ->text();
       anObj = anOper->MakeVectorDXDYDZ( dx, dy, dz );
 
       if ( !anObj->_is_nil() && !IsPreview() )
-        anObj->SetParameters(aParameters.join(":").toLatin1().constData());
+        myNoteBook->setParameters(anObj, 3,
+                                  GroupDimensions->SpinBox_DX,
+                                  GroupDimensions->SpinBox_DY,
+                                  GroupDimensions->SpinBox_DZ);
       
       res = true;
       break;
index 6db2e767ac0341c42b0abd3ca437c5128bf343cf..3476008491f7ceeb3e7c5eb7852f50900b6ed29d 100644 (file)
@@ -36,6 +36,7 @@
 #include <SUIT_ViewManager.h>
 #include <SUIT_MessageBox.h>
 #include <SalomeApp_Application.h>
+#include <SalomeApp_Notebook.h>
 #include <LightApp_SelectionMgr.h>
 #include <OCCViewer_ViewModel.h>
 #include <SALOME_ListIteratorOfListIO.hxx>
@@ -426,10 +427,6 @@ bool BlocksGUI_ExplodeDlg::execute( ObjectList& objects )
     return objects.size() > 0;
   }
 
-  QStringList aParameters;
-  aParameters << myGrp1->SpinBox1->text();
-  aParameters << myGrp1->SpinBox2->text();
-
   // Throw away sub-shapes not selected by user if not in preview mode
   // and manual selection is active
   if ( !isAllSubShapes() ) {
@@ -453,7 +450,7 @@ bool BlocksGUI_ExplodeDlg::execute( ObjectList& objects )
       if ( selected.contains( QString( objStr.in() ) ) )
       {
        if ( !IsPreview() )
-          (*anIter)->SetParameters(aParameters.join(":").toLatin1().constData());
+          myNoteBook->setParameters((*anIter), 2, myGrp1->SpinBox1, myGrp1->SpinBox2);
         objects.push_back( *anIter );
       }
       else
@@ -473,7 +470,7 @@ bool BlocksGUI_ExplodeDlg::execute( ObjectList& objects )
     {
       GEOM::GEOM_Object_var anObj = GEOM::GEOM_Object::_duplicate( aList[i] );
       if ( !IsPreview() )
-        anObj->SetParameters(aParameters.join(":").toLatin1().constData());
+        myNoteBook->setParameters(anObj, 2, myGrp1->SpinBox1, myGrp1->SpinBox2);
       objects.push_back( anObj._retn() );
     }
   }
index b5d681c4ed492e842b34d92f37e392eb71fcdd6c..cf6c2afefcfa92c6416b09471937c59299fb6e4e 100644 (file)
@@ -35,6 +35,7 @@
 #include <SUIT_ViewWindow.h>
 #include <SUIT_ViewManager.h>
 #include <SalomeApp_Application.h>
+#include <SalomeApp_Notebook.h>
 #include <LightApp_SelectionMgr.h>
 #include <OCCViewer_ViewModel.h>
 
@@ -584,12 +585,7 @@ bool BlocksGUI_TrsfDlg::execute (ObjectList& objects)
                                              myFaces[Face1], myFaces[Face2],
                                              mySpinBox[SpinBox1]->value());
     if (!anObj->_is_nil() && !IsPreview())
-    {
-      QStringList aParameters;
-      aParameters << "" << "";
-      aParameters << mySpinBox[SpinBox1]->text();
-      anObj->SetParameters(aParameters.join(":").toLatin1().constData());
-    }
+      myNoteBook->setParameters(anObj, 1, mySpinBox[SpinBox1]);
     res = true;
     break;
   case 1:
@@ -599,14 +595,7 @@ bool BlocksGUI_TrsfDlg::execute (ObjectList& objects)
                                               myFaces[Face1V], myFaces[Face2V],
                                               mySpinBox[SpinBox2V]->value());
     if (!anObj->_is_nil() && !IsPreview())
-    {
-      QStringList aParameters;
-      aParameters << "" << "";
-      aParameters << mySpinBox[SpinBox2U]->text();
-      aParameters << "" << "";
-      aParameters << mySpinBox[SpinBox2V]->text();
-      anObj->SetParameters(aParameters.join(":").toLatin1().constData());
-    }
+      myNoteBook->setParameters(anObj, 2, mySpinBox[SpinBox2U], mySpinBox[SpinBox2V]);
     res = true;
     break;
   default:
index 0ffb8134427b6f1da680612fd4b2b76b9f2b539e..b645a08c4ce18c2b641e5d5bd0c01ea05c1e7bcf 100644 (file)
@@ -38,6 +38,7 @@
 #include <SUIT_MessageBox.h>
 #include <SUIT_ResourceMgr.h>
 #include <SalomeApp_Application.h>
+#include <SalomeApp_Notebook.h>
 #include <LightApp_Application.h>
 #include <LightApp_SelectionMgr.h>
 
@@ -1489,7 +1490,7 @@ bool EntityGUI_SketcherDlg::execute( ObjectList& objects )
     if( !IsPreview() ) {
       QStringList aCurrentParameters = myParameters;
       aCurrentParameters << aParameters;
-      anObj->SetParameters(aCurrentParameters.join(":").toLatin1().constData());
+      myNoteBook->setParameters(anObj, aCurrentParameters);
     }
 
     objects.push_back( anObj._retn() );
index 926868a41dbb4a167c3e44a6b04ecbfba4eb7b26..ed25af099d54cdb3d475fc7a742a41f126a11c36 100755 (executable)
@@ -40,6 +40,7 @@
 #include <SalomeApp_Module.h>
 #include <SalomeApp_Application.h>
 #include <SalomeApp_Study.h>
+#include <SalomeApp_Notebook.h>
 #include <LightApp_SelectionMgr.h>
 #include <LightApp_DataOwner.h>
 #include <SalomeApp_Tools.h>
@@ -84,8 +85,11 @@ GEOM::GEOM_Gen_ptr GEOMBase_Helper::getGeomEngine()
 // Purpose  :
 //================================================================
 GEOMBase_Helper::GEOMBase_Helper( SUIT_Desktop* desktop )
-  : myDesktop( desktop ), myViewWindow( 0 ), myDisplayer( 0 ), myCommand( 0 ), isPreview( false )
+  : myDesktop( desktop ), myViewWindow( 0 ), myDisplayer( 0 ), myCommand( 0 ), myNoteBook( 0 ), isPreview( false )
 {
+  if( SalomeApp_Application* app = (SalomeApp_Application*)( SUIT_Session::session()->activeApplication() ) )
+    if( SalomeApp_Study* appStudy = dynamic_cast<SalomeApp_Study*>( app->activeStudy() ) )
+      myNoteBook = new SalomeApp_Notebook( appStudy );
 }
 
 //================================================================
@@ -112,6 +116,12 @@ GEOMBase_Helper::~GEOMBase_Helper()
     delete myDisplayer;
   if ( !CORBA::is_nil( myOperation ) )
     myOperation->Destroy();
+
+  if( myNoteBook )
+  {
+    delete myNoteBook;
+    myNoteBook = 0;
+  }
 }
 
 //================================================================
index d8bc391d4e2a2861f4a9f43c618a74b712aeeb5c..5aa304374eab03be6cb7d5d1b05652e55976051d 100755 (executable)
@@ -40,6 +40,7 @@
 
 typedef std::list<GEOM::GEOM_Object_ptr> ObjectList;
 
+class SalomeApp_Notebook;
 class SalomeApp_Study;
 class SUIT_Desktop;
 class SUIT_ViewWindow;
@@ -174,6 +175,10 @@ protected:
   GEOM_Displayer*             getDisplayer();
   SUIT_Desktop*               getDesktop() const;
 
+protected:
+  // To do: make this field private and add method getNoteBook()
+  SalomeApp_Notebook*         myNoteBook;
+
 private:
   char* getEntry              ( GEOM::GEOM_Object_ptr ) const;
   void                        clearShapeBuffer( GEOM::GEOM_Object_ptr );
index 56768d709d266b6430bf7ef043dffb4c0602ebbc..731a67ca078b145adb2f9c82f585edc25bd5658b 100644 (file)
@@ -31,7 +31,6 @@
 
 #include <SalomeApp_Application.h>
 #include <SalomeApp_DoubleSpinBox.h>
-#include <SalomeApp_Notebook.h>
 #include <SalomeApp_Study.h>
 #include <LightApp_Application.h>
 #include <LightApp_SelectionMgr.h>
@@ -56,7 +55,6 @@ GEOMBase_Skeleton::GEOMBase_Skeleton( GeometryGUI* theGeometryGUI, QWidget* pare
   : QDialog( parent, fl ), 
     GEOMBase_Helper( dynamic_cast<SUIT_Desktop*>( parent ) ),
     myGeomGUI( theGeometryGUI ),
-    myNoteBook( 0 ),
     myRBGroup( 0 )
 {
   setAttribute( Qt::WA_DeleteOnClose );
@@ -99,12 +97,6 @@ GEOMBase_Skeleton::~GEOMBase_Skeleton()
 {
   if ( myGeomGUI )
     myGeomGUI->SetActiveDialogBox( 0 );
-
-  if( myNoteBook )
-  {
-    delete myNoteBook;
-    myNoteBook = 0;
-  }
 }
 
 //=================================================================================
@@ -117,10 +109,6 @@ void GEOMBase_Skeleton::Init()
   if ( !myGeomGUI && app )
     myGeomGUI = dynamic_cast<GeometryGUI*>( app->module( "Geometry" ) );
 
-  if ( !myNoteBook && app )
-    if( SalomeApp_Study* appStudy = dynamic_cast<SalomeApp_Study*>( app->activeStudy() ) )
-      myNoteBook = new SalomeApp_Notebook( appStudy );
-
   /* init variables */
   if ( myGeomGUI )
     myGeomGUI->SetActiveDialogBox( this );
index e91e58379961b606fbb1721787b5e9e5fdd96ce0..1d267ffc243bd8ee20bf3f8a0a78f897221b65cc 100644 (file)
@@ -32,7 +32,6 @@
 #include <QDialog>
 
 class SalomeApp_DoubleSpinBox;
-class SalomeApp_Notebook;
 class GeometryGUI;
 class DlgRef_Skeleton;
 class QSpinBox;
@@ -103,8 +102,6 @@ protected:
     QButtonGroup*       myRBGroup;             //!< radio button group
     DlgRef_Skeleton*    myMainFrame;           //!< dialog box's mainframe widgetx
 
-    SalomeApp_Notebook* myNoteBook;
-
 protected slots:
     virtual void        ClickOnCancel();
     void                LineEditReturnPressed();
index fa200559a791cc4be339e477b96403b8f869d2d5..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>
@@ -361,15 +362,12 @@ bool GenerationGUI_FillingDlg::execute( ObjectList& objects )
   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(aParameters.join(":").toLatin1().constData());
-    }
+      myNoteBook->setParameters(anObj, 5,
+                                GroupPoints->SpinBox1,
+                                GroupPoints->SpinBox2,
+                                GroupPoints->SpinBox3,
+                                GroupPoints->SpinBox4,
+                                GroupPoints->SpinBox5);
     objects.push_back( anObj._retn() );
   }
 
index b540d1979ca8e6e65190afba8848509cff6d6feb..f8f4b677de8846d39c5967f29002ba22509ead3a 100644 (file)
@@ -32,6 +32,7 @@
 #include <SUIT_Session.h>
 #include <SUIT_ResourceMgr.h>
 #include <SalomeApp_Application.h>
+#include <SalomeApp_Notebook.h>
 #include <LightApp_SelectionMgr.h>
 
 // OCCT Includes
@@ -650,7 +651,6 @@ bool GenerationGUI_PrismDlg::isValid (QString& msg)
 //=================================================================================
 bool GenerationGUI_PrismDlg::execute (ObjectList& objects)
 {
-  QStringList aParameters;
   GEOM::GEOM_Object_var anObj;
 
   GEOM::GEOM_I3DPrimOperations_var anOper = GEOM::GEOM_I3DPrimOperations::_narrow(getOperation());
@@ -665,10 +665,7 @@ bool GenerationGUI_PrismDlg::execute (ObjectList& objects)
     }
 
     if (!anObj->_is_nil() && !IsPreview())
-    {
-      aParameters << GroupPoints->SpinBox_DX->text();
-      anObj->SetParameters(aParameters.join(":").toLatin1().constData());
-    }
+      myNoteBook->setParameters(anObj, 1, GroupPoints->SpinBox_DX );
 
     break;
   case 1:
@@ -692,12 +689,10 @@ bool GenerationGUI_PrismDlg::execute (ObjectList& objects)
     }
 
     if (!anObj->_is_nil() && !IsPreview())
-    {
-      aParameters << GroupPoints3->SpinBox_DX->text();
-      aParameters << GroupPoints3->SpinBox_DY->text();
-      aParameters << GroupPoints3->SpinBox_DZ->text();
-      anObj->SetParameters(aParameters.join(":").toLatin1().constData());
-    }
+      myNoteBook->setParameters(anObj, 3,
+                                GroupPoints3->SpinBox_DX,
+                                GroupPoints3->SpinBox_DY,
+                                GroupPoints3->SpinBox_DZ);
 
     break;
   }
index 0004ec356cb288500efb1c4e5bcbb2f1e13eb968..57057dd490296024fb61ea0a9d62e6d040e04289 100644 (file)
@@ -32,6 +32,7 @@
 #include <SUIT_Session.h>
 #include <SUIT_ResourceMgr.h>
 #include <SalomeApp_Application.h>
+#include <SalomeApp_Notebook.h>
 #include <LightApp_SelectionMgr.h>
 
 #include <TopoDS_Shape.hxx>
@@ -417,11 +418,7 @@ bool GenerationGUI_RevolDlg::execute (ObjectList& objects)
   if (!anObj->_is_nil())
   {
     if (!IsPreview())
-    {
-      QStringList aParameters;
-      aParameters << GroupPoints->SpinBox_DX->text();
-      anObj->SetParameters(aParameters.join(":").toLatin1().constData());
-    }
+      myNoteBook->setParameters(anObj, 1, GroupPoints->SpinBox_DX);
     objects.push_back(anObj._retn());
   }
 
index f1c646c576bd1029543cdf8d3b946193b99921e1..d90d8092b4e1f8e83ee9d832b2d5a253bd25256f 100644 (file)
@@ -33,6 +33,7 @@
 #include <SUIT_Session.h>
 #include <SUIT_ResourceMgr.h>
 #include <SalomeApp_Application.h>
+#include <SalomeApp_Notebook.h>
 #include <LightApp_SelectionMgr.h>
 
 //=================================================================================
@@ -274,13 +275,10 @@ bool OperationGUI_ArchimedeDlg::execute( ObjectList& objects )
   if ( !anObj->_is_nil() )
   {
     if ( !IsPreview() )
-    {
-      QStringList aParameters;
-      aParameters << GroupPoints->SpinBox_DX->text();
-      aParameters << GroupPoints->SpinBox_DY->text();
-      aParameters << GroupPoints->SpinBox_DZ->text();
-      anObj->SetParameters(aParameters.join(":").toLatin1().constData());
-    }
+      myNoteBook->setParameters(anObj, 3,
+                                GroupPoints->SpinBox_DX,
+                                GroupPoints->SpinBox_DY,
+                                GroupPoints->SpinBox_DZ);
     objects.push_back( anObj._retn() );
   }
 
index ba19442f07cef5c45bc0fd1a1ae6b67a5d51cc85..1115e6ea3cdc4f688c6a1094ff879b764822c1e6 100644 (file)
@@ -36,6 +36,7 @@
 #include <SUIT_ViewWindow.h>
 #include <SUIT_ViewManager.h>
 #include <SalomeApp_Application.h>
+#include <SalomeApp_Notebook.h>
 #include <LightApp_SelectionMgr.h>
 #include <OCCViewer_ViewModel.h>
 
@@ -898,7 +899,7 @@ bool OperationGUI_ChamferDlg::execute (ObjectList& objects)
   if (!anObj->_is_nil())
   {
     if (!IsPreview())
-      anObj->SetParameters(aParameters.join(":").toLatin1().constData());
+      myNoteBook->setParameters(anObj, aParameters);
     objects.push_back(anObj._retn());
   }
 
index e6986bf03276db0ee28619c5f6d599c607f90a48..0c8517e3889fb9a287a60f57f3fe1e5f6f3c14a1 100644 (file)
@@ -35,6 +35,7 @@
 #include <SUIT_ViewWindow.h>
 #include <SUIT_ViewManager.h>
 #include <SalomeApp_Application.h>
+#include <SalomeApp_Notebook.h>
 #include <LightApp_SelectionMgr.h>
 #include <OCCViewer_ViewModel.h>
 
@@ -687,7 +688,7 @@ bool OperationGUI_FilletDlg::execute (ObjectList& objects)
   if (!anObj->_is_nil())
   {
     if (!IsPreview())
-      anObj->SetParameters(aParameters.join(":").toLatin1().constData());
+      myNoteBook->setParameters(anObj, aParameters);
     objects.push_back(anObj._retn());
   }
 
index 00f0b3d99226aec4016864d1b39afa531c9bd530..1409fae4f221f5ee203582ba1c00e81e8abd55eb 100644 (file)
@@ -32,6 +32,7 @@
 #include <SUIT_Session.h>
 #include <SUIT_ResourceMgr.h>
 #include <SalomeApp_Application.h>
+#include <SalomeApp_Notebook.h>
 #include <LightApp_SelectionMgr.h>
 
 // OCCT Includes
@@ -467,13 +468,10 @@ bool PrimitiveGUI_BoxDlg::execute (ObjectList& objects)
 
       anObj = anOper->MakeBoxDXDYDZ(x, y, z);
       if (!anObj->_is_nil() && !IsPreview())
-      {
-       QStringList aParameters;
-       aParameters << GroupDimensions->SpinBox_DX->text();
-       aParameters << GroupDimensions->SpinBox_DY->text();
-       aParameters << GroupDimensions->SpinBox_DZ->text();
-        anObj->SetParameters(aParameters.join(":").toLatin1().constData());
-      }
+        myNoteBook->setParameters(anObj, 3,
+                                  GroupDimensions->SpinBox_DX,
+                                  GroupDimensions->SpinBox_DY,
+                                  GroupDimensions->SpinBox_DZ);
       res = true;
     }
     break;
index 91807dfc66453f6821efd9e28533aa0fc6ef7c18..1f3ad91136e4ca56d45593060e05116191677fe5 100644 (file)
@@ -32,6 +32,7 @@
 #include <SUIT_Session.h>
 #include <SUIT_ResourceMgr.h>
 #include <SalomeApp_Application.h>
+#include <SalomeApp_Notebook.h>
 #include <LightApp_SelectionMgr.h>
 
 // OCCT Includes
@@ -477,26 +478,20 @@ bool PrimitiveGUI_ConeDlg::execute (ObjectList& objects)
     if (!CORBA::is_nil(myPoint) && !CORBA::is_nil(myDir)) {
       anObj = anOper->MakeConePntVecR1R2H(myPoint, myDir, getRadius1(), getRadius2(), getHeight());
       if (!anObj->_is_nil() && !IsPreview())
-      {
-       QStringList aParameters;
-       aParameters << GroupPoints->SpinBox_DX->text();
-       aParameters << GroupPoints->SpinBox_DY->text();
-       aParameters << GroupPoints->SpinBox_DZ->text();
-        anObj->SetParameters(aParameters.join(":").toLatin1().constData());
-      }
+        myNoteBook->setParameters(anObj, 3,
+                                  GroupPoints->SpinBox_DX,
+                                  GroupPoints->SpinBox_DY,
+                                  GroupPoints->SpinBox_DZ);
       res = true;
     }
     break;
   case 1:
     anObj = anOper->MakeConeR1R2H(getRadius1(), getRadius2(), getHeight());
     if (!anObj->_is_nil() && !IsPreview())
-    {
-      QStringList aParameters;
-      aParameters << GroupDimensions->SpinBox_DX->text();
-      aParameters << GroupDimensions->SpinBox_DY->text();
-      aParameters << GroupDimensions->SpinBox_DZ->text();
-      anObj->SetParameters(aParameters.join(":").toLatin1().constData());
-    }
+      myNoteBook->setParameters(anObj, 3,
+                                GroupDimensions->SpinBox_DX,
+                                GroupDimensions->SpinBox_DY,
+                                GroupDimensions->SpinBox_DZ);
     res = true;
     break;
   }
index b7123270b51cb48907563196d9c49de315e5a6d1..4fab5163882dc2143782f48e1694812e84056f2c 100644 (file)
@@ -32,6 +32,7 @@
 #include <SUIT_Session.h>
 #include <SUIT_ResourceMgr.h>
 #include <SalomeApp_Application.h>
+#include <SalomeApp_Notebook.h>
 #include <LightApp_SelectionMgr.h>
 
 // OCCT Includes
@@ -468,24 +469,14 @@ bool PrimitiveGUI_CylinderDlg::execute (ObjectList& objects)
     if (!CORBA::is_nil(myPoint) && !CORBA::is_nil(myDir)) {
       anObj = anOper->MakeCylinderPntVecRH(myPoint, myDir, getRadius(), getHeight());
       if (!anObj->_is_nil() && !IsPreview())
-      {
-       QStringList aParameters;
-       aParameters << GroupPoints->SpinBox_DX->text();
-       aParameters << GroupPoints->SpinBox_DY->text();
-        anObj->SetParameters(aParameters.join(":").toLatin1().constData());
-      }
+        myNoteBook->setParameters(anObj, 2, GroupPoints->SpinBox_DX, GroupPoints->SpinBox_DY);
       res = true;
     }
     break;
   case 1:
     anObj = anOper->MakeCylinderRH(getRadius(), getHeight());
     if (!anObj->_is_nil() && !IsPreview())
-    {
-      QStringList aParameters;
-      aParameters << GroupDimensions->SpinBox_DX->text();
-      aParameters << GroupDimensions->SpinBox_DY->text();
-      anObj->SetParameters(aParameters.join(":").toLatin1().constData());
-    }
+      myNoteBook->setParameters(anObj, 2, GroupDimensions->SpinBox_DX, GroupDimensions->SpinBox_DY);
     res = true;
     break;
   }
index ab40eb1bdab2f5243001332f181282763a39f296..3c98df4bb87826559c251b5e96349cc4f0d314b9 100755 (executable)
@@ -32,6 +32,7 @@
 #include <SUIT_Session.h>
 #include <SUIT_ResourceMgr.h>
 #include <SalomeApp_Application.h>
+#include <SalomeApp_Notebook.h>
 #include <LightApp_SelectionMgr.h>
 
 // OCCT Includes
@@ -568,7 +569,6 @@ bool PrimitiveGUI_DiskDlg::isValid (QString& msg)
 bool PrimitiveGUI_DiskDlg::execute (ObjectList& objects)
 {
   bool res = false;
-  QStringList aParameters;
 
   GEOM::GEOM_Object_var anObj;
 
@@ -578,19 +578,13 @@ bool PrimitiveGUI_DiskDlg::execute (ObjectList& objects)
   case 0:
     anObj = anOper->MakeDiskR(getRadius(), myOrientationType);
     if (!anObj->_is_nil() && !IsPreview())
-    {
-      aParameters << GroupDimensions->SpinBox_DX->text();
-      anObj->SetParameters(aParameters.join(":").toLatin1().constData());
-    }
+      myNoteBook->setParameters(anObj, 1, GroupDimensions->SpinBox_DX);
     res = true;
     break;
   case 1:
     anObj = anOper->MakeDiskPntVecR(myPoint, myDir, getRadius());
     if (!anObj->_is_nil() && !IsPreview())
-    {
-      aParameters << GroupPntVecR->SpinBox_DX->text();
-      anObj->SetParameters(aParameters.join(":").toLatin1().constData());
-    }
+      myNoteBook->setParameters(anObj, 1, GroupPntVecR->SpinBox_DX);
     res = true;
     break;
   case 2:
index 49d47717f6865641917f6b4a69b26b01c95390bd..0ac3a49a83077ea96c22d6fe2e05ba3350eba407 100755 (executable)
@@ -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_Shape.hxx>
@@ -490,7 +491,6 @@ bool PrimitiveGUI_FaceDlg::isValid( QString& msg )
 bool PrimitiveGUI_FaceDlg::execute (ObjectList& objects)
 {
   bool res = false;
-  QStringList aParameters;
   GEOM::GEOM_Object_var anObj;
 
   GEOM::GEOM_I3DPrimOperations_var anOper = GEOM::GEOM_I3DPrimOperations::_narrow(getOperation());
@@ -500,11 +500,7 @@ bool PrimitiveGUI_FaceDlg::execute (ObjectList& objects)
     anObj = anOper->MakeFaceHW(GroupDimensions->SpinBox_DX->value(),
                               GroupDimensions->SpinBox_DY->value(), myOrientationType);
     if (!anObj->_is_nil() && !IsPreview())
-    {
-      aParameters << GroupDimensions->SpinBox_DX->text();
-      aParameters << GroupDimensions->SpinBox_DY->text();
-      anObj->SetParameters(aParameters.join(":").toLatin1().constData());
-    }
+      myNoteBook->setParameters(anObj, 2, GroupDimensions->SpinBox_DX, GroupDimensions->SpinBox_DY);
     res = true;
     break;
   case 1:
@@ -512,11 +508,7 @@ bool PrimitiveGUI_FaceDlg::execute (ObjectList& objects)
       anOper->MakeFaceObjHW(myEdge, GroupPlane->SpinBox_DX->value(), GroupPlane->SpinBox_DY->value()) : 
       anOper->MakeFaceObjHW(myFace, GroupPlane->SpinBox_DX->value(), GroupPlane->SpinBox_DY->value());
     if (!anObj->_is_nil() && !IsPreview())
-    {
-      aParameters << GroupPlane->SpinBox_DX->text();
-      aParameters << GroupPlane->SpinBox_DY->text();
-      anObj->SetParameters(aParameters.join(":").toLatin1().constData());
-    }
+      myNoteBook->setParameters(anObj, 2, GroupPlane->SpinBox_DX, GroupPlane->SpinBox_DY);
     res = true;
     break;
   }
index 70ad0500b274b2718394e47e0442fc814ce755ac..65a3d295873808e29b05bb3e116ce1eddb569e32 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_Shape.hxx>
@@ -404,11 +405,7 @@ bool PrimitiveGUI_SphereDlg::execute( ObjectList& objects )
       if ( !CORBA::is_nil( myPoint ) ) {
        anObj = anOper->MakeSpherePntR( myPoint, getRadius() );
        if (!anObj->_is_nil() && !IsPreview())
-        {
-         QStringList aParameters;
-         aParameters << GroupPoints->SpinBox_DX->text();
-          anObj->SetParameters(aParameters.join(":").toLatin1().constData());
-       }
+          myNoteBook->setParameters(anObj, 1, GroupPoints->SpinBox_DX);
        res = true;
       }
       break;
@@ -417,11 +414,7 @@ bool PrimitiveGUI_SphereDlg::execute( ObjectList& objects )
     {
       anObj = anOper->MakeSphereR( getRadius() );
       if (!anObj->_is_nil() && !IsPreview())
-      {
-       QStringList aParameters;
-       aParameters << GroupDimensions->SpinBox_DX->text();
-        anObj->SetParameters(aParameters.join(":").toLatin1().constData());
-      }
+        myNoteBook->setParameters(anObj, 1, GroupDimensions->SpinBox_DX);
       res = true;
       break;
     }
index 849e5d1a9d0e007e32c544cca508f01bce8b8259..f286e5c5f1f8e7020b504a1d57748d27f6f708ed 100644 (file)
@@ -32,6 +32,7 @@
 #include <SUIT_Session.h>
 #include <SUIT_ResourceMgr.h>
 #include <SalomeApp_Application.h>
+#include <SalomeApp_Notebook.h>
 #include <LightApp_SelectionMgr.h>
 
 // OCCT Includes
@@ -464,24 +465,14 @@ bool PrimitiveGUI_TorusDlg::execute (ObjectList& objects)
     if (!CORBA::is_nil(myPoint) && !CORBA::is_nil(myDir)) {
       anObj = anOper->MakeTorusPntVecRR(myPoint, myDir, getRadius1(), getRadius2());
       if (!anObj->_is_nil() && !IsPreview())
-      {
-       QStringList aParameters;
-       aParameters << GroupPoints->SpinBox_DX->text();
-       aParameters << GroupPoints->SpinBox_DY->text();
-        anObj->SetParameters(aParameters.join(":").toLatin1().constData());
-      }
+        myNoteBook->setParameters(anObj, 2, GroupPoints->SpinBox_DX, GroupPoints->SpinBox_DY);
       res = true;
     }
     break;
   case 1:
     anObj = anOper->MakeTorusRR(getRadius1(), getRadius2());
     if (!anObj->_is_nil() && !IsPreview())
-    {
-      QStringList aParameters;
-      aParameters << GroupDimensions->SpinBox_DX->text();
-      aParameters << GroupDimensions->SpinBox_DY->text();
-      anObj->SetParameters(aParameters.join(":").toLatin1().constData());
-    }
+      myNoteBook->setParameters(anObj, 2, GroupDimensions->SpinBox_DX, GroupDimensions->SpinBox_DY);
     res = true;
     break;
   }
index 142e5b3b774696bf5a016c8400c303c70d071e9a..d104c80b90ea5ba1d6afb155130992dac763d801 100644 (file)
@@ -31,6 +31,7 @@
 #include <QtxDoubleSpinBox.h>
 
 #include <SalomeApp_Application.h>
+#include <SalomeApp_Notebook.h>
 #include <LightApp_SelectionMgr.h>
 #include <SUIT_Session.h>
 #include <SUIT_ResourceMgr.h>
@@ -368,13 +369,7 @@ bool RepairGUI_DivideEdgeDlg::execute( ObjectList& objects )
   if ( aResult )
   {
     if ( !IsPreview() )
-    {
-      QStringList aParameters;
-      aParameters << "";
-      aParameters << myValEdt->text();
-      aParameters << "";
-      anObj->SetParameters(aParameters.join(":").toLatin1().constData());
-    }
+      myNoteBook->setParameters(anObj, 1, myValEdt);
     objects.push_back( anObj._retn() );
   }
 
index 9c6bdd49e23a025a121b2119935069ee938ef814..a9d20a4ac4246f9436fbf9a6923978bdd2428201 100644 (file)
@@ -31,6 +31,7 @@
 #include <QtxDoubleSpinBox.h>
 
 #include <SalomeApp_Application.h>
+#include <SalomeApp_Notebook.h>
 #include <LightApp_SelectionMgr.h>
 #include <SalomeApp_Study.h>
 #include <SalomeApp_Tools.h>
@@ -415,10 +416,7 @@ bool RepairGUI_GlueDlg::execute( ObjectList& objects )
       aResult = !anObj->_is_nil();
       if ( aResult && !IsPreview() )
       {
-       QStringList aParameters;
-       aParameters << myTolEdt->text();
-        anObj->SetParameters(aParameters.join(":").toLatin1().constData());
-
+        myNoteBook->setParameters(anObj, 1, myTolEdt);
         objects.push_back( anObj._retn() );
       }
       break;
@@ -468,11 +466,7 @@ bool RepairGUI_GlueDlg::execute( ObjectList& objects )
       if ( aResult )
       {
        if ( !IsPreview() )
-       {
-         QStringList aParameters;
-         aParameters << myTolEdt2->text();
-          anObj->SetParameters(aParameters.join(":").toLatin1().constData());
-       }
+          myNoteBook->setParameters(anObj, 1, myTolEdt2);
         objects.push_back( anObj._retn() );
       }
 
index 2b0d66551476afea4de14de708e5ebab8a637a80..019d77f0e9a7626eb547c755c30ecceff06a65d7 100644 (file)
@@ -31,6 +31,7 @@
 #include <QtxDoubleSpinBox.h>
 
 #include <SalomeApp_Application.h>
+#include <SalomeApp_Notebook.h>
 #include <LightApp_SelectionMgr.h>
 #include <SUIT_Session.h>
 #include <SUIT_MessageBox.h>
@@ -303,11 +304,7 @@ bool RepairGUI_SewingDlg::execute( ObjectList& objects )
     if ( aResult )
     {
       if ( !IsPreview() )
-      {
-       QStringList aParameters;
-       aParameters << myTolEdt->text();
-        anObj->SetParameters(aParameters.join(":").toLatin1().constData());
-      }
+        myNoteBook->setParameters(anObj, 1, myTolEdt);
       objects.push_back( anObj._retn() );
     }
   }
index 570df5381d9ce00ae90398e3c9889ab718644744..2dec5a40b505c7feb8015d604ffac87fbc843627 100755 (executable)
@@ -34,6 +34,7 @@
 #include <SalomeApp_Application.h>
 #include <SalomeApp_DoubleSpinBox.h>
 #include <SalomeApp_IntSpinBox.h>
+#include <SalomeApp_Notebook.h>
 #include <LightApp_SelectionMgr.h>
 #include <SUIT_Session.h>
 #include <SUIT_ResourceMgr.h>
@@ -638,7 +639,7 @@ bool RepairGUI_ShapeProcessDlg::execute( ObjectList& objects )
          aParameters << QString( aParams[i] );
 
        aParameters << getTexts( aParams );
-        anObj->SetParameters(aParameters.join(":").toLatin1().constData());
+        myNoteBook->setParameters(anObj, aParameters);
       }
       objects.push_back( anObj._retn() );
     }
index 9f4ae0478fc80cbcdbf3c21195b77cb81ea7ddcd..9ff7f31e0967598883bc8491e8cc73d15f78a395 100644 (file)
@@ -32,6 +32,7 @@
 #include <SUIT_Session.h>
 #include <SUIT_ResourceMgr.h>
 #include <SalomeApp_Application.h>
+#include <SalomeApp_Notebook.h>
 #include <LightApp_SelectionMgr.h>
 
 // OCCT Includes
@@ -592,7 +593,7 @@ bool TransformationGUI_MultiRotationDlg::execute (ObjectList& objects)
 
   if (!anObj->_is_nil()) {
     if(!IsPreview())
-      anObj->SetParameters(aParameters.join(":").toLatin1().constData());
+      myNoteBook->setParameters(anObj, aParameters);
     objects.push_back(anObj._retn());
   }
 
index 0e992818c1d095351c670755f19144593b195066..518fa32ea68fd04548bd5ee1639cfdd4d18804d6 100644 (file)
@@ -32,6 +32,7 @@
 #include <SUIT_Session.h>
 #include <SUIT_ResourceMgr.h>
 #include <SalomeApp_Application.h>
+#include <SalomeApp_Notebook.h>
 #include <LightApp_SelectionMgr.h>
 
 // OCCT Includes
@@ -702,7 +703,7 @@ bool TransformationGUI_MultiTranslationDlg::execute (ObjectList& objects)
 
   if (!anObj->_is_nil()) {
     if(!IsPreview())
-      anObj->SetParameters(aParameters.join(":").toLatin1().constData());
+      myNoteBook->setParameters(anObj, aParameters);
     objects.push_back(anObj._retn());
   }
 
index e3bacd73ee53ee9d1b6e1c33d6ab924c5be89605..5121b3bc90e682f3d172053c30a684d236ce6bb4 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>
 
 //=================================================================================
@@ -300,7 +301,7 @@ bool TransformationGUI_OffsetDlg::execute( ObjectList& objects )
       anObj = anOper->OffsetShapeCopy( myObjects[i], GetOffset() );
       if ( !anObj->_is_nil() ) {
         if(!IsPreview()) {
-          anObj->SetParameters(GroupPoints->SpinBox_DX->text().toLatin1().constData());
+          myNoteBook->setParameters(anObj, 1, GroupPoints->SpinBox_DX);
         }
        objects.push_back( anObj._retn() );
       }
index 1ff6844600cacf66b782ad79f948fa1953a3204c..c87556f4c7d3e952562f6c0376ec9c6bf055fa7c 100644 (file)
@@ -551,7 +551,7 @@ bool TransformationGUI_RotationDlg::execute (ObjectList& objects)
           anObj = anOper->RotateCopy(myObjects[i], myAxis, GetAngle() * PI180);
           if (!anObj->_is_nil()) {
             if(!IsPreview()) {
-              anObj->SetParameters(aParameters.join(":").toLatin1().constData());
+              //anObj->SetParameters(aParameters.join(":").toLatin1().constData());
             }
             objects.push_back(anObj._retn());
           }
@@ -563,7 +563,7 @@ bool TransformationGUI_RotationDlg::execute (ObjectList& objects)
           anObj = anOper->Rotate(myObjects[i], myAxis, GetAngle() * PI180);
           if (!anObj->_is_nil()) {
             if(!IsPreview()) {
-              anObj->SetParameters(aParameters.join(":").toLatin1().constData());
+              //anObj->SetParameters(aParameters.join(":").toLatin1().constData());
              updateAttributes(anObj, aParameters);
            }
             objects.push_back(anObj._retn());
index 6ad61b4ec17d49a6dbd3db6a0bf5e6429e38ba87..63ba25638d52711babc233dcf5b761d0dc4fb11c 100644 (file)
@@ -33,6 +33,7 @@
 #include <SUIT_Session.h>
 #include <SUIT_ResourceMgr.h>
 #include <SalomeApp_Application.h>
+#include <SalomeApp_Notebook.h>
 #include <LightApp_SelectionMgr.h>
 
 // OCCT Includes
@@ -502,7 +503,7 @@ bool TransformationGUI_ScaleDlg::execute (ObjectList& objects)
           anObj = anOper->ScaleShapeCopy(myObjects[i], myPoint, SpinBox_FX->value());
           if (!anObj->_is_nil()) {
             if(!IsPreview()) 
-              anObj->SetParameters(SpinBox_FX->text().toLatin1().constData());
+              myNoteBook->setParameters(anObj, 1, SpinBox_FX);
             objects.push_back(anObj._retn());
           }
         }
@@ -528,11 +529,7 @@ bool TransformationGUI_ScaleDlg::execute (ObjectList& objects)
                                                  SpinBox_FY->value(), SpinBox_FZ->value());
           if (!anObj->_is_nil())
             if(!IsPreview()) {
-              QStringList aParameters;
-              aParameters<<SpinBox_FX->text();
-              aParameters<<SpinBox_FY->text();
-              aParameters<<SpinBox_FZ->text();
-              anObj->SetParameters(aParameters.join(":").toLatin1().constData());
+              myNoteBook->setParameters(anObj, 3, SpinBox_FX, SpinBox_FY, SpinBox_FZ);
             }
             objects.push_back(anObj._retn());
         }
index 5bdd8ee5ffb2fd44ebad9c9a5fa6b61da332ed35..d2067f3bcd36bed5c725fbe7b6cd7e44ca0b0af0 100644 (file)
@@ -574,8 +574,8 @@ bool TransformationGUI_TranslationDlg::execute (ObjectList& objects)
           myCurrObject = myObjects[i];
           anObj = anOper->TranslateDXDYDZCopy(myObjects[i], dx, dy, dz);
           if (!anObj->_is_nil()) {
-            if(!IsPreview())
-             anObj->SetParameters(aParameters.join(":").toLatin1().constData());
+            //if(!IsPreview())
+           //  anObj->SetParameters(aParameters.join(":").toLatin1().constData());
             objects.push_back(anObj._retn());
           }
         }
@@ -586,7 +586,7 @@ bool TransformationGUI_TranslationDlg::execute (ObjectList& objects)
           anObj = anOper->TranslateDXDYDZ(myObjects[i], dx, dy, dz);
           if (!anObj->_is_nil()) {
             if(!IsPreview()) {
-             anObj->SetParameters(aParameters.join(":").toLatin1().constData());
+             //anObj->SetParameters(aParameters.join(":").toLatin1().constData());
              updateAttributes(anObj, aParameters);
            }
             objects.push_back(anObj._retn());
@@ -629,7 +629,7 @@ bool TransformationGUI_TranslationDlg::execute (ObjectList& objects)
           anObj = anOper->TranslateVectorDistance(myObjects[i], myVector, aDistance, toCreateCopy);
           if (!anObj->_is_nil()) {
            if(!IsPreview()) {
-              anObj->SetParameters(aParameters.join(":").toLatin1().constData());
+              //anObj->SetParameters(aParameters.join(":").toLatin1().constData());
              if (!toCreateCopy)
                updateAttributes(anObj, aParameters);
            }