X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FXGUI_ObjectsBrowser.h;h=d92788abecde6f02730041ba7202c3690b3c1b5b;hb=92b6738b4a67f24c626b106e2bcf7651577ff2bc;hp=a59ec8bd313a8ba99e5b299d8f6b85988a5a3919;hpb=3e3fc52de000b4d8e51fdcffe7f72f82237833ad;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_ObjectsBrowser.h b/src/XGUI/XGUI_ObjectsBrowser.h index a59ec8bd3..d92788abe 100644 --- a/src/XGUI/XGUI_ObjectsBrowser.h +++ b/src/XGUI/XGUI_ObjectsBrowser.h @@ -16,7 +16,7 @@ class ModuleBase_IDocumentDataModel; class QLineEdit; class XGUI_DataModel; -#define ModuleDataModel +//#define ModuleDataModel /** * \ingroup GUI @@ -47,8 +47,7 @@ public slots: /// 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 @@ -115,7 +114,13 @@ Q_OBJECT 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 @@ -140,9 +145,6 @@ signals: /// \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);