2 #ifndef XGUI_ObjectsBrowser_H
3 #define XGUI_ObjectsBrowser_H
6 #include "XGUI_Constants.h"
10 class XGUI_DocumentDataModel;
12 /**\class XGUI_ObjectsBrowser
14 * \brief Object browser window object. Represents data tree of current data structure
16 class XGUI_EXPORT XGUI_ObjectsBrowser : public QTreeView
20 XGUI_ObjectsBrowser(QWidget* theParent);
21 virtual ~XGUI_ObjectsBrowser();
23 //! Returns Model which provides access to data objects
24 XGUI_DocumentDataModel* dataModel() const { return myDocModel; }
26 //! Returns list of currently selected features
27 QFeatureList selectedFeatures() const { return mySelectedData; }
30 //! Emited when selection is changed
31 void selectionChanged();
32 void activePartChanged(FeaturePtr thePart);
34 //! Emited on context menu request
35 void contextMenuRequested(QContextMenuEvent* theEvent);
38 virtual void mouseDoubleClickEvent(QMouseEvent* theEvent);
39 virtual void contextMenuEvent(QContextMenuEvent* theEvent);
42 //! Called when selection in Data Tree is changed
43 void onSelectionChanged(const QItemSelection& theSelected, const QItemSelection& theDeselected);
47 XGUI_DocumentDataModel* myDocModel;
49 //! List of currently selected data
50 QFeatureList mySelectedData;
52 //QModelIndex myActivePartIndex;