X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketchPlugin%2FSketchPlugin_ConstraintPerpendicular.h;h=475c330849c3c35095878230876cc22493e2cd16;hb=93d047cf2a5a37eaf9525025f2341e845033b569;hp=6c5074a90cd62c1ec2b4205011d03af5cf1aba62;hpb=ea1f85e839a4208cc3ed0789d924044cccc53aa0;p=modules%2Fshaper.git diff --git a/src/SketchPlugin/SketchPlugin_ConstraintPerpendicular.h b/src/SketchPlugin/SketchPlugin_ConstraintPerpendicular.h index 6c5074a90..475c33084 100644 --- a/src/SketchPlugin/SketchPlugin_ConstraintPerpendicular.h +++ b/src/SketchPlugin/SketchPlugin_ConstraintPerpendicular.h @@ -6,8 +6,11 @@ #define SketchPlugin_ConstraintPerpendicular_HeaderFile #include "SketchPlugin.h" +#include #include "SketchPlugin_Constraint.h" +/// Perpendicular constraint kind +const std::string SKETCH_CONSTRAINT_PERPENDICULAR_KIND("SketchConstraintPerpendicular"); /** \class SketchPlugin_ConstraintPerpendicular * \ingroup DataModel @@ -21,11 +24,11 @@ class SketchPlugin_ConstraintPerpendicular: public SketchPlugin_Constraint public: /// \brief Returns the kind of a feature SKETCHPLUGIN_EXPORT virtual const std::string& getKind() - {static std::string MY_KIND = "SketchConstraintPerpendicular"; return MY_KIND;} + {static std::string MY_KIND = SKETCH_CONSTRAINT_PERPENDICULAR_KIND; return MY_KIND;} /// \brief Returns to which group in the document must be added feature SKETCHPLUGIN_EXPORT virtual const std::string& getGroup() - {static std::string MY_GROUP = "Sketch"; return MY_GROUP;} + {static std::string MY_GROUP = SKETCH_KIND; return MY_GROUP;} /// \brief Creates a new part document if needed SKETCHPLUGIN_EXPORT virtual void execute();