Salome HOME
Notebook: automatic variable definition.
authorouv <ouv@opencascade.com>
Wed, 2 Dec 2009 10:00:53 +0000 (10:00 +0000)
committerouv <ouv@opencascade.com>
Wed, 2 Dec 2009 10:00:53 +0000 (10:00 +0000)
68 files changed:
src/BasicGUI/BasicGUI_CircleDlg.cxx
src/BasicGUI/BasicGUI_CircleDlg.h
src/BasicGUI/BasicGUI_EllipseDlg.cxx
src/BasicGUI/BasicGUI_EllipseDlg.h
src/BasicGUI/BasicGUI_MarkerDlg.cxx
src/BasicGUI/BasicGUI_MarkerDlg.h
src/BasicGUI/BasicGUI_PlaneDlg.cxx
src/BasicGUI/BasicGUI_PlaneDlg.h
src/BasicGUI/BasicGUI_PointDlg.cxx
src/BasicGUI/BasicGUI_PointDlg.h
src/BasicGUI/BasicGUI_VectorDlg.cxx
src/BasicGUI/BasicGUI_VectorDlg.h
src/BlocksGUI/BlocksGUI_ExplodeDlg.cxx
src/BlocksGUI/BlocksGUI_ExplodeDlg.h
src/BlocksGUI/BlocksGUI_TrsfDlg.cxx
src/BlocksGUI/BlocksGUI_TrsfDlg.h
src/BuildGUI/BuildGUI_WireDlg.cxx
src/BuildGUI/BuildGUI_WireDlg.h
src/EntityGUI/EntityGUI_SketcherDlg.cxx
src/EntityGUI/EntityGUI_SketcherDlg.h
src/GEOMBase/GEOMBase_Helper.cxx
src/GEOMBase/GEOMBase_Helper.h
src/GenerationGUI/GenerationGUI_FillingDlg.cxx
src/GenerationGUI/GenerationGUI_FillingDlg.h
src/GenerationGUI/GenerationGUI_PrismDlg.cxx
src/GenerationGUI/GenerationGUI_PrismDlg.h
src/GenerationGUI/GenerationGUI_RevolDlg.cxx
src/GenerationGUI/GenerationGUI_RevolDlg.h
src/OperationGUI/OperationGUI_ArchimedeDlg.cxx
src/OperationGUI/OperationGUI_ArchimedeDlg.h
src/OperationGUI/OperationGUI_ChamferDlg.cxx
src/OperationGUI/OperationGUI_ChamferDlg.h
src/OperationGUI/OperationGUI_FilletDlg.cxx
src/OperationGUI/OperationGUI_FilletDlg.h
src/PrimitiveGUI/PrimitiveGUI_BoxDlg.cxx
src/PrimitiveGUI/PrimitiveGUI_BoxDlg.h
src/PrimitiveGUI/PrimitiveGUI_ConeDlg.cxx
src/PrimitiveGUI/PrimitiveGUI_ConeDlg.h
src/PrimitiveGUI/PrimitiveGUI_CylinderDlg.cxx
src/PrimitiveGUI/PrimitiveGUI_CylinderDlg.h
src/PrimitiveGUI/PrimitiveGUI_DiskDlg.cxx
src/PrimitiveGUI/PrimitiveGUI_DiskDlg.h
src/PrimitiveGUI/PrimitiveGUI_FaceDlg.cxx
src/PrimitiveGUI/PrimitiveGUI_FaceDlg.h
src/PrimitiveGUI/PrimitiveGUI_SphereDlg.cxx
src/PrimitiveGUI/PrimitiveGUI_SphereDlg.h
src/PrimitiveGUI/PrimitiveGUI_TorusDlg.cxx
src/PrimitiveGUI/PrimitiveGUI_TorusDlg.h
src/RepairGUI/RepairGUI_DivideEdgeDlg.cxx
src/RepairGUI/RepairGUI_DivideEdgeDlg.h
src/RepairGUI/RepairGUI_GlueDlg.cxx
src/RepairGUI/RepairGUI_GlueDlg.h
src/RepairGUI/RepairGUI_SewingDlg.cxx
src/RepairGUI/RepairGUI_SewingDlg.h
src/RepairGUI/RepairGUI_ShapeProcessDlg.cxx
src/RepairGUI/RepairGUI_ShapeProcessDlg.h
src/TransformationGUI/TransformationGUI_MultiRotationDlg.cxx
src/TransformationGUI/TransformationGUI_MultiRotationDlg.h
src/TransformationGUI/TransformationGUI_MultiTranslationDlg.cxx
src/TransformationGUI/TransformationGUI_MultiTranslationDlg.h
src/TransformationGUI/TransformationGUI_OffsetDlg.cxx
src/TransformationGUI/TransformationGUI_OffsetDlg.h
src/TransformationGUI/TransformationGUI_RotationDlg.cxx
src/TransformationGUI/TransformationGUI_RotationDlg.h
src/TransformationGUI/TransformationGUI_ScaleDlg.cxx
src/TransformationGUI/TransformationGUI_ScaleDlg.h
src/TransformationGUI/TransformationGUI_TranslationDlg.cxx
src/TransformationGUI/TransformationGUI_TranslationDlg.h

index 67ed1d620cc8864e6780f7ecd5c37e976c1b4a47..27db941108cb9af8177253245687c23c3019c95a 100644 (file)
@@ -615,14 +615,14 @@ static bool isEqual( const GEOM::GEOM_Object_var& thePnt1, const GEOM::GEOM_Obje
 // function : isValid
 // purpose  :
 //=================================================================================
-bool BasicGUI_CircleDlg::isValid( QString& msg )
+bool BasicGUI_CircleDlg::isValid( QString& msg, QStringList& absentParams )
 {
   const int id = getConstructorId();
   if ( id == 0 ) {
     //return !myPoint->_is_nil() && !myDir->_is_nil() && getRadius() > 0;
     //nil point means origin of global CS
     //nil vector means Z axis
-    bool ok = GroupPntVecR->SpinBox_DX->isValid(msg, !IsPreview());
+    bool ok = GroupPntVecR->SpinBox_DX->isValid(msg, absentParams, !IsPreview());
     return getRadius() > 0 && ok;
   }
   else if ( id == 1 )
index b1574fd6db05de7172f859255ce43da60888c65c..0b6ebaa838e2982180f739188b8934eb93fe3209 100644 (file)
@@ -46,7 +46,7 @@ public:
 protected:
   // redefined from GEOMBase_Helper
   virtual GEOM::GEOM_IOperations_ptr createOperation();
-  virtual bool                       isValid( QString& );
+  virtual bool                       isValid( QString&, QStringList& );
   virtual bool                       execute( ObjectList& );
   
   virtual void                       addSubshapesToStudy();
index 61340d3be7a97f0f3e8e13e5a069107c2750f256..899d0effe931ce42d955c1455fc6bd18980577c2 100644 (file)
@@ -430,7 +430,7 @@ GEOM::GEOM_IOperations_ptr BasicGUI_EllipseDlg::createOperation()
 // function : isValid
 // purpose  :
 //=================================================================================
-bool BasicGUI_EllipseDlg::isValid( QString& msg )
+bool BasicGUI_EllipseDlg::isValid( QString& msg, QStringList& absentParams )
 {
   double aMajorR = GroupPoints->SpinBox_DX->value();
   double aMinorR = GroupPoints->SpinBox_DY->value();
@@ -442,8 +442,8 @@ bool BasicGUI_EllipseDlg::isValid( QString& msg )
   //nil point means origin of global CS
   //nil vector means Z axis
   bool ok = true;
-  ok = GroupPoints->SpinBox_DX->isValid( msg, !IsPreview() ) && ok;
-  ok = GroupPoints->SpinBox_DY->isValid( msg, !IsPreview() ) && ok;
+  ok = GroupPoints->SpinBox_DX->isValid( msg, absentParams, !IsPreview() ) && ok;
+  ok = GroupPoints->SpinBox_DY->isValid( msg, absentParams, !IsPreview() ) && ok;
   return ok;
 }
 
index c80bce197165566632eb60c00d0bc4cbd2c68549..0e15f56f503d230620380e91101c44dc6e3156ef 100644 (file)
@@ -45,7 +45,7 @@ public:
 protected:
   // redefined from GEOMBase_Helper
   virtual GEOM::GEOM_IOperations_ptr createOperation();
-  virtual bool                       isValid( QString& );
+  virtual bool                       isValid( QString&, QStringList& );
   virtual bool                       execute( ObjectList& );
   virtual void                       addSubshapesToStudy();
   
index e99553a5978defa1fb8cbe22dfc5107ddee726f5..8e84a43d91342c8d51b52fc6f1c2fdf9b596c0bc 100644 (file)
@@ -683,7 +683,7 @@ GEOM::GEOM_IOperations_ptr BasicGUI_MarkerDlg::createOperation()
 // function : isValid
 // purpose  :
 //=================================================================================
-bool BasicGUI_MarkerDlg::isValid( QString& msg )
+bool BasicGUI_MarkerDlg::isValid( QString& msg, QStringList& absentParams )
 {
   const int id = getConstructorId();
   gp_Vec v1( myData[ DX1 ]->value(), myData[ DY1 ]->value(), myData[ DZ1 ]->value() ),
@@ -702,7 +702,7 @@ bool BasicGUI_MarkerDlg::isValid( QString& msg )
   case 0: {
     bool ok = true;
     for ( DataMap::iterator anIter = myData.begin(); anIter != myData.end(); ++anIter )
-      ok = anIter.value()->isValid( msg, !IsPreview()) && ok;
+      ok = anIter.value()->isValid( msg, absentParams, !IsPreview()) && ok;
     return isOk && ok;
   }
   case 1:
index 364b0d7375786a1e1bbaee3650b0dbe759f5c3ee..6c153411fd9d31497db8331bab6567d2857b0ed9 100644 (file)
@@ -50,7 +50,7 @@ public:
 
 protected:
   virtual                       GEOM::GEOM_IOperations_ptr createOperation();
-  virtual bool                  isValid( QString& );
+  virtual bool                  isValid( QString&, QStringList& );
   virtual bool                  execute( ObjectList& );
   virtual void                  displayPreview ( const bool   = false,
                                                  const bool   = true,
index 924ad265f6fcd0ab1c826c3a6f8d7128b6203b8b..7eb7489efa1b933133312d62bcd1426ed2991b48 100644 (file)
@@ -750,7 +750,7 @@ static bool isEqual( const GEOM::GEOM_Object_var& thePnt1, const GEOM::GEOM_Obje
 // function : isValid
 // purpose  :
 //=================================================================================
-bool BasicGUI_PlaneDlg::isValid( QString& msg )
+bool BasicGUI_PlaneDlg::isValid( QString& msg, QStringList& absentParams )
 {
   const int id = getConstructorId();
   if ( getSize() <= 0 ) {
@@ -759,22 +759,22 @@ bool BasicGUI_PlaneDlg::isValid( QString& msg )
   }
 
   if ( id == 0 ) { 
-    bool ok = GroupPntDir->SpinBox_DX->isValid( msg, !IsPreview() );
+    bool ok = GroupPntDir->SpinBox_DX->isValid( msg, absentParams, !IsPreview() );
     return !CORBA::is_nil( myPoint ) && !CORBA::is_nil( myDir ) && ok;
   }
   else if ( id == 1 ) {
-    bool ok = Group3Pnts->SpinBox_DX->isValid( msg, !IsPreview() );
+    bool ok = Group3Pnts->SpinBox_DX->isValid( msg, absentParams, !IsPreview() );
     return !CORBA::is_nil( myPoint1  ) && !CORBA::is_nil( myPoint2 ) && !CORBA::is_nil( myPoint3 ) &&
       !isEqual( myPoint1, myPoint2 ) && !isEqual( myPoint1, myPoint3 ) && !isEqual( myPoint2, myPoint3 ) && ok;
   }
   else if ( id == 2 ) {
-    bool ok = GroupFace->SpinBox_DX->isValid( msg, !IsPreview() );
+    bool ok = GroupFace->SpinBox_DX->isValid( msg, absentParams, !IsPreview() );
     return !CORBA::is_nil( myFace ) && ok;
   }   else if ( id == 3 ) {
-    bool ok = Group2Vec->SpinBox_DX->isValid( msg, !IsPreview() );
+    bool ok = Group2Vec->SpinBox_DX->isValid( msg, absentParams, !IsPreview() );
     return !CORBA::is_nil( myVec1  ) && !CORBA::is_nil( myVec2 ) && !isEqual( myVec1, myVec2 ) && ok;
   } else if ( id == 4 ) {
-    bool ok = GroupLCS->SpinBox_DX->isValid( msg, !IsPreview() );
+    bool ok = GroupLCS->SpinBox_DX->isValid( msg, absentParams, !IsPreview() );
     return ok;
   }
   return false;
index 6b2a6fde3833cb5caef425529b5fbdceb59f1592..e2585097e66dd0eecca6d9060b697006e0270b39 100644 (file)
@@ -48,7 +48,7 @@ public:
 protected:
   // redefined from GEOMBase_Helper
   virtual GEOM::GEOM_IOperations_ptr createOperation();
-  virtual bool                       isValid( QString& );
+  virtual bool                       isValid( QString&, QStringList& );
   virtual bool                       execute( ObjectList& );
   virtual void                       addSubshapesToStudy();
 
index dfcc38456e07a1a60c8b6104993f5be8c74bf167..f94ad83b3d510c65f61bb78a8e0c23ebc3b3fc49 100644 (file)
@@ -733,32 +733,32 @@ GEOM::GEOM_IOperations_ptr BasicGUI_PointDlg::createOperation()
 // function : isValid
 // purpose  :
 //=================================================================================
-bool BasicGUI_PointDlg::isValid( QString& msg )
+bool BasicGUI_PointDlg::isValid( QString& msg, QStringList& absentParams )
 {
   const int id = getConstructorId();
   if ( id == GEOM_POINT_XYZ ) {
     bool ok = true;
-    ok = GroupXYZ->SpinBox_DX->isValid( msg, !IsPreview() ) && ok;
-    ok = GroupXYZ->SpinBox_DY->isValid( msg, !IsPreview() ) && ok;
-    ok = GroupXYZ->SpinBox_DZ->isValid( msg, !IsPreview() ) && ok;
+    ok = GroupXYZ->SpinBox_DX->isValid( msg, absentParams, !IsPreview() ) && ok;
+    ok = GroupXYZ->SpinBox_DY->isValid( msg, absentParams, !IsPreview() ) && ok;
+    ok = GroupXYZ->SpinBox_DZ->isValid( msg, absentParams, !IsPreview() ) && ok;
     return ok;
   }
   else if ( id == GEOM_POINT_REF ) {
     bool ok = true;
-    ok = GroupRefPoint->SpinBox_DX->isValid( msg, !IsPreview() ) && ok;
-    ok = GroupRefPoint->SpinBox_DY->isValid( msg, !IsPreview() ) && ok;
-    ok = GroupRefPoint->SpinBox_DZ->isValid( msg, !IsPreview() ) && ok;
+    ok = GroupRefPoint->SpinBox_DX->isValid( msg, absentParams, !IsPreview() ) && ok;
+    ok = GroupRefPoint->SpinBox_DY->isValid( msg, absentParams, !IsPreview() ) && ok;
+    ok = GroupRefPoint->SpinBox_DZ->isValid( msg, absentParams, !IsPreview() ) && ok;
 
     return !myRefPoint->_is_nil() && ok;
   }
   else if ( id == GEOM_POINT_EDGE ) {
     bool ok = true;
     if ( myParamCoord->checkedId() == PARAM_VALUE )
-      ok = GroupOnCurve->SpinBox_DX->isValid( msg, !IsPreview() );
+      ok = GroupOnCurve->SpinBox_DX->isValid( msg, absentParams, !IsPreview() );
     else {
-      ok = GroupXYZ->SpinBox_DX->isValid( msg, !IsPreview() ) && ok;
-      ok = GroupXYZ->SpinBox_DY->isValid( msg, !IsPreview() ) && ok;
-      ok = GroupXYZ->SpinBox_DZ->isValid( msg, !IsPreview() ) && ok;
+      ok = GroupXYZ->SpinBox_DX->isValid( msg, absentParams, !IsPreview() ) && ok;
+      ok = GroupXYZ->SpinBox_DY->isValid( msg, absentParams, !IsPreview() ) && ok;
+      ok = GroupXYZ->SpinBox_DZ->isValid( msg, absentParams, !IsPreview() ) && ok;
     }
     return !myEdge->_is_nil() && ok;
   }
@@ -767,13 +767,13 @@ bool BasicGUI_PointDlg::isValid( QString& msg )
   else if ( id == GEOM_POINT_SURF ) {
     bool ok = true;
     if ( myParamCoord->checkedId() == PARAM_VALUE ) {
-      ok = GroupOnSurface->SpinBox_DX->isValid( msg, !IsPreview() ) && ok;
-      ok = GroupOnSurface->SpinBox_DY->isValid( msg, !IsPreview() ) && ok;
+      ok = GroupOnSurface->SpinBox_DX->isValid( msg, absentParams, !IsPreview() ) && ok;
+      ok = GroupOnSurface->SpinBox_DY->isValid( msg, absentParams, !IsPreview() ) && ok;
     }
     else {
-      ok = GroupXYZ->SpinBox_DX->isValid( msg, !IsPreview() ) && ok;
-      ok = GroupXYZ->SpinBox_DY->isValid( msg, !IsPreview() ) && ok;
-      ok = GroupXYZ->SpinBox_DZ->isValid( msg, !IsPreview() ) && ok;
+      ok = GroupXYZ->SpinBox_DX->isValid( msg, absentParams, !IsPreview() ) && ok;
+      ok = GroupXYZ->SpinBox_DY->isValid( msg, absentParams, !IsPreview() ) && ok;
+      ok = GroupXYZ->SpinBox_DZ->isValid( msg, absentParams, !IsPreview() ) && ok;
     }
     return !myFace->_is_nil() && ok;
     
index c3f95979e6c2598ff4061036e4d21086a4adb4fc..a56f7803f7d0cbdbc99807138b702b5ee37d91f2 100644 (file)
@@ -59,7 +59,7 @@ public:
 protected:
   // redefined from GEOMBase_Helper
   virtual GEOM::GEOM_IOperations_ptr createOperation();
-  virtual bool                       isValid( QString& );
+  virtual bool                       isValid( QString&, QStringList& );
   virtual bool                       execute( ObjectList& );
   virtual void                       addSubshapesToStudy();
 
index 612557ff2ab22d26c5852248f64ab9dc3966125b..cfbc8ce5e67c9c50fbc1d8d904483bc6d13aa30d 100644 (file)
@@ -452,16 +452,16 @@ GEOM::GEOM_IOperations_ptr BasicGUI_VectorDlg::createOperation()
 // function : isValid
 // purpose  :
 //=================================================================================
-bool BasicGUI_VectorDlg::isValid( QString& msg )
+bool BasicGUI_VectorDlg::isValid( QString& msg, QStringList& absentParams )
 {
   if(getConstructorId() == 0) 
     return !myPoint1->_is_nil() && !myPoint2->_is_nil();
   else if(getConstructorId() == 1)
   {
     bool ok = true;
-    ok = GroupDimensions->SpinBox_DX->isValid( msg, !IsPreview() ) && ok;
-    ok = GroupDimensions->SpinBox_DY->isValid( msg, !IsPreview() ) && ok;
-    ok = GroupDimensions->SpinBox_DZ->isValid( msg, !IsPreview() ) && ok;
+    ok = GroupDimensions->SpinBox_DX->isValid( msg, absentParams, !IsPreview() ) && ok;
+    ok = GroupDimensions->SpinBox_DY->isValid( msg, absentParams, !IsPreview() ) && ok;
+    ok = GroupDimensions->SpinBox_DZ->isValid( msg, absentParams, !IsPreview() ) && ok;
     return ok;
   }
   return false;
index 747ef534b6d9bb0bfe6e92f15c75ecbbd9900769..245dadb398a566dd8203930206ca5d7ef22452e0 100644 (file)
@@ -46,7 +46,7 @@ public:
 protected:
   // redefined from GEOMBase_Helper
   virtual GEOM::GEOM_IOperations_ptr createOperation();
-  virtual bool                       isValid( QString& );
+  virtual bool                       isValid( QString&, QStringList& );
   virtual bool                       execute( ObjectList& );
   virtual void                       addSubshapesToStudy();
 
index 3476008491f7ceeb3e7c5eb7852f50900b6ed29d..6d32462bd7af873faf1bc000213bf2f11f28c73e 100644 (file)
@@ -367,11 +367,11 @@ GEOM::GEOM_IOperations_ptr BlocksGUI_ExplodeDlg::createOperation()
 // function : isValid()
 // purpose  : Verify validity of input data
 //=================================================================================
-bool BlocksGUI_ExplodeDlg::isValid (QString& msg)
+bool BlocksGUI_ExplodeDlg::isValid (QString& msg, QStringList& absentParams)
 {
   bool okSP = true;
-  okSP = myGrp1->SpinBox1->isValid( msg, !IsPreview() ) && okSP;
-  okSP = myGrp1->SpinBox2->isValid( msg, !IsPreview() ) && okSP;
+  okSP = myGrp1->SpinBox1->isValid( msg, absentParams, !IsPreview() ) && okSP;
+  okSP = myGrp1->SpinBox2->isValid( msg, absentParams, !IsPreview() ) && okSP;
 
   bool ok = false;
   switch ( getConstructorId() ) {
index 63b616a4d05558e84a6ee40dac862866d8a4d24f..6f4b866be189006483a8fa7bb487d64d6c0f3a8c 100644 (file)
@@ -45,7 +45,7 @@ public:
 protected:
   // redefined from GEOMBase_Helper
   virtual GEOM::GEOM_IOperations_ptr createOperation();
-  virtual bool                       isValid( QString& );
+  virtual bool                       isValid( QString&, QStringList& );
   virtual bool                       execute( ObjectList& );
   virtual GEOM::GEOM_Object_ptr      getFather( GEOM::GEOM_Object_ptr );
 
index cf6c2afefcfa92c6416b09471937c59299fb6e4e..ab5f72210c76085678793250c572d00f983c7525 100644 (file)
@@ -548,18 +548,18 @@ GEOM::GEOM_IOperations_ptr BlocksGUI_TrsfDlg::createOperation()
 // function : isValid
 // purpose  : Verify validity of input data
 //=================================================================================
-bool BlocksGUI_TrsfDlg::isValid (QString& msg)
+bool BlocksGUI_TrsfDlg::isValid (QString& msg, QStringList& absentParams)
 {
   bool ok = false, okSP = true;
   switch (getConstructorId()) {
   case 0:
     ok = !myShape->_is_nil() && myFaces[Face1] > 0;
-    okSP = mySpinBox[SpinBox1]->isValid( msg, !IsPreview() );
+    okSP = mySpinBox[SpinBox1]->isValid( msg, absentParams, !IsPreview() );
     break;
   case 1:
     ok = !myShape->_is_nil() && myFaces[Face1U] > 0 && myFaces[Face1V] > 0;
-    okSP = mySpinBox[SpinBox2U]->isValid( msg, !IsPreview() ) && okSP;
-    okSP = mySpinBox[SpinBox2V]->isValid( msg, !IsPreview() ) && okSP;
+    okSP = mySpinBox[SpinBox2U]->isValid( msg, absentParams, !IsPreview() ) && okSP;
+    okSP = mySpinBox[SpinBox2V]->isValid( msg, absentParams, !IsPreview() ) && okSP;
     break;
   default:
     break;
index 558ea75161aa35d26d8ff4e0d715e89033e16108..dedeab36f525b9a5463604703e6eaeb2b397f717 100644 (file)
@@ -53,7 +53,7 @@ public:
 protected:
   // redefined from GEOMBase_Helper
   virtual GEOM::GEOM_IOperations_ptr createOperation();
-  virtual bool                       isValid (QString&);
+  virtual bool                       isValid (QString&, QStringList&);
   virtual bool                       execute (ObjectList&);
 
 private:
index 58d24c027ac4f568032b1c97619fe21ab8246f1c..26c4306f88c2ea4ee28601571e01fad9fe643965 100644 (file)
@@ -240,9 +240,9 @@ GEOM::GEOM_IOperations_ptr BuildGUI_WireDlg::createOperation()
 // function : isValid
 // purpose  :
 //=================================================================================
-bool BuildGUI_WireDlg::isValid (QString& msg)
+bool BuildGUI_WireDlg::isValid (QString& msg, QStringList& absentParams)
 {
-  bool ok = GroupArgs->SpinBox_DX->isValid(msg, !IsPreview());
+  bool ok = GroupArgs->SpinBox_DX->isValid(msg, absentParams, !IsPreview());
   return myOkEdgesAndWires && ok;
 }
 
index 6b500ee30709104b33e961d382abd35d6cdb1498..3b9de6e5627f39b771314d84ef094fd566b4a7eb 100644 (file)
@@ -45,7 +45,7 @@ public:
 protected:
   // redefined from GEOMBase_Helper
   virtual GEOM::GEOM_IOperations_ptr createOperation();
-  virtual bool                       isValid( QString& );
+  virtual bool                       isValid( QString&, QStringList& );
   virtual bool                       execute( ObjectList& );    
 
 private:
index b645a08c4ce18c2b641e5d5bd0c01ea05c1e7bcf..af146a1854d6a043991701578305a872cd8cdf9d 100644 (file)
@@ -1331,32 +1331,41 @@ GEOM::GEOM_IOperations_ptr EntityGUI_SketcherDlg::createOperation()
 // function : isValid
 // purpose  :
 //=================================================================================
-bool EntityGUI_SketcherDlg::isValid( QString& msg )
+bool EntityGUI_SketcherDlg::isValid( QString& msg, QStringList& absentParams )
 {
   bool ok = true;
   bool toCorrect = !IsPreview() || myIsApply;
 
   if( Group1Spin->isVisible() ) {
-    ok = Group1Spin->SpinBox_DX->isValid( msg, toCorrect ) && ok;
+    ok = Group1Spin->SpinBox_DX->isValid( msg, absentParams, toCorrect ) && ok;
   }
   else if( Group2Spin->isVisible() ) {
-    ok = Group2Spin->SpinBox_DX->isValid( msg, toCorrect ) && ok;
-    ok = Group2Spin->SpinBox_DY->isValid( msg, toCorrect ) && ok;
+    ok = Group2Spin->SpinBox_DX->isValid( msg, absentParams, toCorrect ) && ok;
+    ok = Group2Spin->SpinBox_DY->isValid( msg, absentParams, toCorrect ) && ok;
   }
   else if( Group3Spin->isVisible() ) {
-    ok = Group3Spin->SpinBox_DX->isValid( msg, toCorrect ) && ok;
-    ok = Group3Spin->SpinBox_DY->isValid( msg, toCorrect ) && ok;
-    ok = Group3Spin->SpinBox_DZ->isValid( msg, toCorrect ) && ok;
+    ok = Group3Spin->SpinBox_DX->isValid( msg, absentParams, toCorrect ) && ok;
+    ok = Group3Spin->SpinBox_DY->isValid( msg, absentParams, toCorrect ) && ok;
+    ok = Group3Spin->SpinBox_DZ->isValid( msg, absentParams, toCorrect ) && ok;
   }
   else if( Group4Spin->isVisible() ) {
-    ok = Group4Spin->SpinBox_DX->isValid( msg, toCorrect ) && ok;
-    ok = Group4Spin->SpinBox_DY->isValid( msg, toCorrect ) && ok;
-    ok = Group4Spin->SpinBox_DZ->isValid( msg, toCorrect ) && ok;
-    ok = Group4Spin->SpinBox_DS->isValid( msg, toCorrect ) && ok;
+    ok = Group4Spin->SpinBox_DX->isValid( msg, absentParams, toCorrect ) && ok;
+    ok = Group4Spin->SpinBox_DY->isValid( msg, absentParams, toCorrect ) && ok;
+    ok = Group4Spin->SpinBox_DZ->isValid( msg, absentParams, toCorrect ) && ok;
+    ok = Group4Spin->SpinBox_DS->isValid( msg, absentParams, toCorrect ) && ok;
   }
 
-  if( myIsApply && !ok )
+  if( myIsApply && !ok ) {
+    if ( !absentParams.isEmpty() ) {
+      if( SalomeApp_Application* app =
+          dynamic_cast<SalomeApp_Application*>( SUIT_Session::session()->activeApplication() ) )
+      {
+        app->defineAbsentParameters( absentParams );
+        return ok;
+      }
+    }
     showError( msg );
+  }
 
   return ok;
 }
index 774068fc10f2403fa7d9220dedb23321bd62fd51..0af9ad2472dddc885d263f8995f0197992a4b09c 100644 (file)
@@ -76,7 +76,7 @@ protected:
 
   // redefined from GEOMBase_Helper
   virtual GEOM::GEOM_IOperations_ptr createOperation();
-  virtual bool                       isValid( QString& );
+  virtual bool                       isValid( QString&, QStringList& );
   virtual bool                       execute( ObjectList& );
 
   void                               closeEvent( QCloseEvent* );
index ed25af099d54cdb3d475fc7a742a41f126a11c36..5967bcb58619df0fae22e9453bce5baaf46ea9ee 100755 (executable)
@@ -87,7 +87,7 @@ GEOM::GEOM_Gen_ptr GEOMBase_Helper::getGeomEngine()
 GEOMBase_Helper::GEOMBase_Helper( SUIT_Desktop* desktop )
   : myDesktop( desktop ), myViewWindow( 0 ), myDisplayer( 0 ), myCommand( 0 ), myNoteBook( 0 ), isPreview( false )
 {
-  if( SalomeApp_Application* app = (SalomeApp_Application*)( SUIT_Session::session()->activeApplication() ) )
+  if( SalomeApp_Application* app = dynamic_cast<SalomeApp_Application*>( SUIT_Session::session()->activeApplication() ) )
     if( SalomeApp_Study* appStudy = dynamic_cast<SalomeApp_Study*>( app->activeStudy() ) )
       myNoteBook = new SalomeApp_Notebook( appStudy );
 }
@@ -262,7 +262,9 @@ void GEOMBase_Helper::displayPreview( const bool   activate,
 {
   isPreview = true;
   QString msg;
-  if ( !isValid( msg ) )
+  QStringList absentParams;
+  // only one prototype of isValid() methods called below will be actually processed
+  if ( !isValid( msg ) || !isValid( msg, absentParams ) )
   {
     erasePreview( update );
     isPreview = false;
@@ -803,11 +805,8 @@ bool GEOMBase_Helper::onAccept( const bool publish, const bool useTransaction )
     return false;
   }
 
-  QString msg;
-  if ( !isValid( msg ) ) {
-    showError( msg );
+  if( !checkIsValid() )
     return false;
-  }
 
   erasePreview( false );
 
@@ -915,6 +914,33 @@ void GEOMBase_Helper::showError( const QString& msg )
   SUIT_MessageBox::critical(SUIT_Session::session()->activeApplication()->desktop(), QObject::tr( "GEOM_ERROR" ), str, QObject::tr( "BUT_OK" ) );
 }
 
+//================================================================
+// Function : checkIsValid
+// Purpose  : Checks validity of the dialog contents and shows the error message
+//            or displays a notebook dialog if some parameters used in the dialog are not defined.
+//            In the second case it also redisplays preview if <updatePreview> argument is <true>.
+//================================================================
+bool GEOMBase_Helper::checkIsValid( bool updatePreview )
+{
+  SalomeApp_Application* app = dynamic_cast<SalomeApp_Application*>( SUIT_Session::session()->activeApplication() );
+  if ( !app )
+    return false;
+
+  QString msg;
+  QStringList absentParams;
+  // only one prototype of isValid() methods called below will be actually processed
+  if ( !isValid( msg ) || !isValid( msg, absentParams ) ) {
+    if ( !absentParams.isEmpty() ) {
+      if ( app->defineAbsentParameters( absentParams ) && updatePreview )
+        displayPreview();
+      return false;
+    }
+    showError( msg );
+    return false;
+  }
+  return true;
+}
+
 //////////////////////////////////////////////////////////////////
 // Virtual methods to be redefined in dialogs
 //////////////////////////////////////////////////////////////////
@@ -932,12 +958,23 @@ GEOM::GEOM_IOperations_ptr GEOMBase_Helper::createOperation()
 //================================================================
 // Function : isValid
 // Purpose  : Called by onAccept(). Redefine this method to check validity of user input in dialog boxes.
+//            (This method should be redefined if there are no parametrized spin-boxes in the dialog box).
 //================================================================
 bool GEOMBase_Helper::isValid( QString& )
 {
   return true;
 }
 
+//================================================================
+// Function : isValid
+// Purpose  : Called by onAccept(). Redefine this method to check validity of user input in dialog boxes.
+//            (This method should be redefined if there are some parametrized spin-boxes in the dialog box).
+//================================================================
+bool GEOMBase_Helper::isValid( QString&, QStringList& )
+{
+  return true;
+}
+
 //================================================================
 // Function : execute
 // Purpose  : This method is called by onAccept().
index 5aa304374eab03be6cb7d5d1b05652e55976051d..d9d646ecf51bedda186929e04101661e82e19484 100755 (executable)
@@ -125,6 +125,10 @@ protected:
   void showError( const QString& msg );
   // Shows a error message followed by <msg>
 
+  bool checkIsValid( bool updatePreview = true );
+  // Checks validity of the dialog contents and shows the error message
+  // or displays a notebook dialog if some parameters used in the dialog are not defined
+
   GEOM::GEOM_IOperations_ptr getOperation();
   // If <myOperation> is nil --> calls createOperation() and put the result
   // into <myOperation> and returns it;
@@ -147,6 +151,11 @@ protected:
 
   virtual bool isValid( QString& msg );
   // Called by onAccept(). Redefine this method to check validity of user input in dialog boxes.
+  // (This method should be redefined if there are no parametrized spin-boxes in the dialog box).
+
+  virtual bool isValid( QString& msg, QStringList& absentParams );
+  // Called by onAccept(). Redefine this method to check validity of user input in dialog boxes.
+  // (This method should be redefined if there are some parametrized spin-boxes in the dialog box).
 
   virtual bool execute( ObjectList& objects );
   // This method is called by onAccept(). 
index 69f9d09e8580955c3a309a62a6f6e9f93e7fc8f1..7fec8a4213c5f7bc243d9429e26f96b0914725d5 100644 (file)
@@ -338,14 +338,14 @@ GEOM::GEOM_IOperations_ptr GenerationGUI_FillingDlg::createOperation()
 // function : isValid
 // purpose  :
 //=================================================================================
-bool GenerationGUI_FillingDlg::isValid( QString& msg )
+bool GenerationGUI_FillingDlg::isValid( QString& msg, QStringList& absentParams )
 {
   bool ok = true;
-  ok = GroupPoints->SpinBox1->isValid( msg, !IsPreview() ) && ok;
-  ok = GroupPoints->SpinBox2->isValid( msg, !IsPreview() ) && ok;
-  ok = GroupPoints->SpinBox3->isValid( msg, !IsPreview() ) && ok;
-  ok = GroupPoints->SpinBox4->isValid( msg, !IsPreview() ) && ok;
-  ok = GroupPoints->SpinBox5->isValid( msg, !IsPreview() ) && ok;
+  ok = GroupPoints->SpinBox1->isValid( msg, absentParams, !IsPreview() ) && ok;
+  ok = GroupPoints->SpinBox2->isValid( msg, absentParams, !IsPreview() ) && ok;
+  ok = GroupPoints->SpinBox3->isValid( msg, absentParams, !IsPreview() ) && ok;
+  ok = GroupPoints->SpinBox4->isValid( msg, absentParams, !IsPreview() ) && ok;
+  ok = GroupPoints->SpinBox5->isValid( msg, absentParams, !IsPreview() ) && ok;
 
   return myOkCompound > 0 && ok;
 }
index ed4de1d3d0e83f3f7376a8dca158e2533feab2b6..d717a62575de0f86c67542ebd9c820110665aaec 100644 (file)
@@ -45,7 +45,7 @@ public:
 protected:
   // redefined from GEOMBase_Helper
   virtual GEOM::GEOM_IOperations_ptr createOperation();
-  virtual bool                       isValid( QString& );
+  virtual bool                       isValid( QString&, QStringList& );
   virtual bool                       execute( ObjectList& );    
 
 private:
index f8f4b677de8846d39c5967f29002ba22509ead3a..0c6fdcb084c5ecea5926d72281f95c66541d65c4 100644 (file)
@@ -623,16 +623,16 @@ GEOM::GEOM_IOperations_ptr GenerationGUI_PrismDlg::createOperation()
 // function : isValid
 // purpose  :
 //=================================================================================
-bool GenerationGUI_PrismDlg::isValid (QString& msg)
+bool GenerationGUI_PrismDlg::isValid (QString& msg, QStringList& absentParams)
 {
   bool ok = true;
   if( getConstructorId() == 0 )
-    ok = GroupPoints->SpinBox_DX->isValid( msg, !IsPreview() ) && ok;
+    ok = GroupPoints->SpinBox_DX->isValid( msg, absentParams, !IsPreview() ) && ok;
   else if( getConstructorId() == 2 )
   {
-    ok = GroupPoints3->SpinBox_DX->isValid( msg, !IsPreview() ) && ok;
-    ok = GroupPoints3->SpinBox_DY->isValid( msg, !IsPreview() ) && ok;
-    ok = GroupPoints3->SpinBox_DZ->isValid( msg, !IsPreview() ) && ok;
+    ok = GroupPoints3->SpinBox_DX->isValid( msg, absentParams, !IsPreview() ) && ok;
+    ok = GroupPoints3->SpinBox_DY->isValid( msg, absentParams, !IsPreview() ) && ok;
+    ok = GroupPoints3->SpinBox_DZ->isValid( msg, absentParams, !IsPreview() ) && ok;
   }
 
   if (getConstructorId() == 0)
index 1ccc7461b2fba1342a235a826b07884d50a82d60..3616f4c79327165e2ea9ddb586baeb490adee7f3 100644 (file)
@@ -47,7 +47,7 @@ public:
 protected:
   // redefined from GEOMBase_Helper
   virtual GEOM::GEOM_IOperations_ptr createOperation();
-  virtual bool                       isValid( QString& );
+  virtual bool                       isValid( QString&, QStringList& );
   virtual bool                       execute( ObjectList& );    
   virtual void                       addSubshapesToStudy();
 
index 57057dd490296024fb61ea0a9d62e6d040e04289..0595d03c8fd32c30b41d266cb4e3fbf812d94331 100644 (file)
@@ -392,9 +392,9 @@ GEOM::GEOM_IOperations_ptr GenerationGUI_RevolDlg::createOperation()
 // function : isValid
 // purpose  :
 //=================================================================================
-bool GenerationGUI_RevolDlg::isValid (QString& msg)
+bool GenerationGUI_RevolDlg::isValid (QString& msg, QStringList& absentParams)
 {
-  bool ok = GroupPoints->SpinBox_DX->isValid( msg, !IsPreview() );
+  bool ok = GroupPoints->SpinBox_DX->isValid( msg, absentParams, !IsPreview() );
   return myOkBase && myOkAxis && ok;
 }
 
index 89318effcd93df8f08c4204287439e72df4e2fff..53ec8a6367a11c372837e1bdb50309b5a045022f 100644 (file)
@@ -45,7 +45,7 @@ public:
 protected:
   // redefined from GEOMBase_Helper
   virtual GEOM::GEOM_IOperations_ptr createOperation();
-  virtual bool                       isValid( QString& );
+  virtual bool                       isValid( QString&, QStringList& );
   virtual bool                       execute( ObjectList& );    
   virtual void                       addSubshapesToStudy();
 
index d90d8092b4e1f8e83ee9d832b2d5a253bd25256f..f1bf4304893cfdc3bf9bd697724868d413c3db1c 100644 (file)
@@ -250,12 +250,12 @@ GEOM::GEOM_IOperations_ptr OperationGUI_ArchimedeDlg::createOperation()
 // function : isValid
 // purpose  :
 //=================================================================================
-bool OperationGUI_ArchimedeDlg::isValid( QString& msg )
+bool OperationGUI_ArchimedeDlg::isValid( QString& msg, QStringList& absentParams )
 {
   bool ok = true;
-  ok = GroupPoints->SpinBox_DX->isValid( msg, !IsPreview() ) && ok;
-  ok = GroupPoints->SpinBox_DY->isValid( msg, !IsPreview() ) && ok;
-  ok = GroupPoints->SpinBox_DZ->isValid( msg, !IsPreview() ) && ok;
+  ok = GroupPoints->SpinBox_DX->isValid( msg, absentParams, !IsPreview() ) && ok;
+  ok = GroupPoints->SpinBox_DY->isValid( msg, absentParams, !IsPreview() ) && ok;
+  ok = GroupPoints->SpinBox_DZ->isValid( msg, absentParams, !IsPreview() ) && ok;
   return !myShape->_is_nil() && ok;
 }
 
index 640e06f77dd17dd70f39024cb62c4c44c868f85d..ea7820cbfaca1623883920254eb1661a48f7cf21 100644 (file)
@@ -45,7 +45,7 @@ public:
 protected:
   // redefined from GEOMBase_Helper
   virtual GEOM::GEOM_IOperations_ptr  createOperation();
-  virtual bool                        isValid( QString& );
+  virtual bool                        isValid( QString&, QStringList& );
   virtual bool                        execute( ObjectList& );    
 
 private:
index 1115e6ea3cdc4f688c6a1094ff879b764822c1e6..24c2170b45395d1c20a16c0a94c2a42a88d723ff 100644 (file)
@@ -741,48 +741,48 @@ GEOM::GEOM_IOperations_ptr OperationGUI_ChamferDlg::createOperation()
 // function : isValid()
 // purpose  : Verify validity of input data
 //=================================================================================
-bool OperationGUI_ChamferDlg::isValid (QString& msg)
+bool OperationGUI_ChamferDlg::isValid (QString& msg, QStringList& absentParams)
 {
   bool ok = true;
   switch (getConstructorId())
   {
     case 0:
-      ok = mySpinBox[ SpinBox1 ]->isValid( msg, !IsPreview() );
+      ok = mySpinBox[ SpinBox1 ]->isValid( msg, absentParams, !IsPreview() );
       return !myShape->_is_nil() && ok;
     case 1:
       if (myRadioButton[ RadioButton21 ]->isChecked())
       {
-       ok = mySpinBox[ SpinBox21 ]->isValid( msg, !IsPreview() ) && ok;
-       ok = mySpinBox[ SpinBox22 ]->isValid( msg, !IsPreview() ) && ok;
+       ok = mySpinBox[ SpinBox21 ]->isValid( msg, absentParams, !IsPreview() ) && ok;
+       ok = mySpinBox[ SpinBox22 ]->isValid( msg, absentParams, !IsPreview() ) && ok;
       }
       else
       {
-       ok = mySpinBox[ SpinBox23 ]->isValid( msg, !IsPreview() ) && ok;
-       ok = mySpinBox[ SpinBox24 ]->isValid( msg, !IsPreview() ) && ok;
+       ok = mySpinBox[ SpinBox23 ]->isValid( msg, absentParams, !IsPreview() ) && ok;
+       ok = mySpinBox[ SpinBox24 ]->isValid( msg, absentParams, !IsPreview() ) && ok;
       }
       return !myShape->_is_nil() && myFace[ Face1 ] > 0 && myFace[ Face2 ] > 0 && ok;
     case 2:
       if (myRadioButton[ RadioButton31 ]->isChecked())
       {
-       ok = mySpinBox[ SpinBox31 ]->isValid( msg, !IsPreview() ) && ok;
-       ok = mySpinBox[ SpinBox32 ]->isValid( msg, !IsPreview() ) && ok;
+       ok = mySpinBox[ SpinBox31 ]->isValid( msg, absentParams, !IsPreview() ) && ok;
+       ok = mySpinBox[ SpinBox32 ]->isValid( msg, absentParams, !IsPreview() ) && ok;
       }
       else
       {
-       ok = mySpinBox[ SpinBox33 ]->isValid( msg, !IsPreview() ) && ok;
-       ok = mySpinBox[ SpinBox34 ]->isValid( msg, !IsPreview() ) && ok;
+       ok = mySpinBox[ SpinBox33 ]->isValid( msg, absentParams, !IsPreview() ) && ok;
+       ok = mySpinBox[ SpinBox34 ]->isValid( msg, absentParams, !IsPreview() ) && ok;
       }
       return !myShape->_is_nil() && myFaces.Extent() > 0 && ok;
     case 3:
       if (myRadioButton[ RadioButton41 ]->isChecked())
       {
-       ok = mySpinBox[ SpinBox41 ]->isValid( msg, !IsPreview() ) && ok;
-       ok = mySpinBox[ SpinBox42 ]->isValid( msg, !IsPreview() ) && ok;
+       ok = mySpinBox[ SpinBox41 ]->isValid( msg, absentParams, !IsPreview() ) && ok;
+       ok = mySpinBox[ SpinBox42 ]->isValid( msg, absentParams, !IsPreview() ) && ok;
       }
       else
       {
-       ok = mySpinBox[ SpinBox43 ]->isValid( msg, !IsPreview() ) && ok;
-       ok = mySpinBox[ SpinBox44 ]->isValid( msg, !IsPreview() ) && ok;
+       ok = mySpinBox[ SpinBox43 ]->isValid( msg, absentParams, !IsPreview() ) && ok;
+       ok = mySpinBox[ SpinBox44 ]->isValid( msg, absentParams, !IsPreview() ) && ok;
       }
       return !myShape->_is_nil() && myEdges.Extent() > 0 && ok;
     default: return false;
index dfbe25d922f48e2560074e527bac46d6df197903..64a5ea52af09f6e09b82de7d697caa603e1e094a 100644 (file)
@@ -63,7 +63,7 @@ public:
 protected:
   // redefined from GEOMBase_Helper
   virtual                             GEOM::GEOM_IOperations_ptr createOperation();
-  virtual                             bool isValid( QString& );
+  virtual                             bool isValid( QString&, QStringList& );
   virtual                             bool execute( ObjectList& );    
 
 private slots:
index 0c8517e3889fb9a287a60f57f3fe1e5f6f3c14a1..4550f8648df8ee69ce2b0675b82771a9b093a6d2 100644 (file)
@@ -587,30 +587,30 @@ GEOM::GEOM_IOperations_ptr OperationGUI_FilletDlg::createOperation()
 // function : isValid()
 // purpose  : Verify validity of input data
 //=================================================================================
-bool OperationGUI_FilletDlg::isValid (QString& msg)
+bool OperationGUI_FilletDlg::isValid (QString& msg, QStringList& absentParams)
 {
   bool ok = true;
   switch (getConstructorId())
   {
     case 0:
-      ok = Group1->SpinBox_DX->isValid( msg, !IsPreview() ) && ok;
+      ok = Group1->SpinBox_DX->isValid( msg, absentParams, !IsPreview() ) && ok;
       return !myShape->_is_nil() && ok;
     case 1:
       if (Group2->RadioButton1->isChecked())
-       ok = Group2->SpinBox_DX->isValid( msg, !IsPreview() );
+       ok = Group2->SpinBox_DX->isValid( msg, absentParams, !IsPreview() );
       else
       {
-       ok = Group2->SpinBox_DY->isValid( msg, !IsPreview() ) && ok;
-       ok = Group2->SpinBox_DZ->isValid( msg, !IsPreview() ) && ok;
+       ok = Group2->SpinBox_DY->isValid( msg, absentParams, !IsPreview() ) && ok;
+       ok = Group2->SpinBox_DZ->isValid( msg, absentParams, !IsPreview() ) && ok;
       }
       return !myShape->_is_nil() && myEdges.Extent() > 0 && ok;
     case 2:
       if (Group3->RadioButton1->isChecked())
-       ok = Group3->SpinBox_DX->isValid( msg, !IsPreview() );
+       ok = Group3->SpinBox_DX->isValid( msg, absentParams, !IsPreview() );
       else
       {
-       ok = Group3->SpinBox_DY->isValid( msg, !IsPreview() ) && ok;
-       ok = Group3->SpinBox_DZ->isValid( msg, !IsPreview() ) && ok;
+       ok = Group3->SpinBox_DY->isValid( msg, absentParams, !IsPreview() ) && ok;
+       ok = Group3->SpinBox_DZ->isValid( msg, absentParams, !IsPreview() ) && ok;
       }
       return !myShape->_is_nil() && myFaces.Extent() > 0 && ok;
     default: return false;
index 5a5a71a333442245e3287c8fde8980be76fc42ee..7f8dd40f5aa930e2a684ad43693a803c311e8ea8 100644 (file)
@@ -48,7 +48,7 @@ public:
 protected:
   // redefined from GEOMBase_Helper
   virtual                             GEOM::GEOM_IOperations_ptr createOperation();
-  virtual                             bool isValid( QString& );
+  virtual                             bool isValid( QString&, QStringList& );
   virtual                             bool execute( ObjectList& );
 
 private slots:
index 1409fae4f221f5ee203582ba1c00e81e8abd55eb..c6078f36475c2ea31db2b6092d39c966b1e2b1df 100644 (file)
@@ -423,14 +423,14 @@ GEOM::GEOM_IOperations_ptr PrimitiveGUI_BoxDlg::createOperation()
 // function : isValid
 // purpose  :
 //=================================================================================
-bool PrimitiveGUI_BoxDlg::isValid (QString& msg)
+bool PrimitiveGUI_BoxDlg::isValid (QString& msg, QStringList& absentParams)
 {
   bool ok = true;
   if( getConstructorId() == 1 )
   {
-    ok = GroupDimensions->SpinBox_DX->isValid( msg, !IsPreview() ) && ok;
-    ok = GroupDimensions->SpinBox_DY->isValid( msg, !IsPreview() ) && ok;
-    ok = GroupDimensions->SpinBox_DZ->isValid( msg, !IsPreview() ) && ok;
+    ok = GroupDimensions->SpinBox_DX->isValid( msg, absentParams, !IsPreview() ) && ok;
+    ok = GroupDimensions->SpinBox_DY->isValid( msg, absentParams, !IsPreview() ) && ok;
+    ok = GroupDimensions->SpinBox_DZ->isValid( msg, absentParams, !IsPreview() ) && ok;
 
     ok = fabs( GroupDimensions->SpinBox_DX->value() ) > Precision::Confusion() && ok;
     ok = fabs( GroupDimensions->SpinBox_DY->value() ) > Precision::Confusion() && ok;
index 8cb75c19b878799e15ac3d0dd206908e7f6f2d7f..bb9d8cbf22628c6418142394c0aa999abbb73919 100644 (file)
@@ -46,7 +46,7 @@ public:
 protected:
   // redefined from GEOMBase_Helper
   virtual GEOM::GEOM_IOperations_ptr createOperation();
-  virtual bool                       isValid( QString& );
+  virtual bool                       isValid( QString&, QStringList& );
   virtual bool                       execute( ObjectList& );
   virtual void                       addSubshapesToStudy();
 
index 1f3ad91136e4ca56d45593060e05116191677fe5..436d142fbcee28adb0f77698ebe2ef37a069a349 100644 (file)
@@ -439,7 +439,7 @@ GEOM::GEOM_IOperations_ptr  PrimitiveGUI_ConeDlg::createOperation()
 // function : isValid
 // purpose  :
 //=================================================================================
-bool  PrimitiveGUI_ConeDlg::isValid (QString& msg)
+bool  PrimitiveGUI_ConeDlg::isValid (QString& msg, QStringList& absentParams)
 {
   if (!getRadius1() && !getRadius2())
     return false;
@@ -447,15 +447,15 @@ bool  PrimitiveGUI_ConeDlg::isValid (QString& msg)
   bool ok = true;
   if( getConstructorId() == 0 )
   {
-    ok = GroupPoints->SpinBox_DX->isValid( msg, !IsPreview() ) && ok;
-    ok = GroupPoints->SpinBox_DY->isValid( msg, !IsPreview() ) && ok;
-    ok = GroupPoints->SpinBox_DZ->isValid( msg, !IsPreview() ) && ok;
+    ok = GroupPoints->SpinBox_DX->isValid( msg, absentParams, !IsPreview() ) && ok;
+    ok = GroupPoints->SpinBox_DY->isValid( msg, absentParams, !IsPreview() ) && ok;
+    ok = GroupPoints->SpinBox_DZ->isValid( msg, absentParams, !IsPreview() ) && ok;
   }
   else if( getConstructorId() == 1 )
   {
-    ok = GroupDimensions->SpinBox_DX->isValid( msg, !IsPreview() ) && ok;
-    ok = GroupDimensions->SpinBox_DY->isValid( msg, !IsPreview() ) && ok;
-    ok = GroupDimensions->SpinBox_DZ->isValid( msg, !IsPreview() ) && ok;
+    ok = GroupDimensions->SpinBox_DX->isValid( msg, absentParams, !IsPreview() ) && ok;
+    ok = GroupDimensions->SpinBox_DY->isValid( msg, absentParams, !IsPreview() ) && ok;
+    ok = GroupDimensions->SpinBox_DZ->isValid( msg, absentParams, !IsPreview() ) && ok;
   }
   ok = fabs( getHeight() ) > Precision::Confusion() && ok;
   return getConstructorId() == 0 ? !(myPoint->_is_nil() || myDir->_is_nil()) && ok : ok;
index 2d1d6dc83e4dc14714842f150ea4394448b6c2af..06e88f46cd1b4c2cd023664815eaa2de1d4160a8 100644 (file)
@@ -46,7 +46,7 @@ public:
 protected:
   // redefined from GEOMBase_Helper
   virtual GEOM::GEOM_IOperations_ptr createOperation();
-  virtual bool                       isValid( QString& );
+  virtual bool                       isValid( QString&, QStringList& );
   virtual bool                       execute( ObjectList& );
   virtual void                       addSubshapesToStudy();
 
index 4fab5163882dc2143782f48e1694812e84056f2c..5f9eb433bb97661f79c504936e3f7561430feeee 100644 (file)
@@ -435,18 +435,18 @@ GEOM::GEOM_IOperations_ptr PrimitiveGUI_CylinderDlg::createOperation()
 // function : isValid
 // purpose  :
 //=================================================================================
-bool PrimitiveGUI_CylinderDlg::isValid (QString& msg)
+bool PrimitiveGUI_CylinderDlg::isValid (QString& msg, QStringList& absentParams)
 {
   bool ok = true;
   if( getConstructorId() == 0 )
   {
-    ok = GroupPoints->SpinBox_DX->isValid( msg, !IsPreview() ) && ok;
-    ok = GroupPoints->SpinBox_DY->isValid( msg, !IsPreview() ) && ok;
+    ok = GroupPoints->SpinBox_DX->isValid( msg, absentParams, !IsPreview() ) && ok;
+    ok = GroupPoints->SpinBox_DY->isValid( msg, absentParams, !IsPreview() ) && ok;
   }
   else if( getConstructorId() == 1 )
   {
-    ok = GroupDimensions->SpinBox_DX->isValid( msg, !IsPreview() ) && ok;
-    ok = GroupDimensions->SpinBox_DY->isValid( msg, !IsPreview() ) && ok;
+    ok = GroupDimensions->SpinBox_DX->isValid( msg, absentParams, !IsPreview() ) && ok;
+    ok = GroupDimensions->SpinBox_DY->isValid( msg, absentParams, !IsPreview() ) && ok;
   }
   ok = fabs( getHeight() ) > Precision::Confusion() && ok;
   return getConstructorId() == 0 ? !(myPoint->_is_nil() || myDir->_is_nil()) && ok : ok;
index 0e6fc18fdcede5f9bdec38e200d70fe7f3ad6b84..2c34f1dd5547c61b7f340bd1d1ab0c449cf56def 100644 (file)
@@ -46,7 +46,7 @@ public:
 protected:
   // redefined from GEOMBase_Helper
   virtual GEOM::GEOM_IOperations_ptr createOperation();
-  virtual bool                       isValid( QString& );
+  virtual bool                       isValid( QString&, QStringList& );
   virtual bool                       execute( ObjectList& );
   virtual void                       addSubshapesToStudy();
 
index 3c98df4bb87826559c251b5e96349cc4f0d314b9..5258e16d512f4816ff2daf8296f44a56abc76769 100755 (executable)
@@ -543,13 +543,13 @@ static bool isEqual (const GEOM::GEOM_Object_var& thePnt1, const GEOM::GEOM_Obje
 // function : isValid
 // purpose  :
 //=================================================================================
-bool PrimitiveGUI_DiskDlg::isValid (QString& msg)
+bool PrimitiveGUI_DiskDlg::isValid (QString& msg, QStringList& absentParams)
 {
   bool ok = true;
   if( getConstructorId() == 0 )
-    ok = GroupDimensions->SpinBox_DX->isValid( msg, !IsPreview() ) && ok;
+    ok = GroupDimensions->SpinBox_DX->isValid( msg, absentParams, !IsPreview() ) && ok;
   else if( getConstructorId() == 1 )
-    ok = GroupPntVecR->SpinBox_DX->isValid( msg, !IsPreview() ) && ok;
+    ok = GroupPntVecR->SpinBox_DX->isValid( msg, absentParams, !IsPreview() ) && ok;
 
   const int id = getConstructorId();
   if (id == 0)
index 83ddb2df0f22a4ff3463b8f8e92b8cb74aff4edc..5fb9f60b332cf0abf86d3c97fb306831862effd6 100755 (executable)
@@ -48,7 +48,7 @@ public:
 protected:
   // redefined from GEOMBase_Helper
   virtual GEOM::GEOM_IOperations_ptr createOperation();
-  virtual bool                       isValid( QString& );
+  virtual bool                       isValid( QString&, QStringList& );
   virtual bool                       execute( ObjectList& );
   
   virtual void                       addSubshapesToStudy();
index 0ac3a49a83077ea96c22d6fe2e05ba3350eba407..eb1c542a38bc50d9056c9f6ac39253cc7432ca97 100755 (executable)
@@ -458,18 +458,18 @@ GEOM::GEOM_IOperations_ptr PrimitiveGUI_FaceDlg::createOperation()
 // function : isValid
 // purpose  :
 //=================================================================================
-bool PrimitiveGUI_FaceDlg::isValid( QString& msg )
+bool PrimitiveGUI_FaceDlg::isValid( QString& msg, QStringList& absentParams )
 {
   bool ok = true;
   if( getConstructorId() == 0 )
   {
-    ok = GroupDimensions->SpinBox_DX->isValid( msg, !IsPreview() ) && ok;
-    ok = GroupDimensions->SpinBox_DY->isValid( msg, !IsPreview() ) && ok;
+    ok = GroupDimensions->SpinBox_DX->isValid( msg, absentParams, !IsPreview() ) && ok;
+    ok = GroupDimensions->SpinBox_DY->isValid( msg, absentParams, !IsPreview() ) && ok;
   }
   else if( getConstructorId() == 1 )
   {
-    ok = GroupPlane->SpinBox_DX->isValid( msg, !IsPreview() ) && ok;
-    ok = GroupPlane->SpinBox_DY->isValid( msg, !IsPreview() ) && ok;
+    ok = GroupPlane->SpinBox_DX->isValid( msg, absentParams, !IsPreview() ) && ok;
+    ok = GroupPlane->SpinBox_DY->isValid( msg, absentParams, !IsPreview() ) && ok;
   }
 
   const int id = getConstructorId();
index 90d034e8b822abbd5f8fa8058559271cfa4dac72..bf55087f5667eb738a22d1175eb6aa6632a65614 100755 (executable)
@@ -47,7 +47,7 @@ public:
 protected:
   // redefined from GEOMBase_Helper
   virtual GEOM::GEOM_IOperations_ptr createOperation();
-  virtual bool                       isValid( QString& );
+  virtual bool                       isValid( QString&, QStringList& );
   virtual bool                       execute( ObjectList& );
   virtual void                       addSubshapesToStudy();
     
index 65a3d295873808e29b05bb3e116ce1eddb569e32..1ff802fa940dc8a3c293167dec2f71df61c08ddf 100644 (file)
@@ -377,13 +377,13 @@ GEOM::GEOM_IOperations_ptr PrimitiveGUI_SphereDlg::createOperation()
 // function : isValid
 // purpose  :
 //=================================================================================
-bool PrimitiveGUI_SphereDlg::isValid( QString& msg  )
+bool PrimitiveGUI_SphereDlg::isValid( QString& msg, QStringList& absentParams )
 {
   bool ok = true;
   if( getConstructorId() == 0 )
-    ok = GroupPoints->SpinBox_DX->isValid( msg, !IsPreview() ) && ok;
+    ok = GroupPoints->SpinBox_DX->isValid( msg, absentParams, !IsPreview() ) && ok;
   else if( getConstructorId() == 1 )
-    ok = GroupDimensions->SpinBox_DX->isValid( msg, !IsPreview() ) && ok;
+    ok = GroupDimensions->SpinBox_DX->isValid( msg, absentParams, !IsPreview() ) && ok;
   return getConstructorId() == 0 ? !myPoint->_is_nil() && ok : ok;
 }
 
index 80ffe3f272a4cb7f170cf5858487972a97d1463a..0eea01a9ea901adf93edf11c678a87f83dae0da5 100644 (file)
@@ -46,7 +46,7 @@ public:
 protected:
   // redefined from GEOMBase_Helper
   virtual GEOM::GEOM_IOperations_ptr createOperation();
-  virtual bool                       isValid( QString& );
+  virtual bool                       isValid( QString&, QStringList& );
   virtual bool                       execute( ObjectList& );
   virtual void                       addSubshapesToStudy();
 
index f286e5c5f1f8e7020b504a1d57748d27f6f708ed..939d62761197e56005a757daf394627e48368800 100644 (file)
@@ -432,18 +432,18 @@ GEOM::GEOM_IOperations_ptr PrimitiveGUI_TorusDlg::createOperation()
 // function : isValid
 // purpose  :
 //=================================================================================
-bool PrimitiveGUI_TorusDlg::isValid (QString& msg)
+bool PrimitiveGUI_TorusDlg::isValid (QString& msg, QStringList& absentParams)
 {
   bool ok = true;
   if( getConstructorId() == 0 )
   {
-    ok = GroupPoints->SpinBox_DX->isValid( msg, !IsPreview() ) && ok;
-    ok = GroupPoints->SpinBox_DY->isValid( msg, !IsPreview() ) && ok;
+    ok = GroupPoints->SpinBox_DX->isValid( msg, absentParams, !IsPreview() ) && ok;
+    ok = GroupPoints->SpinBox_DY->isValid( msg, absentParams, !IsPreview() ) && ok;
   }
   else if( getConstructorId() == 1 )
   {
-    ok = GroupDimensions->SpinBox_DX->isValid( msg, !IsPreview() ) && ok;
-    ok = GroupDimensions->SpinBox_DY->isValid( msg, !IsPreview() ) && ok;
+    ok = GroupDimensions->SpinBox_DX->isValid( msg, absentParams, !IsPreview() ) && ok;
+    ok = GroupDimensions->SpinBox_DY->isValid( msg, absentParams, !IsPreview() ) && ok;
   }
   return getConstructorId() == 0 ? !(myPoint->_is_nil() || myDir->_is_nil()) && ok : ok;
 }
index c173b0edfb995523798d8a46c7f0f70ab5cb9e1c..265fb41791e713cf88bec0e3a7d326f3be92c70c 100644 (file)
@@ -46,7 +46,7 @@ public:
 protected:
   // redefined from GEOMBase_Helper
   virtual GEOM::GEOM_IOperations_ptr createOperation();
-  virtual bool                       isValid( QString& );
+  virtual bool                       isValid( QString&, QStringList& );
   virtual bool                       execute( ObjectList& );
   virtual void                       addSubshapesToStudy();
 
index d104c80b90ea5ba1d6afb155130992dac763d801..9668bd57b23d8eb8ec941368d2d5a018f3c4b741 100644 (file)
@@ -351,9 +351,9 @@ GEOM::GEOM_IOperations_ptr RepairGUI_DivideEdgeDlg::createOperation()
 // function : isValid
 // purpose  :
 //=================================================================================
-bool RepairGUI_DivideEdgeDlg::isValid( QString& msg )
+bool RepairGUI_DivideEdgeDlg::isValid( QString& msg, QStringList& absentParams )
 {
-  bool ok = myValEdt->isValid( msg, !IsPreview() );
+  bool ok = myValEdt->isValid( msg, absentParams, !IsPreview() );
   return !myObject->_is_nil() && ok;
 }
 
index d2a71bf3594bcb695bb0eeee14de178a55b342f5..4ebb23515d3c094baa2f0deffd797c64958c2cdb 100644 (file)
@@ -47,7 +47,7 @@ public:
 protected:
   // redefined from GEOMBase_Helper
   virtual GEOM::GEOM_IOperations_ptr createOperation();
-  virtual bool                       isValid( QString& );
+  virtual bool                       isValid( QString&, QStringList& );
   virtual bool                       execute( ObjectList& );
   
 private:
index a9d20a4ac4246f9436fbf9a6923978bdd2428201..59e243f0ad6b6dab09837ae50881268868af1afb 100644 (file)
@@ -381,19 +381,19 @@ GEOM::GEOM_IOperations_ptr RepairGUI_GlueDlg::createOperation()
 // function : isValid
 // purpose  :
 //=================================================================================
-bool RepairGUI_GlueDlg::isValid( QString& msg )
+bool RepairGUI_GlueDlg::isValid( QString& msg, QStringList& absentParams )
 {
   bool ok = true;
   double v = 0;
   switch ( getConstructorId() )
   {
   case 0:
+    ok = myTolEdt->isValid( msg, absentParams, !IsPreview() );
     v = myTolEdt->value();
-    ok = myTolEdt->isValid( msg, !IsPreview() );
     break;
   case 1:
+    ok = myTolEdt2->isValid( msg, absentParams, !IsPreview() );
     v = myTolEdt2->value(); 
-    ok = myTolEdt2->isValid( msg, !IsPreview() );
     break;
   }
   return !myObject->_is_nil() && ( IsPreview() || v > 0. ) && ok;
@@ -552,11 +552,8 @@ bool RepairGUI_GlueDlg::onAcceptLocal()
     return false;
   }
 
-  QString msg;
-  if ( !isValid( msg ) ) {
-    showError( msg );
+  if( !checkIsValid() )
     return false;
-  }
 
   erasePreview( false );
 
@@ -630,11 +627,8 @@ bool RepairGUI_GlueDlg::onAcceptLocal()
 void RepairGUI_GlueDlg::onDetect()
 {
   clearTemporary();
-  QString msg;
-  if ( !isValid( msg ) ) {
-    showError( msg );
+  if( !checkIsValid( false ) )
     return;
-  }
 
   buttonOk()->setEnabled( false );
   buttonApply()->setEnabled( false );
@@ -646,6 +640,7 @@ void RepairGUI_GlueDlg::onDetect()
   for ( int i = 0, n = aList->length(); i < n; i++ ) 
     myTmpObjs.push_back(GEOM::GEOM_Object::_duplicate(aList[i]));
   
+  QString msg;
   if ( myTmpObjs.size() > 0  ) {
     msg = tr( "FACES_FOR_GLUING_ARE_DETECTED" ).arg( myTmpObjs.size() );
     mySubShapesChk->setChecked( true );
index 8d838ab85b6fc6a475416238a8cf6896d50d795a..e063998946362367ac0808eda4854fd59faa442a 100644 (file)
@@ -48,7 +48,7 @@ public:
 protected:
   // redefined from GEOMBase_Helper
   virtual GEOM::GEOM_IOperations_ptr createOperation();
-  virtual bool                       isValid( QString& );
+  virtual bool                       isValid( QString&, QStringList& );
   virtual bool                       execute( ObjectList& );
   virtual void                       restoreSubShapes( SALOMEDS::Study_ptr, SALOMEDS::SObject_ptr );
 
index 019d77f0e9a7626eb547c755c30ecceff06a65d7..597ccc5212260b80072431567516a09ef2c06e6d 100644 (file)
@@ -265,10 +265,10 @@ GEOM::GEOM_IOperations_ptr RepairGUI_SewingDlg::createOperation()
 // function : isValid
 // purpose  :
 //=================================================================================
-bool RepairGUI_SewingDlg::isValid( QString& msg )
+bool RepairGUI_SewingDlg::isValid( QString& msg, QStringList& absentParams )
 {
   myClosed = -1;
-  bool ok = myTolEdt->isValid( msg, !IsPreview() );
+  bool ok = myTolEdt->isValid( msg, absentParams, !IsPreview() );
   return !myObject->_is_nil() && ( IsPreview() || myTolEdt->value() > 0. ) && ok;
 }
 
index 3bd6dfb7e85e7feb06bbf8700d0e2a255387aad2..09c2afa6b9c8d3b1eca9e1c7c2c05eea78d4fde3 100644 (file)
@@ -47,7 +47,7 @@ public:
 protected:
   // redefined from GEOMBase_Helper
   virtual GEOM::GEOM_IOperations_ptr createOperation();
-  virtual bool                       isValid( QString& );
+  virtual bool                       isValid( QString&, QStringList& );
   virtual bool                       execute( ObjectList& );
   
 private:
index 2dec5a40b505c7feb8015d604ffac87fbc843627..a65884560fe2d34cd463d5b6c6892eab8bf9a25b 100755 (executable)
@@ -559,7 +559,7 @@ GEOM::GEOM_IOperations_ptr RepairGUI_ShapeProcessDlg::createOperation()
 // function : isValid
 // purpose  :
 //=================================================================================
-bool RepairGUI_ShapeProcessDlg::isValid( QString& msg )
+bool RepairGUI_ShapeProcessDlg::isValid( QString& msg, QStringList& absentParams )
 {
   bool ok = true;
   QMapIterator<QString,QStringList> aMapIter( myValMap );
@@ -571,9 +571,9 @@ bool RepairGUI_ShapeProcessDlg::isValid( QString& msg )
       const QString& aParam = aListIter.next();
       QWidget* aControl = getControl( aParam );
       if ( qobject_cast<SalomeApp_DoubleSpinBox*>( aControl ) )
-       ok = qobject_cast<SalomeApp_DoubleSpinBox*>( aControl )->isValid( msg, !IsPreview() ) && ok;
+       ok = qobject_cast<SalomeApp_DoubleSpinBox*>( aControl )->isValid( msg, absentParams, !IsPreview() ) && ok;
       else if ( qobject_cast<SalomeApp_IntSpinBox*>( aControl ) )
-       ok = qobject_cast<SalomeApp_IntSpinBox*>( aControl )->isValid( msg, !IsPreview() ) && ok;
+       ok = qobject_cast<SalomeApp_IntSpinBox*>( aControl )->isValid( msg, absentParams, !IsPreview() ) && ok;
     }
   }
 
index e5fd0e902046ca60a96b1fbe7ec6aae34c75000c..4ace66eddab3e52df5736e9e671f5863adddced3 100755 (executable)
@@ -52,7 +52,7 @@ public:
 protected:
   // redefined from GEOMBase_Helper
   virtual GEOM::GEOM_IOperations_ptr createOperation();
-  virtual bool                       isValid( QString& );
+  virtual bool                       isValid( QString&, QStringList& );
   virtual bool                       execute( ObjectList&  );
   
 private:
index 9ff7f31e0967598883bc8491e8cc73d15f78a395..24dc1e2154a7da36037bf5e13b11a185a1b476c0 100644 (file)
@@ -538,18 +538,18 @@ GEOM::GEOM_IOperations_ptr TransformationGUI_MultiRotationDlg::createOperation()
 // function : isValid
 // purpose  :
 //=================================================================================
-bool TransformationGUI_MultiRotationDlg::isValid (QString& msg)
+bool TransformationGUI_MultiRotationDlg::isValid (QString& msg, QStringList& absentParams)
 {
   bool ok = true;
   switch(getConstructorId()){
   case 0:
-    ok = GroupPoints->SpinBox_DX->isValid( msg, !IsPreview() ) && ok;
+    ok = GroupPoints->SpinBox_DX->isValid( msg, absentParams, !IsPreview() ) && ok;
     break;
   case 1:                                           
-    ok = GroupDimensions->SpinBox_DX1->isValid( msg, !IsPreview() ) && ok;
-    ok = GroupDimensions->SpinBox_DY1->isValid( msg, !IsPreview() ) && ok;
-    ok = GroupDimensions->SpinBox_DX2->isValid( msg, !IsPreview() ) && ok;
-    ok = GroupDimensions->SpinBox_DY2->isValid( msg, !IsPreview() ) && ok;        
+    ok = GroupDimensions->SpinBox_DX1->isValid( msg, absentParams, !IsPreview() ) && ok;
+    ok = GroupDimensions->SpinBox_DY1->isValid( msg, absentParams, !IsPreview() ) && ok;
+    ok = GroupDimensions->SpinBox_DX2->isValid( msg, absentParams, !IsPreview() ) && ok;
+    ok = GroupDimensions->SpinBox_DY2->isValid( msg, absentParams, !IsPreview() ) && ok;        
     break;
   }
   return !(myBase->_is_nil() || myVector->_is_nil()) && ok;
index 6e2c319df26076cd82c8717e691d39c8143bc659..e3fb24bb743621dc20fa97f7deeb25502f4a6bfa 100644 (file)
@@ -47,7 +47,7 @@ public:
 protected:
   // redefined from GEOMBase_Helper
   virtual GEOM::GEOM_IOperations_ptr createOperation();
-  virtual bool                       isValid( QString& );
+  virtual bool                       isValid( QString&, QStringList& );
   virtual bool                       execute( ObjectList& );
   virtual void                       addSubshapesToStudy();
 
index 518fa32ea68fd04548bd5ee1639cfdd4d18804d6..024aab303f2cf1d072d85f160deb21def3f9bdcb 100644 (file)
@@ -638,22 +638,22 @@ GEOM::GEOM_IOperations_ptr TransformationGUI_MultiTranslationDlg::createOperatio
 // function : isValid
 // purpose  :
 //=================================================================================
-bool TransformationGUI_MultiTranslationDlg::isValid (QString& msg)
+bool TransformationGUI_MultiTranslationDlg::isValid (QString& msg, QStringList& absentParams)
 {
   int aConstructorId = getConstructorId();
   
   if (aConstructorId == 0) {
     bool ok = true;
-    ok = GroupPoints->SpinBox_DX->isValid( msg, !IsPreview() ) && ok;
-    ok = GroupPoints->SpinBox_DY->isValid( msg, !IsPreview() ) && ok;
+    ok = GroupPoints->SpinBox_DX->isValid( msg, absentParams, !IsPreview() ) && ok;
+    ok = GroupPoints->SpinBox_DY->isValid( msg, absentParams, !IsPreview() ) && ok;
     return !(myBase->_is_nil() || myVectorU->_is_nil()) && ok;
   }
   else if (aConstructorId == 1) {
     bool ok = true;
-    ok = GroupDimensions->SpinBox_DX1->isValid( msg, !IsPreview() ) && ok;
-    ok = GroupDimensions->SpinBox_DY1->isValid( msg, !IsPreview() ) && ok;
-    ok = GroupDimensions->SpinBox_DX2->isValid( msg, !IsPreview() ) && ok;
-    ok = GroupDimensions->SpinBox_DY2->isValid( msg, !IsPreview() ) && ok;
+    ok = GroupDimensions->SpinBox_DX1->isValid( msg, absentParams, !IsPreview() ) && ok;
+    ok = GroupDimensions->SpinBox_DY1->isValid( msg, absentParams, !IsPreview() ) && ok;
+    ok = GroupDimensions->SpinBox_DX2->isValid( msg, absentParams, !IsPreview() ) && ok;
+    ok = GroupDimensions->SpinBox_DY2->isValid( msg, absentParams, !IsPreview() ) && ok;
     return !(myBase->_is_nil() || myVectorU->_is_nil() || myVectorV->_is_nil()) && ok;
   }
   return 0;
index 112147caabdd39dbbd12a27ceef098879ffca0fc..385f3ccd67bfa19fe4ed21e28642635787354c99 100644 (file)
@@ -47,7 +47,7 @@ public:
 protected:
   // redefined from GEOMBase_Helper
   virtual GEOM::GEOM_IOperations_ptr createOperation();
-  virtual bool                       isValid( QString& );
+  virtual bool                       isValid( QString&, QStringList& );
   virtual bool                       execute( ObjectList& );
   virtual void                       addSubshapesToStudy();
 
index 5121b3bc90e682f3d172053c30a684d236ce6bb4..76f1a9473786e9c563b6d63fc04bcbcbed85220e 100644 (file)
@@ -268,7 +268,7 @@ GEOM::GEOM_IOperations_ptr TransformationGUI_OffsetDlg::createOperation()
 // function : isValid
 // purpose  :
 //=================================================================================
-bool TransformationGUI_OffsetDlg::isValid( QString& msg )
+bool TransformationGUI_OffsetDlg::isValid( QString& msg, QStringList& absentParams )
 {
   //return !(myObjects.length() == 0);
   if ( myObjects.length() == 0 ) return false;
@@ -280,7 +280,7 @@ bool TransformationGUI_OffsetDlg::isValid( QString& msg )
       return false;
     }
   }
-  return GroupPoints->SpinBox_DX->isValid( msg, !IsPreview() );
+  return GroupPoints->SpinBox_DX->isValid( msg, absentParams, !IsPreview() );
 }
 
 //=================================================================================
index c83ec5fedc4c9c6a62592b1337ab127120522956..e36a6ee9f77c830ce862aa268902290a7e79bbd7 100644 (file)
@@ -46,7 +46,7 @@ public:
 protected:
   // redefined from GEOMBase_Helper
   virtual GEOM::GEOM_IOperations_ptr createOperation();
-  virtual bool                       isValid( QString& );
+  virtual bool                       isValid( QString&, QStringList& );
   virtual bool                       execute( ObjectList& );
   virtual void                       restoreSubShapes( SALOMEDS::Study_ptr, SALOMEDS::SObject_ptr );
   
index c87556f4c7d3e952562f6c0376ec9c6bf055fa7c..6849d1395b1fcd58e171cb618486d29a720e073c 100644 (file)
@@ -510,11 +510,11 @@ GEOM::GEOM_IOperations_ptr TransformationGUI_RotationDlg::createOperation()
 // function : isValid
 // purpose  :
 //=================================================================================
-bool TransformationGUI_RotationDlg::isValid (QString& msg)
+bool TransformationGUI_RotationDlg::isValid (QString& msg, QStringList& absentParams)
 {
   switch (getConstructorId()) {
   case 0: {
-    bool ok = GroupPoints->SpinBox_DX->isValid( msg, !IsPreview() );
+    bool ok = GroupPoints->SpinBox_DX->isValid( msg, absentParams, !IsPreview() );
     return myObjects.length() > 0 && !(myAxis->_is_nil()) && ok;
     break;
   }
index 9b774f704773b5204038b84eb5009733cad96cfb..c45cd2d1ec7bd8531a0edc0680417eb77cfe0477 100644 (file)
@@ -46,7 +46,7 @@ public:
 protected:
   // redefined from GEOMBase_Helper
   virtual GEOM::GEOM_IOperations_ptr createOperation();
-  virtual bool                       isValid( QString& );
+  virtual bool                       isValid( QString&, QStringList& );
   virtual bool                       execute( ObjectList& );
   virtual void                       addSubshapesToStudy();
   virtual void                       restoreSubShapes( SALOMEDS::Study_ptr, SALOMEDS::SObject_ptr );
index 63ba25638d52711babc233dcf5b761d0dc4fb11c..7c12e7c539e53688b7b1991a371fd72cc8ead9d7 100644 (file)
@@ -462,18 +462,18 @@ GEOM::GEOM_IOperations_ptr TransformationGUI_ScaleDlg::createOperation()
 // function : isValid
 // purpose  :
 //=================================================================================
-bool TransformationGUI_ScaleDlg::isValid (QString& msg)
+bool TransformationGUI_ScaleDlg::isValid (QString& msg, QStringList& absentParams)
 {
   // && !myPoint->_is_nil()
   if (getConstructorId() == 0) {
-    bool ok = SpinBox_FX->isValid( msg, !IsPreview() );
+    bool ok = SpinBox_FX->isValid( msg, absentParams, !IsPreview() );
     return myObjects.length() > 0 && fabs(SpinBox_FX->value()) > 0.00001 && ok;
   }
 
   bool ok = true;
-  ok = SpinBox_FX->isValid( msg, !IsPreview() ) && ok;
-  ok = SpinBox_FY->isValid( msg, !IsPreview() ) && ok;
-  ok = SpinBox_FZ->isValid( msg, !IsPreview() ) && ok;
+  ok = SpinBox_FX->isValid( msg, absentParams, !IsPreview() ) && ok;
+  ok = SpinBox_FY->isValid( msg, absentParams, !IsPreview() ) && ok;
+  ok = SpinBox_FZ->isValid( msg, absentParams, !IsPreview() ) && ok;
   return myObjects.length() > 0 &&
     fabs(SpinBox_FX->value()) > 0.00001 &&
     fabs(SpinBox_FY->value()) > 0.00001 &&
index 0c22428d0291d47b0c40885a9f1ac646c734ca15..ba5b31689a5db6bb502d33808046e82b4e0f0417 100644 (file)
@@ -51,7 +51,7 @@ public:
 protected:
   // redefined from GEOMBase_Helper
   virtual GEOM::GEOM_IOperations_ptr createOperation();
-  virtual bool                       isValid( QString& );
+  virtual bool                       isValid( QString&, QStringList& );
   virtual bool                       execute( ObjectList& );
   virtual void                       addSubshapesToStudy();
   virtual void                       restoreSubShapes( SALOMEDS::Study_ptr, SALOMEDS::SObject_ptr );
index d2067f3bcd36bed5c725fbe7b6cd7e44ca0b0af0..0088d849fb2d95435334b53e0360a7ac928f7af5 100644 (file)
@@ -518,7 +518,7 @@ GEOM::GEOM_IOperations_ptr TransformationGUI_TranslationDlg::createOperation()
 // function : isValid
 // purpose  :
 //=================================================================================
-bool TransformationGUI_TranslationDlg::isValid (QString& msg)
+bool TransformationGUI_TranslationDlg::isValid (QString& msg, QStringList& absentParams)
 {
   int aConstructorId = getConstructorId();
 
@@ -526,16 +526,16 @@ bool TransformationGUI_TranslationDlg::isValid (QString& msg)
   case 0: 
     {
       bool ok = true;
-      ok = GroupPoints->SpinBox1->isValid( msg, !IsPreview() ) && ok;
-      ok = GroupPoints->SpinBox2->isValid( msg, !IsPreview() ) && ok;
-      ok = GroupPoints->SpinBox3->isValid( msg, !IsPreview() ) && ok;
+      ok = GroupPoints->SpinBox1->isValid( msg, absentParams, !IsPreview() ) && ok;
+      ok = GroupPoints->SpinBox2->isValid( msg, absentParams, !IsPreview() ) && ok;
+      ok = GroupPoints->SpinBox3->isValid( msg, absentParams, !IsPreview() ) && ok;
       return myObjects.length() > 0 && ok;
     }
   case 1:
     return myObjects.length() > 0 && !(myPoint1->_is_nil() || myPoint2->_is_nil());
   case 2:
     {
-      bool ok = GroupPoints->SpinBox3->isValid( msg, !IsPreview() );
+      bool ok = GroupPoints->SpinBox3->isValid( msg, absentParams, !IsPreview() );
       return myObjects.length() > 0 && !(myVector->_is_nil()) && ok;
     }
   default:
index e08425b5ac9ce98a10aed922414d587fb2184c0a..fdaaedda1bddcb3ba9bcfb483bb495a8634bbbd9 100644 (file)
@@ -46,7 +46,7 @@ public:
 protected:
   // redefined from GEOMBase_Helper
   virtual GEOM::GEOM_IOperations_ptr createOperation();
-  virtual bool                       isValid( QString& );
+  virtual bool                       isValid( QString&, QStringList& );
   virtual bool                       execute( ObjectList& );
   virtual void                       addSubshapesToStudy();
   virtual void                       restoreSubShapes( SALOMEDS::Study_ptr, SALOMEDS::SObject_ptr );