X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketchPlugin%2FSketchPlugin_ConstraintParallel.h;h=ac209b68fd75988661bfdccae9418d0e18234a30;hb=2b4f4bf278c841500eb29bb5d204690427b0d56b;hp=dfc894d364a6e6f92f96d80643c4857d231d96f8;hpb=653278ec982a73429d450155d4ce133948dc7510;p=modules%2Fshaper.git diff --git a/src/SketchPlugin/SketchPlugin_ConstraintParallel.h b/src/SketchPlugin/SketchPlugin_ConstraintParallel.h index dfc894d36..ac209b68f 100644 --- a/src/SketchPlugin/SketchPlugin_ConstraintParallel.h +++ b/src/SketchPlugin/SketchPlugin_ConstraintParallel.h @@ -6,8 +6,11 @@ #define SketchPlugin_ConstraintParallel_HeaderFile #include "SketchPlugin.h" +#include #include "SketchPlugin_Constraint.h" +/// Parallel constraint kind +const std::string SKETCH_CONSTRAINT_PARALLEL_KIND("SketchConstraintParallel"); /** \class SketchPlugin_ConstraintParallel * \ingroup DataModel @@ -21,11 +24,11 @@ class SketchPlugin_ConstraintParallel: public SketchPlugin_Constraint public: /// \brief Returns the kind of a feature SKETCHPLUGIN_EXPORT virtual const std::string& getKind() - {static std::string MY_KIND = "SketchConstraintParallel"; return MY_KIND;} + {static std::string MY_KIND = SKETCH_CONSTRAINT_PARALLEL_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();