X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketchPlugin%2FSketchPlugin_Plugin.h;h=822eeea51b1745803badcf392bf74db1bee378e3;hb=b5893b0a30fac08134c24de4565cb513a43affa6;hp=9354ef398a42c2f87bc12152e99b6c5b1eba5bce;hpb=db0e21ea2f1117dd9af3320009ba8b50dc2e828b;p=modules%2Fshaper.git diff --git a/src/SketchPlugin/SketchPlugin_Plugin.h b/src/SketchPlugin/SketchPlugin_Plugin.h index 9354ef398..822eeea51 100644 --- a/src/SketchPlugin/SketchPlugin_Plugin.h +++ b/src/SketchPlugin/SketchPlugin_Plugin.h @@ -14,19 +14,21 @@ #include /**\class SketchPlugin_Plugin - * \ingroup DataModel + * \ingroup Plugins * \brief Interface common for any plugin: allows to use plugin by the plugins manager. */ -class SKETCHPLUGIN_EXPORT SketchPlugin_Plugin : public ModelAPI_Plugin, public Events_Listener +class SketchPlugin_Plugin : public ModelAPI_Plugin, public Events_Listener { public: /// Creates the feature object of this plugin by the feature string ID - virtual FeaturePtr createFeature(std::string theFeatureID); + SKETCHPLUGIN_EXPORT virtual FeaturePtr createFeature(std::string theFeatureID); + + /// Constructor that registers features and other plugin elements. + SKETCHPLUGIN_EXPORT SketchPlugin_Plugin(); - public: - SketchPlugin_Plugin(); //! Redefinition of Events_Listener method - virtual void processEvent(const std::shared_ptr& theMessage); + SKETCHPLUGIN_EXPORT virtual void processEvent(const std::shared_ptr& theMessage); + protected: //! Returns the state of the feature in the WorkBench: enabled or disabled for the moment. std::shared_ptr getFeaturesState(