1 #ifndef XGUI_SelectionMgr_H
2 #define XGUI_SelectionMgr_H
4 #include "XGUI_Constants.h"
8 class XGUI_ObjectsBrowser;
10 /**\class XGUI_SelectionMgr
12 * \brief Selection manager. Provides selection event on selection in
13 * Object Browser and Viewer
15 class XGUI_SelectionMgr : public QObject
19 XGUI_SelectionMgr(XGUI_Workshop* theParent);
20 virtual ~XGUI_SelectionMgr();
22 //! Returns list of currently selected objects
23 QFeatureList selectedData() const { return mySelectedData; }
25 void connectObjectBrowser(XGUI_ObjectsBrowser* theOB);
28 //! Emited when selection in a one of viewers was changed
29 void selectionChanged();
32 void onSelectionChanged();
35 XGUI_Workshop* myWorkshop;
36 XGUI_ObjectsBrowser* myObjectBrowser;
38 //! List of selected features
39 QFeatureList mySelectedData;