Salome HOME
Initial iteration for storage the back references and making concealment only on...
[modules/shaper.git] / src / XGUI / XGUI_Tools.h
index aebea7f6e37aed046c4d07e0369cb6986248bcd6..518d5e597f1da4c01ce8788164f6b4aaf108a40c 100644 (file)
@@ -5,6 +5,10 @@
 #include <QString>
 #include <QRect>
 
+#include <ModelAPI_Feature.h>
+
+#include <boost/shared_ptr.hpp>
+
 /*!
  \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