X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FXGUI%2FXGUI_Tools.h;h=518d5e597f1da4c01ce8788164f6b4aaf108a40c;hb=ed165fd07e71c11885fdc5f475a8522a5914e00d;hp=aebea7f6e37aed046c4d07e0369cb6986248bcd6;hpb=65350bc1b9ac17e42959fb98d650a7791b3cdf06;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_Tools.h b/src/XGUI/XGUI_Tools.h index aebea7f6e..518d5e597 100644 --- a/src/XGUI/XGUI_Tools.h +++ b/src/XGUI/XGUI_Tools.h @@ -5,6 +5,10 @@ #include #include +#include + +#include + /*! \brief Return directory part of the file path. @@ -15,6 +19,7 @@ \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); /*! @@ -52,4 +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(FeaturePtr theFeature); +} + #endif