X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketchPlugin%2FSketchPlugin_Circle.h;h=10fee4f7bba9f27b1c453d745528138dcced52d9;hb=4e672d4ecb0e8a86ccc5e210d879eecf365c3524;hp=18fa1e71f94ce1db6a85076d2e68ef1fbfcd7faf;hpb=653278ec982a73429d450155d4ce133948dc7510;p=modules%2Fshaper.git diff --git a/src/SketchPlugin/SketchPlugin_Circle.h b/src/SketchPlugin/SketchPlugin_Circle.h index 18fa1e71f..10fee4f7b 100644 --- a/src/SketchPlugin/SketchPlugin_Circle.h +++ b/src/SketchPlugin/SketchPlugin_Circle.h @@ -7,6 +7,10 @@ #include "SketchPlugin.h" #include +#include + +/// Circle feature kind +const std::string SKETCH_CIRCLE_KIND("SketchCircle"); /// 2D point - center of the circle const std::string CIRCLE_ATTR_CENTER("CircleCenter"); @@ -22,11 +26,11 @@ class SketchPlugin_Circle: public SketchPlugin_Feature public: /// Returns the kind of a feature SKETCHPLUGIN_EXPORT virtual const std::string& getKind() - {static std::string MY_KIND = "SketchCircle"; return MY_KIND;} + {static std::string MY_KIND = SKETCH_CIRCLE_KIND; return MY_KIND;} /// 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;} /// Creates a new part document if needed SKETCHPLUGIN_EXPORT virtual void execute(); @@ -40,7 +44,7 @@ public: /// Adds sub-feature of the higher level feature (sub-element of the sketch) /// \param theFeature sub-feature SKETCHPLUGIN_EXPORT virtual const void addSub( - const boost::shared_ptr& theFeature) {}; + const FeaturePtr& theFeature) {}; /// Use plugin manager for features creation SketchPlugin_Circle();