1 #ifndef XGUI_SelectionMgr_H
2 #define XGUI_SelectionMgr_H
5 #include <ModuleBase_Definitions.h>
7 #include <QModelIndexList>
9 #include <AIS_ListOfInteractive.hxx>
10 #include <NCollection_List.hxx>
11 #include <TopoDS_Shape.hxx>
14 class XGUI_ObjectsBrowser;
17 /**\class XGUI_SelectionMgr
19 * \brief Selection manager. Provides selection event on selection in
20 * Object Browser and Viewer
22 class XGUI_EXPORT XGUI_SelectionMgr : public QObject
26 XGUI_SelectionMgr(XGUI_Workshop* theParent);
27 virtual ~XGUI_SelectionMgr();
29 XGUI_Selection* selection() const { return mySelection; }
31 //! Connects the manager to all viewers accessible by Workshop
32 void connectViewers();
35 //! Emited when selection in a one of viewers was changed
36 void selectionChanged();
39 void onObjectBrowserSelection();
40 void onViewerSelection();
43 XGUI_Workshop* myWorkshop;
44 XGUI_Selection* mySelection;