#include <QTreeView>
class XGUI_DocumentDataModel;
-class QLabel;
+class QLineEdit;
class XGUI_DataTree: public QTreeView
//! Emited on context menu request
void contextMenuRequested(QContextMenuEvent* theEvent);
+protected slots:
+ virtual void commitData(QWidget* theEditor);
+
protected:
virtual void mouseDoubleClickEvent(QMouseEvent* theEvent);
virtual void contextMenuEvent(QContextMenuEvent* theEvent);
XGUI_DataTree* treeView() const { return myTreeView; }
//! Activates currently selected part. Signal activePartChanged will not be sent
- void activateCurrentPart(bool toActivate);
+ void activatePart(const FeaturePtr& thePart);
signals:
//! Emited when selection is changed
void onContextMenuRequested(QContextMenuEvent* theEvent);
void onLabelContextMenuRequested(const QPoint& thePnt);
+ //! Called on Edit command request
+ void onEditItem();
+
private:
+ void closeDocNameEditing(bool toSave);
+
//! Internal model
XGUI_DocumentDataModel* myDocModel;
- QLabel* myActiveDocLbl;
+ QLineEdit* myActiveDocLbl;
XGUI_DataTree* myTreeView;
QFeatureList myFeaturesList;