Salome HOME
Merge branch 'master' of newgeom:newgeom
[modules/shaper.git] / src / XGUI / XGUI_SelectionMgr.h
1 #ifndef XGUI_SelectionMgr_H
2 #define XGUI_SelectionMgr_H
3
4 #include "XGUI_Constants.h"
5 #include <QObject>
6
7 class XGUI_Workshop;
8
9 /**\class XGUI_SelectionMgr
10  * \ingroup GUI
11  * \brief Selection manager. Provides selection event on selection in 
12  * Object Browser and Viewer
13  */
14 class XGUI_SelectionMgr : public QObject
15 {
16   Q_OBJECT
17 public:
18   XGUI_SelectionMgr(XGUI_Workshop* theParent);
19   virtual ~XGUI_SelectionMgr();
20
21   //! Returns list of currently selected objects
22   QFeatureList selectedData() const { return mySelectedData; }
23
24 signals:
25   //! Emited when selection in a one of viewers was changed
26   void selectionChanged();
27
28 public slots:
29   void onSelectionChanged();
30
31 private:
32   XGUI_Workshop* myWorkshop;
33
34   //! List of selected features
35   QFeatureList mySelectedData;
36 };
37
38 #endif;