X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FConfig%2FConfig_FeatureMessage.h;h=a027bec60b1df6e551dfa516bfba51af2f57ac00;hb=adf26479b37f6238c3fd33b7da5f37dd57b68b00;hp=4c32b0b8639f666c2bb287e2ac4ba68581ef77c0;hpb=cd9217d7e87997ec8bc150a6d8c389e742ca0f84;p=modules%2Fshaper.git diff --git a/src/Config/Config_FeatureMessage.h b/src/Config/Config_FeatureMessage.h index 4c32b0b86..a027bec60 100644 --- a/src/Config/Config_FeatureMessage.h +++ b/src/Config/Config_FeatureMessage.h @@ -1,51 +1,165 @@ -#ifndef CONFIG_MESSAGE_H -#define CONFIG_MESSAGE_H - -#include -#include - -#include - -/// Event ID that feature is loaded (comes with Config_FeatureMessage) -static const char * EVENT_FEATURE_LOADED = "FeatureLoaded"; - -/* - * Class to pass a feature entry extracted from xml file. - * Example of the feature entry: - * - */ -class Config_FeatureMessage : public Events_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 - - bool myUseInput; //Action is being checked until user commit the operation - bool myInternal; //Internal feature without GUI representation - std::string myNestedFeatures; - - public: - //const Events_ID theID, const void* theSender = 0 - CONFIG_EXPORT Config_FeatureMessage(const Events_ID theId, const void* theParent = 0);CONFIG_EXPORT virtual ~Config_FeatureMessage(); - - //Auto-generated getters/setters - CONFIG_EXPORT const std::string& icon() const;CONFIG_EXPORT const std::string& id() const;CONFIG_EXPORT const std::string& keysequence() const;CONFIG_EXPORT const std::string& text() const;CONFIG_EXPORT const std::string& tooltip() const; - - CONFIG_EXPORT const std::string& groupId() const;CONFIG_EXPORT const std::string& workbenchId() const;CONFIG_EXPORT const std::string& pluginLibrary() const;CONFIG_EXPORT const std::string& nestedFeatures() const;CONFIG_EXPORT bool isUseInput() const;CONFIG_EXPORT bool isInternal() const; - - CONFIG_EXPORT void setIcon(const std::string& icon);CONFIG_EXPORT void setId( - const std::string& id);CONFIG_EXPORT void setKeysequence(const std::string& keysequence);CONFIG_EXPORT void setText( - const std::string& text);CONFIG_EXPORT void setTooltip(const std::string& tooltip);CONFIG_EXPORT void setGroupId( - const std::string& groupId);CONFIG_EXPORT void setWorkbenchId(const std::string& workbenchId);CONFIG_EXPORT void setPluginLibrary( - const std::string& thePluginLibrary);CONFIG_EXPORT void setNestedFeatures( - const std::string& theNestedFeatures);CONFIG_EXPORT void setUseInput(bool isUseInput);CONFIG_EXPORT void setInternal( - bool isInternal); -}; - -#endif // CONFIG_MESSAGE_H \ No newline at end of file +// Copyright (C) 2014-2019 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; ///