X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_Tools.h;h=75c6b95fead59ea4ca584d3f93051389952b1304;hb=c93898acb58bc77dbfef4f5cba260885d31379fe;hp=3c9006d9a65a1f376da3de9e824be1a9538e164f;hpb=eb57ef7dd9fa2816da36a5a4066bc41ebdea2ad7;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_Tools.h b/src/ModuleBase/ModuleBase_Tools.h index 3c9006d9a..75c6b95fe 100644 --- a/src/ModuleBase/ModuleBase_Tools.h +++ b/src/ModuleBase/ModuleBase_Tools.h @@ -10,6 +10,7 @@ #include "ModuleBase.h" #include +#include #include @@ -65,6 +66,11 @@ MODULEBASE_EXPORT void setSpinValue(QDoubleSpinBox* theSpin, double theValue); /// \return a string 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); + } #endif