X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FConfig%2FConfig_FeatureMessage.h;h=1bd9ecff0d7e21f1845642bce7c5d845d65e7ae2;hb=08c56d0b00a8167f6183ec528db6d2e4d36348db;hp=848e1232576e9ff2f585a2e5391abc75bf5dbd2a;hpb=69fae9d94ffa0fd9c37a756bf8d4736522f06214;p=modules%2Fshaper.git diff --git a/src/Config/Config_FeatureMessage.h b/src/Config/Config_FeatureMessage.h index 848e12325..1bd9ecff0 100644 --- a/src/Config/Config_FeatureMessage.h +++ b/src/Config/Config_FeatureMessage.h @@ -1,52 +1,158 @@ -#ifndef CONFIG_MESSAGE_H -#define CONFIG_MESSAGE_H - -#include "Config.h" - -#include -#include - -/* - * Class to pass a feature entry extracted from xml file. - * Example of the feature entry: - * - */ -class CONFIG_EXPORT Config_FeatureMessage: public Event_Message -{ - std::string myId; //Feature unique id - std::string myText; //Represents action's text - std::string myTooltip; //Represents action's tooltip - std::string myIcon; //Represents action's icon - std::string myKeysequence; //Represents action's key sequence - - std::string myGroupId; //Id of feature's group - std::string myWorkbenchId; //Id of feature's workbench - std::string myPluginLibrary; //Name of feature's library - -public: - //const Event_ID theID, const void* theSender = 0 - Config_FeatureMessage(const Event_ID theId, const void* theParent = 0); - - //Auto-generated getters/setters - const std::string& icon() const; - const std::string& id() const; - const std::string& keysequence() const; - const std::string& text() const; - const std::string& tooltip() const; - - const std::string& groupId() const; - const std::string& workbenchId() const; - const std::string& pluginLibrary() const; - - void setIcon(const std::string& icon); - void setId(const std::string& id); - void setKeysequence(const std::string& keysequence); - void setText(const std::string& text); - void setTooltip(const std::string& tooltip); - - void setGroupId(const std::string& groupId); - void setWorkbenchId(const std::string& workbenchId); - void setPluginLibrary(const std::string& thePluginLibrary); -}; - +// 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 CONFIG_FEATUREMESSAGE_H +#define CONFIG_FEATUREMESSAGE_H + +#include +#include + +#include + +/*! + * \class Config_FeatureMessage + * \ingroup Config + * \brief Class to pass a feature entry extracted from xml file. + * Example of the feature entry: + * \code + * + * \endcode + */ +class Config_FeatureMessage : public Events_Message +{ + std::string myId; ///