]> SALOME platform Git repositories - modules/geom.git/blobdiff - src/OperationGUI/OperationGUI_GetSharedShapesDlg.cxx
Salome HOME
0022377: EDF 2752 GEOM: Add a preference in order to automatically unpublished parent...
[modules/geom.git] / src / OperationGUI / OperationGUI_GetSharedShapesDlg.cxx
index 9e39f1f7a57dcedfc76e2f3cb5b0a5da4fd04f8e..9ca2d5ab302330a6fc7db4adb45a05151a871a96 100644 (file)
@@ -403,3 +403,18 @@ QString OperationGUI_GetSharedShapesDlg::getPrefixByType () const
 
   return aPref;
 }
+
+//=================================================================================
+// function : getSourceObjects
+// purpose  : virtual method to get source objects
+//=================================================================================
+QList<GEOM::GeomObjPtr> OperationGUI_GetSharedShapesDlg::getSourceObjects()
+{
+  QList<GEOM::GeomObjPtr> res;
+  GEOM::ListOfGO aListPtr(myListShapes);
+  for (int i = 0; i < aListPtr.length(); i++) {
+    GEOM::GeomObjPtr aGeomObjPtr(aListPtr[i]);
+    res << aGeomObjPtr;
+  }
+  return res;
+}