#ifndef XGUI_ObjectsBrowser_H
#define XGUI_ObjectsBrowser_H
+#include "XGUI.h"
#include "XGUI_Constants.h"
#include <QTreeView>
* \ingroup GUI
* \brief Object browser window object. Represents data tree of current data structure
*/
- class XGUI_ObjectsBrowser : public QTreeView
+ class XGUI_EXPORT XGUI_ObjectsBrowser : public QTreeView
{
Q_OBJECT
public:
XGUI_DocumentDataModel* dataModel() const { return myDocModel; }
//! Returns list of currently selected features
- QFeatureList selectedData() const { return mySelectedData; }
+ QFeatureList selectedFeatures() const { return mySelectedData; }
signals:
//! Emited when selection is changed
void selectionChanged();
+ void activePartChanged(FeaturePtr thePart);
+
+ //! Emited on context menu request
+ void contextMenuRequested(QContextMenuEvent* theEvent);
+protected:
+ virtual void mouseDoubleClickEvent(QMouseEvent* theEvent);
+ virtual void contextMenuEvent(QContextMenuEvent* theEvent);
private slots:
//! Called when selection in Data Tree is changed
//! List of currently selected data
QFeatureList mySelectedData;
+
+ //QModelIndex myActivePartIndex;
};
#endif
\ No newline at end of file