]> SALOME platform Git repositories - modules/shaper.git/blob - src/XGUI/XGUI_ObjectsBrowser.h
Salome HOME
Updated events for Model and minor other changes
[modules/shaper.git] / src / XGUI / XGUI_ObjectsBrowser.h
1
2 #ifndef XGUI_ObjectsBrowser_H
3 #define XGUI_ObjectsBrowser_H
4
5 #include "XGUI_Constants.h"
6
7 #include <QTreeView>
8
9 class XGUI_DocumentDataModel;
10
11 class XGUI_ObjectsBrowser : public QTreeView
12 {
13   Q_OBJECT
14 public:
15   XGUI_ObjectsBrowser(QWidget* theParent);
16   virtual ~XGUI_ObjectsBrowser();
17
18   XGUI_DocumentDataModel* dataModel() const { return myDocModel; }
19
20   QFeatureList selectedData() const { return mySelectedData; }
21
22 signals:
23   void selectionChanged();
24
25
26 private slots:
27   void onSelectionChanged(const QItemSelection& theSelected, const QItemSelection& theDeselected);
28
29 private:
30   XGUI_DocumentDataModel* myDocModel;
31
32   QFeatureList mySelectedData;
33 };
34
35 #endif