Salome HOME
Initial iteration for storage the back references and making concealment only on...
[modules/shaper.git] / src / XGUI / XGUI_Tools.h
index 5c8be08e85065d082c519e782efa1056285032ac..518d5e597f1da4c01ce8788164f6b4aaf108a40c 100644 (file)
@@ -5,10 +5,10 @@
 #include <QString>
 #include <QRect>
 
+#include <ModelAPI_Feature.h>
+
 #include <boost/shared_ptr.hpp>
 
-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<ModelAPI_Feature> theFeature);
+ */
+std::string XGUI_EXPORT featureInfo(FeaturePtr theFeature);
+}
+
 #endif