Salome HOME
updated copyright message
[modules/geom.git] / src / RepairGUI / RepairGUI_UnionFacesDlg.cxx
old mode 100755 (executable)
new mode 100644 (file)
index 16c6970..ce0ce9b
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2014  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2023  CEA, EDF, OPEN CASCADE
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -237,7 +237,7 @@ void RepairGUI_UnionFacesDlg::ActivateThisDialog()
 // function : enterEvent()
 // purpose  : Mouse enter onto the dialog to activate it
 //=================================================================================
-void RepairGUI_UnionFacesDlg::enterEvent(QEvent* e)
+void RepairGUI_UnionFacesDlg::enterEvent(QEvent*)
 {
   if ( !mainFrame()->GroupConstructors->isEnabled() )
     ActivateThisDialog();
@@ -263,14 +263,14 @@ void RepairGUI_UnionFacesDlg::activateSelection()
 //=================================================================================
 GEOM::GEOM_IOperations_ptr RepairGUI_UnionFacesDlg::createOperation()
 {
-  return getGeomEngine()->GetIBlocksOperations( getStudyId() );
+  return getGeomEngine()->GetIBlocksOperations();
 }
 
 //=================================================================================
 // function : isValid
 // purpose  :
 //=================================================================================
-bool RepairGUI_UnionFacesDlg::isValid( QString& msg )
+bool RepairGUI_UnionFacesDlg::isValid( QString& /*msg*/ )
 {
   return myOkObject;
 }
@@ -294,14 +294,25 @@ bool RepairGUI_UnionFacesDlg::execute( ObjectList& objects )
 // function : restoreSubShapes
 // purpose  :
 //=================================================================================
-void RepairGUI_UnionFacesDlg::restoreSubShapes( SALOMEDS::Study_ptr   theStudy,
-                                                SALOMEDS::SObject_ptr theSObject )
+void RepairGUI_UnionFacesDlg::restoreSubShapes( SALOMEDS::SObject_ptr theSObject )
 {
   if ( mainFrame()->CheckBoxRestoreSS->isChecked() ) {
     // empty list of arguments means that all arguments should be restored
-    getGeomEngine()->RestoreSubShapesSO( theStudy, theSObject, GEOM::ListOfGO(),
+    getGeomEngine()->RestoreSubShapesSO( theSObject, GEOM::ListOfGO(),
                                          /*theFindMethod=*/GEOM::FSM_GetInPlace, // ? GetInPlaceByHistory
                                          /*theInheritFirstArg=*/true,
                                          mainFrame()->CheckBoxAddPrefix->isChecked() );
   }
 }
+
+//=================================================================================
+// function : getSourceObjects
+// purpose  : virtual method to get source objects
+//=================================================================================
+QList<GEOM::GeomObjPtr> RepairGUI_UnionFacesDlg::getSourceObjects()
+{
+  QList<GEOM::GeomObjPtr> res;
+  GEOM::GeomObjPtr aGeomObjPtr(myObject);
+  res << aGeomObjPtr;
+  return res;
+}