Salome HOME
updated copyright message
[modules/shaper.git] / src / XGUI / XGUI_ModuleConnector.cpp
index 36866a91eda927474d490538e3d4e00d5d9bebdc..203d860afac46c6300f1d0784c5c296c441b605d 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2014-2019  CEA/DEN, EDF R&D
+// Copyright (C) 2014-2023  CEA, EDF
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -124,19 +124,12 @@ ObjectPtr XGUI_ModuleConnector::findPresentedObject(const AISObjectPtr& theAIS)
 
 void XGUI_ModuleConnector::setSelected(const QList<ModuleBase_ViewerPrsPtr>& theValues)
 {
-  XGUI_Displayer* aDisp = myWorkshop->displayer();
   XGUI_ObjectsBrowser* aBrowser = myWorkshop->objectBrowser();
   if (theValues.isEmpty()) {
     myWorkshop->selector()->clearSelection();
     aBrowser->treeView()->clearSelection();
   } else {
-    aDisp->setSelected(theValues);
-    // Synchronise the selection with Object browser
-    QObjectPtrList anObjects;
-    foreach(ModuleBase_ViewerPrsPtr aVal, theValues) {
-      anObjects.append(aVal->object());
-    }
-    aBrowser->setObjectsSelected(anObjects);
+    myWorkshop->selector()->setSelected(theValues);
   }
 }
 
@@ -267,3 +260,8 @@ bool XGUI_ModuleConnector::isCancelEnabled() const
   }
   return isEnabled;
 }
+
+void XGUI_ModuleConnector::showHelpPage(const QString& thePage) const
+{
+  workshop()->showHelpPage(thePage);
+}