X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FXGUI%2FXGUI_PartDataModel.h;h=0c857f95b83e153507b30e3d9da30a9e56370ebc;hb=a398103d11950df8cb50eeea49942237eb16edcf;hp=f81f303f40fe36c4fb5611c328f859cf9e81249f;hpb=c80e8ac643930b858f4f653e2659896ba587b165;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_PartDataModel.h b/src/XGUI/XGUI_PartDataModel.h index f81f303f4..0c857f95b 100644 --- a/src/XGUI/XGUI_PartDataModel.h +++ b/src/XGUI/XGUI_PartDataModel.h @@ -17,7 +17,7 @@ public: XGUI_TopDataModel(const boost::shared_ptr& theDocument, QObject* theParent); virtual ~XGUI_TopDataModel(); - // Reimplementation from QAbstractItemModel + // Reimpl from QAbstractItemModel virtual QVariant data(const QModelIndex& theIndex, int theRole) const; virtual QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const; @@ -66,7 +66,7 @@ public: XGUI_PartDataModel(const boost::shared_ptr& theDocument, QObject* theParent); virtual ~XGUI_PartDataModel(); - // Reimplementation from QAbstractItemModel + // Reimpl from QAbstractItemModel virtual QVariant data(const QModelIndex& theIndex, int theRole) const; virtual QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const; @@ -94,6 +94,9 @@ public: //! Returns index corresponded to the group virtual QModelIndex findGroup(const std::string& theGroup) const; + //! Return a Part object + virtual FeaturePtr part() const; + private: boost::shared_ptr featureDocument() const; @@ -103,7 +106,10 @@ private: ParamsFolder, ParamObject, ConstructFolder, - ConstructObject + ConstructObject, + BodiesFolder, + BodieswObject, + HistoryObject }; };