]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
IPAL22046 TC 5.1.5: Modify the Location - impossible to select the same Path object...
authordmv <dmv@opencascade.com>
Thu, 7 Oct 2010 12:09:43 +0000 (12:09 +0000)
committerdmv <dmv@opencascade.com>
Thu, 7 Oct 2010 12:09:43 +0000 (12:09 +0000)
src/TransformationGUI/TransformationGUI_MirrorDlg.cxx
src/TransformationGUI/TransformationGUI_PositionDlg.cxx
src/TransformationGUI/TransformationGUI_RotationDlg.cxx
src/TransformationGUI/TransformationGUI_ScaleDlg.cxx
src/TransformationGUI/TransformationGUI_TranslationDlg.cxx

index e8dcf314805b760ef84cc900de07096eb7a230c5..bead550155075e9de8cd6e60a50da36a2a6451e0 100644 (file)
@@ -197,6 +197,11 @@ bool TransformationGUI_MirrorDlg::ClickOnApply()
     return false;
 
   initName();
+
+  myObjects.length(0);
+  myEditCurrentArgument = GroupPoints->LineEdit1;
+  myEditCurrentArgument->setText("");
+
   // activate selection and connect selection manager
   ConstructorsClicked(getConstructorId());
   return true;
index feac8ab916270361517348bd3fadd486261cc751..ccbc45ab307539fcc93998adc499266e1ce7de7d 100644 (file)
@@ -300,6 +300,11 @@ bool TransformationGUI_PositionDlg::ClickOnApply()
     return false;
 
   initName();
+
+  myObjects.length(0);
+  myEditCurrentArgument = Group1->LineEdit1;
+  myEditCurrentArgument->setText("");
+
   // activate selection and connect selection manager
   ConstructorsClicked(getConstructorId());
   return true;
@@ -340,8 +345,8 @@ void TransformationGUI_PositionDlg::SelectionIntoArgument()
     else
       myEditCurrentArgument->setText(aName);
 
-    if (getConstructorId() == 2)
-      Group1->PushButton5->click();
+    /*    if (getConstructorId() == 2)
+          Group1->PushButton5->click();*/
   }
   else if (myEditCurrentArgument == Group1->LineEdit2) {
     if (aSelList.Extent() != 1)
index 1b9183a83dbda6226de67403bce5702b88d34878..e33e32d51aff8011b2e32dfa333a9b1a587287cd 100644 (file)
@@ -236,6 +236,11 @@ bool TransformationGUI_RotationDlg::ClickOnApply()
     return false;
 
   initName();
+
+  myObjects.length(0);
+  myEditCurrentArgument = GroupPoints->LineEdit1;
+  myEditCurrentArgument->setText("");
+
   // activate selection and connect selection manager
   ConstructorsClicked(getConstructorId());
   return true;
index dab7b7ca4fd4e3dc7742a50121a006d383f40159..d8f4d08b2c0855b7fd5d2da528d9d2b9c2243c61 100644 (file)
@@ -202,6 +202,9 @@ void TransformationGUI_ScaleDlg::ConstructorsClicked (int constructorId)
 {
   disconnect(myGeomGUI->getApp()->selectionMgr(), 0, this, 0);
 
+  myPoint = GEOM::GEOM_Object::_nil();
+  LineEdit2->clear();
+  
   switch (constructorId) {
   case 0: // translation an object by dx, dy, dz
     TextLabel3->setText(tr("GEOM_SCALE_FACTOR"));
@@ -258,6 +261,11 @@ bool TransformationGUI_ScaleDlg::ClickOnApply()
     return false;
 
   initName(tr("GEOM_SCALE"));
+
+  myObjects.length(0);
+  myEditCurrentArgument = LineEdit1;
+  myEditCurrentArgument->setText("");
+
   // activate selection and connect selection manager
   ConstructorsClicked(getConstructorId());
   return true;
index df10e06e16f7f5be3bb8eee2bc2f4c568da11a2e..a5f7c4d97c3b6e9dc392bd14dd1d9e00eff70e3d 100644 (file)
@@ -272,6 +272,11 @@ bool TransformationGUI_TranslationDlg::ClickOnApply()
     return false;
 
   initName();
+
+  myObjects.length(0);
+  myEditCurrentArgument = GroupPoints->LineEdit1;
+  myEditCurrentArgument->setText("");
+
   // activate selection and connect selection manager
   ConstructorsClicked(getConstructorId());
   return true;