X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FXGUI_DataTreeModel.h;h=0b8844e2f494414f3874424e701b3c5ccadd1fe7;hb=4224f4dbe7ceaefe74b5d6b79a5840a9f5df2d7a;hp=5b9f5a8394f4c2ec8c6d8fc74cab6db593ba8252;hpb=fd30229f7f40d6cc60670a4d9367324431964961;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_DataTreeModel.h b/src/XGUI/XGUI_DataTreeModel.h index 5b9f5a839..0b8844e2f 100644 --- a/src/XGUI/XGUI_DataTreeModel.h +++ b/src/XGUI/XGUI_DataTreeModel.h @@ -7,6 +7,7 @@ #include #include +#include #include #include @@ -23,14 +24,14 @@ public: //! Returns Feature object by the given Model index. //! Returns 0 if the given index is not index of a feature - virtual FeaturePtr feature(const QModelIndex& theIndex) const = 0; + virtual ObjectPtr object(const QModelIndex& theIndex) const = 0; //! Returns QModelIndex which corresponds to the given feature //! If the feature is not found then index is not valid - virtual QModelIndex featureIndex(const FeaturePtr& theFeature) const = 0; + virtual QModelIndex objectIndex(const ObjectPtr& theFeature) const = 0; //! Returns parent index of the given feature - virtual QModelIndex findParent(const FeaturePtr& theFeature) const = 0; + virtual QModelIndex findParent(const ObjectPtr& theObject) const = 0; //! Returns index corresponded to the group virtual QModelIndex findGroup(const std::string& theGroup) const = 0; @@ -60,7 +61,7 @@ public: virtual bool hasDocument(const DocumentPtr& theDoc) const = 0; //! Return a Part object - virtual FeaturePtr part() const = 0; + virtual ResultPartPtr part() const = 0; protected: //! Id of the current part object in the document