class QLineEdit;
class XGUI_DataModel;
-#define ModuleDataModel
+//#define ModuleDataModel
/**
* \ingroup GUI
/// Commit modified data (used for renaming of objects)
virtual void commitData(QWidget* theEditor);
- /// Returns true if theObject can be renamed in theName
- bool canRename(const ObjectPtr& theObject, const QString& theName);
+ void onDoubleClick(const QModelIndex&);
protected:
/// Redefinition of virtual method
void clearContent();
/// Set Data Model for the Object Browser
+#ifdef ModuleDataModel
void setDataModel(ModuleBase_IDocumentDataModel* theModel);
+#endif
+
+public slots:
+ //! Called on Edit command request
+ void onEditItem();
signals:
//! Emited when selection is changed
/// \param thePnt a position of context menu
void onLabelContextMenuRequested(const QPoint& thePnt);
- //! Called on Edit command request
- void onEditItem();
-
//! Called when selection in Data Tree is changed
void onSelectionChanged(const QItemSelection& theSelected, const QItemSelection& theDeselected);