X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_WidgetValidated.h;h=8c05cbb046a64055f2bf67cee0ec5aa0d22c5c2b;hb=4229e8db7828717e6a2525de807d937b7921d9a9;hp=eb0f8fa7fc2a4505ffcbc873bc40a4c36f68cbff;hpb=05b2338e0d6dd63e13c05476973f231284f5297a;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_WidgetValidated.h b/src/ModuleBase/ModuleBase_WidgetValidated.h index eb0f8fa7f..8c05cbb04 100644 --- a/src/ModuleBase/ModuleBase_WidgetValidated.h +++ b/src/ModuleBase/ModuleBase_WidgetValidated.h @@ -18,6 +18,7 @@ class QWidget; class ModuleBase_IWorkshop; +class ModuleBase_ISelection; class Config_WidgetAPI; class Handle_SelectMgr_EntityOwner; @@ -76,6 +77,16 @@ protected: /// \param theWorkshop an active workshop /// \param toActivate a flag about activation or deactivation the filters virtual void activateFilters(ModuleBase_IWorkshop* theWorkshop, const bool toActivate) const; + + /// Returns a list of selected presentations. Firstly it is obtained from the viewer, + /// if there are not selected objects in the viewer, it get the selection from the object browser. + /// If the browser has selected objects, the viewer prs objects are created with only object + /// field of the presentation initialized. The widget should accept the selection in the object + /// browser at the same way as in the viewer. + /// \param theSelection a selection, where the selected objects and presentations are found + /// \return a list of presentations + QList getSelectedEntitiesOrObjects(ModuleBase_ISelection* theSelection) const; + }; #endif /* MODULEBASE_WIDGETVALIDATED_H_ */