Salome HOME
Remove redundant code
[modules/geom.git] / src / PrimitiveGUI / PrimitiveGUI_DiskDlg.cxx
index 22ae5e2f0ec22bff6495bd96d3fd6b8644fb01df..4101be2725a2bb94710f19eb510a4e0b50a7597b 100755 (executable)
@@ -1,9 +1,9 @@
-// Copyright (C) 2007-2013  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2015  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 // License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
 //
 // This library is distributed in the hope that it will be useful,
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -317,32 +317,32 @@ void PrimitiveGUI_DiskDlg::SelectionIntoArgument()
     disconnect(myGeomGUI->getApp()->selectionMgr(), 0, this, 0);
     myGeomGUI->getApp()->selectionMgr()->clearSelected();
     connect(myGeomGUI->getApp()->selectionMgr(), SIGNAL(currentSelectionChanged()),
-           this, SLOT(SelectionIntoArgument()));
+            this, SLOT(SelectionIntoArgument()));
     
     if (myEditCurrentArgument == GroupPntVecR->LineEdit1) {
       myPoint = aSelectedObject;
       if (myPoint && !myDir)
-       GroupPntVecR->PushButton2->click();
+        GroupPntVecR->PushButton2->click();
     }
     else if (myEditCurrentArgument == GroupPntVecR->LineEdit2) {
       myDir = aSelectedObject;
       if (myDir && !myPoint)
-       GroupPntVecR->PushButton1->click();
+        GroupPntVecR->PushButton1->click();
     }
     else if (myEditCurrentArgument == Group3Pnts->LineEdit1) {
       myPoint1 = aSelectedObject;
       if (myPoint1 && !myPoint2)
-       Group3Pnts->PushButton2->click();
+        Group3Pnts->PushButton2->click();
     }
     else if (myEditCurrentArgument == Group3Pnts->LineEdit2) {
       myPoint2 = aSelectedObject;
       if (myPoint2 && !myPoint3)
-       Group3Pnts->PushButton3->click();
+        Group3Pnts->PushButton3->click();
     }
     else if (myEditCurrentArgument == Group3Pnts->LineEdit3) {
       myPoint3 = aSelectedObject;
       if (myPoint3 && !myPoint1)
-       Group3Pnts->PushButton1->click();
+        Group3Pnts->PushButton1->click();
     }
   }
 
@@ -562,3 +562,14 @@ void PrimitiveGUI_DiskDlg::addSubshapesToStudy()
     break;
   }
 }
+
+//=================================================================================
+// function : getSourceObjects
+// purpose  : virtual method to get source objects
+//=================================================================================
+QList<GEOM::GeomObjPtr> PrimitiveGUI_DiskDlg::getSourceObjects()
+{
+  QList<GEOM::GeomObjPtr> res;
+  res << myPoint << myDir << myPoint1 << myPoint2 << myPoint3;
+  return res;
+}