Salome HOME
Merge master branch into V9_dev.
[modules/geom.git] / src / OperationGUI / OperationGUI_FilletDlg.cxx
index 49a302a9c431330eba8ac6197cf2ba082b75ad0e..148546a231d5023b84e0ccbd1ed61459ed966bb6 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2016  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@ -6,7 +6,7 @@
 // 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
@@ -431,7 +431,7 @@ void OperationGUI_FilletDlg::SelectionIntoArgument()
   if (aSelList.Extent() == 0 && !myShape->_is_nil()) {
     disconnect(myGeomGUI->getApp()->selectionMgr(), 0, this, 0);
     ObjectList list;
-       list.push_back(myShape);
+        list.push_back(myShape);
     selectObjects(list);
     connect(myGeomGUI->getApp()->selectionMgr(), SIGNAL(currentSelectionChanged()),
             this, SLOT(SelectionIntoArgument()));
@@ -594,7 +594,7 @@ void OperationGUI_FilletDlg::enableWidgets()
 //=================================================================================
 GEOM::GEOM_IOperations_ptr OperationGUI_FilletDlg::createOperation()
 {
-  return getGeomEngine()->GetILocalOperations(getStudyId());
+  return getGeomEngine()->GetILocalOperations();
 }
 
 //=================================================================================
@@ -754,3 +754,15 @@ void OperationGUI_FilletDlg::RadioButtonClicked()
 
   processPreview();
 }
+
+//=================================================================================
+// function : getSourceObjects
+// purpose  : virtual method to get source objects
+//=================================================================================
+QList<GEOM::GeomObjPtr> OperationGUI_FilletDlg::getSourceObjects()
+{
+  QList<GEOM::GeomObjPtr> res;
+  GEOM::GeomObjPtr aGeomObjPtr(myShape);
+  res << aGeomObjPtr;
+  return res;
+}