1 #ifndef XGUI_SelectionMgr_H
2 #define XGUI_SelectionMgr_H
5 #include "XGUI_Constants.h"
9 class XGUI_ObjectsBrowser;
11 /**\class XGUI_SelectionMgr
13 * \brief Selection manager. Provides selection event on selection in
14 * Object Browser and Viewer
16 class XGUI_EXPORT XGUI_SelectionMgr : public QObject
20 XGUI_SelectionMgr(XGUI_Workshop* theParent);
21 virtual ~XGUI_SelectionMgr();
23 //! Returns list of currently selected objects
24 QFeatureList selectedData() const { return mySelectedData; }
26 void connectObjectBrowser(XGUI_ObjectsBrowser* theOB);
29 //! Emited when selection in a one of viewers was changed
30 void selectionChanged();
33 void onSelectionChanged();
36 XGUI_Workshop* myWorkshop;
37 XGUI_ObjectsBrowser* myObjectBrowser;
39 //! List of selected features
40 QFeatureList mySelectedData;