X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FPartSetPlugin%2FPartSetPlugin_Plugin.h;h=887c49afbb4ee89b0b0dac78fb016de19b31203a;hb=36dc464222fb818156dabf3e0711b58a21bb44a9;hp=1ffda8a7255ad7fc35aeb826ff8a856980a407ab;hpb=4cbd08290dc7a540e3fa93913d484e8336df90d9;p=modules%2Fshaper.git diff --git a/src/PartSetPlugin/PartSetPlugin_Plugin.h b/src/PartSetPlugin/PartSetPlugin_Plugin.h index 1ffda8a72..887c49afb 100644 --- a/src/PartSetPlugin/PartSetPlugin_Plugin.h +++ b/src/PartSetPlugin/PartSetPlugin_Plugin.h @@ -1,24 +1,54 @@ -// File: PartSetPlugin_Plugin.hxx -// Created: 31 Mar 2014 -// Author: Mikhail PONIKAROV +// Copyright (C) 2014-2017 CEA/DEN, EDF R&D +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// See http://www.salome-platform.org/ or +// email : webmaster.salome@opencascade.com +// #ifndef PartSetPlugin_Plugin_H_ #define PartSetPlugin_Plugin_H_ +#include +#include +#include +#include -#include "PartSetPlugin.h" -#include "ModelAPI_Plugin.h" -#include "ModelAPI_Feature.h" +#include -class PARTSETPLUGIN_EXPORT PartSetPlugin_Plugin: public ModelAPI_Plugin +#include + +/**\class PartSetPlugin_Plugin + * \ingroup Plugins + * \brief The main class for management the part set operations as plugin. + */ +class 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); + PARTSETPLUGIN_EXPORT virtual FeaturePtr createFeature(std::string theFeatureID); -public: /// Is needed for python wrapping by swig - PartSetPlugin_Plugin(); + PARTSETPLUGIN_EXPORT PartSetPlugin_Plugin(); + + //! Redefinition of Events_Listener method + PARTSETPLUGIN_EXPORT 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. + PARTSETPLUGIN_EXPORT std::shared_ptr getFeaturesState(); }; #endif