X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FPartSetPlugin%2FPartSetPlugin_Plugin.h;h=834c7c8a306b487271467ca9bef55574edb1475f;hb=956324a569b5010a2486a8c8380648406b7b164c;hp=1ffda8a7255ad7fc35aeb826ff8a856980a407ab;hpb=96ff1d1fb2acb842cee193f15492de81060a1d58;p=modules%2Fshaper.git diff --git a/src/PartSetPlugin/PartSetPlugin_Plugin.h b/src/PartSetPlugin/PartSetPlugin_Plugin.h index 1ffda8a72..834c7c8a3 100644 --- a/src/PartSetPlugin/PartSetPlugin_Plugin.h +++ b/src/PartSetPlugin/PartSetPlugin_Plugin.h @@ -1,3 +1,5 @@ +// Copyright (C) 2014-20xx CEA/DEN, EDF R&D + // File: PartSetPlugin_Plugin.hxx // Created: 31 Mar 2014 // Author: Mikhail PONIKAROV @@ -5,20 +7,34 @@ #ifndef PartSetPlugin_Plugin_H_ #define PartSetPlugin_Plugin_H_ +#include +#include +#include +#include + +#include -#include "PartSetPlugin.h" -#include "ModelAPI_Plugin.h" -#include "ModelAPI_Feature.h" +#include -class PARTSETPLUGIN_EXPORT PartSetPlugin_Plugin: public ModelAPI_Plugin +/**\class PartSetPlugin_Plugin + * \ingroup Plugins + * \brief The main class for management the part set operations as plugin. + */ +class PARTSETPLUGIN_EXPORT PartSetPlugin_Plugin : public ModelAPI_Plugin, + public Events_Listener { -public: + public: /// Creates the feature object of this plugin by the feature string ID virtual FeaturePtr createFeature(std::string theFeatureID); -public: /// Is needed for python wrapping by swig PartSetPlugin_Plugin(); + + //! Redefinition of Events_Listener method + virtual void processEvent(const std::shared_ptr& theMessage); + //! Performs the chenges of enabled/disabled state in the toolbar + //! due to the current state of the application. + std::shared_ptr getFeaturesState(); }; #endif