X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FSketchPlugin%2FSketchPlugin_Plugin.h;h=3b9de25ef6941f1ec63831c3a2aec82e8c0b0c03;hb=b565fcd859e5551d317233b9e8103b3987f1e79a;hp=f232b68fac26fdfdd6d38e824cae6f624aa520fb;hpb=9fb117423f35d7271d96badbe4b8ec320641bc6e;p=modules%2Fshaper.git diff --git a/src/SketchPlugin/SketchPlugin_Plugin.h b/src/SketchPlugin/SketchPlugin_Plugin.h index f232b68fa..3b9de25ef 100644 --- a/src/SketchPlugin/SketchPlugin_Plugin.h +++ b/src/SketchPlugin/SketchPlugin_Plugin.h @@ -1,23 +1,36 @@ +// Copyright (C) 2014-20xx CEA/DEN, EDF R&D --> + // File: SketchPlugin_Plugin.hxx // Created: 31 Mar 2014 // Author: Mikhail PONIKAROV -#ifndef SketchPlugin_Plugin_HeaderFile -#define SketchPlugin_Plugin_HeaderFile - +#ifndef SKETCHPLUGIN_PLUGIN_H_ +#define SKETCHPLUGIN_PLUGIN_H_ -#include "SketchPlugin.h" -#include "ModelAPI_Plugin.h" +#include +#include +#include +#include +#include -class SKETCHPLUGIN_EXPORT SketchPlugin_Plugin: public ModelAPI_Plugin +/**\class SketchPlugin_Plugin + * \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 { public: /// Creates the feature object of this plugin by the feature string ID - virtual boost::shared_ptr createFeature(std::string theFeatureID); + virtual FeaturePtr createFeature(std::string theFeatureID); -public: - /// Is needed for python wrapping by swig + public: SketchPlugin_Plugin(); + //! Redefinition of Events_Listener method + 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( + const std::shared_ptr& theFeature) const; }; #endif