X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FXGUI_Tools.h;h=518d5e597f1da4c01ce8788164f6b4aaf108a40c;hb=ed165fd07e71c11885fdc5f475a8522a5914e00d;hp=5c8be08e85065d082c519e782efa1056285032ac;hpb=23378e19cee76b189c2bfdea631002b005f3237a;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_Tools.h b/src/XGUI/XGUI_Tools.h index 5c8be08e8..518d5e597 100644 --- a/src/XGUI/XGUI_Tools.h +++ b/src/XGUI/XGUI_Tools.h @@ -5,10 +5,10 @@ #include #include +#include + #include -class TopoDS_Shape; -class ModelAPI_Feature; /*! \brief Return directory part of the file path. @@ -19,6 +19,7 @@ class ModelAPI_Feature; \param abs if true (default) \a path parameter is treated as absolute file path \return directory part of the file path */ +namespace XGUI_Tools { QString XGUI_EXPORT dir(const QString& path, bool isAbs = true); /*! @@ -56,9 +57,19 @@ QString XGUI_EXPORT addSlash(const QString& path); */ QRect XGUI_EXPORT makeRect(const int x1, const int y1, const int x2, const int y2); +/// The model concerning tools + +/*! + Returns true if the feature is a model object + \param theFeature a feature + */ +bool XGUI_EXPORT isModelObject(FeaturePtr theFeature); + /*! Returns the string presentation of the given feature \param theFeature a feature -*/ -std::string XGUI_EXPORT featureInfo(boost::shared_ptr theFeature); + */ +std::string XGUI_EXPORT featureInfo(FeaturePtr theFeature); +} + #endif