1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
3 #ifndef XGUI_SelectionMgr_H
4 #define XGUI_SelectionMgr_H
7 #include <ModuleBase_Definitions.h>
9 #include <QModelIndexList>
11 #include <AIS_ListOfInteractive.hxx>
12 #include <NCollection_List.hxx>
13 #include <TopoDS_Shape.hxx>
16 class XGUI_ObjectsBrowser;
19 /**\class XGUI_SelectionMgr
21 * \brief Selection manager. Provides selection event on selection in
22 * Object Browser and Viewer
24 class XGUI_EXPORT XGUI_SelectionMgr : public QObject
28 XGUI_SelectionMgr(XGUI_Workshop* theParent);
29 virtual ~XGUI_SelectionMgr();
31 XGUI_Selection* selection() const
36 //! Connects the manager to all viewers accessible by Workshop
37 void connectViewers();
40 //! Emited when selection in a one of viewers was changed
41 void selectionChanged();
44 void onObjectBrowserSelection();
45 void onViewerSelection();
48 XGUI_Workshop* myWorkshop;
49 XGUI_Selection* mySelection;