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);
35 virtual void mouseDoubleClickEvent(QMouseEvent* theEvent);
38 //! Called when selection in Data Tree is changed
39 void onSelectionChanged(const QItemSelection& theSelected, const QItemSelection& theDeselected);
43 XGUI_DocumentDataModel* myDocModel;
45 //! List of currently selected data
46 QFeatureList mySelectedData;
48 //QModelIndex myActivePartIndex;