X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FConfig%2FConfig_FeatureMessage.h;h=752169fb4d0bb673653ed465d3881663ee15abfc;hb=85496126f5139ba1b15861e7fd8bbbc23b835fd9;hp=8fce1b17369d6feee884351efea7d80c5bf76f6d;hpb=401394b2e312e5c4ecd6a410b90eb2c159a675bf;p=modules%2Fshaper.git diff --git a/src/Config/Config_FeatureMessage.h b/src/Config/Config_FeatureMessage.h index 8fce1b173..752169fb4 100644 --- a/src/Config/Config_FeatureMessage.h +++ b/src/Config/Config_FeatureMessage.h @@ -1,17 +1,20 @@ #ifndef CONFIG_MESSAGE_H #define CONFIG_MESSAGE_H -#include -#include +#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_EXPORT Config_FeatureMessage: public Event_Message +class Config_FeatureMessage: public Events_Message { std::string myId; //Feature unique id std::string myText; //Represents action's text @@ -23,33 +26,40 @@ class CONFIG_EXPORT Config_FeatureMessage: public Event_Message 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); + bool myUseInput; //Action is being checked until user commit the operation + bool myInternal; //Internal feature without GUI representation + std::string myNestedFeatures; - //TODO(sbh): Implement static method to extract event id [SEID] - //static const char* eventId() { return ""; } +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 - 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); + 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 +#endif // CONFIG_MESSAGE_H