Salome HOME
Issue #475 #451 correct detection of variables in the ParamSpinBox
[modules/shaper.git] / src / ModuleBase / ModuleBase_Tools.h
index c54c5441e3ea6e262fd9013dc48d98f576bfa028..75c6b95fead59ea4ca584d3f93051389952b1304 100644 (file)
@@ -10,6 +10,7 @@
 #include "ModuleBase.h"
 
 #include <ModelAPI_Feature.h>
+#include <TopAbs_ShapeEnum.hxx>
 
 #include <QPixmap>
 
@@ -61,8 +62,14 @@ MODULEBASE_EXPORT void setSpinValue(QDoubleSpinBox* theSpin, double theValue);
 
 /// Converts the object to the feature or a result and generate information string
 /// \param theObj an object
+/// \param isUseAttributesInfo a flag whether the attribute values information is used
 /// \return a string
-MODULEBASE_EXPORT QString objectInfo(const ObjectPtr& theObj);
+MODULEBASE_EXPORT QString objectInfo(const ObjectPtr& theObj, const bool isUseAttributesInfo = false);
+
+/// Converts string value (name of shape type) to shape enum value
+/// \param theType - string with shape type name
+/// \return TopAbs_ShapeEnum value
+MODULEBASE_EXPORT TopAbs_ShapeEnum shapeType(const QString& theType);
 
 }