X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FConfig%2FConfig_FeatureMessage.h;h=f890f44c3f8f42f743e6774a0e996b126eb2d8ab;hb=60e95a5502a6940c6c27ce5d561b3c684b0b0a4f;hp=cd6ce1d47d98509772b655a0988e471e5bf220cf;hpb=32d1a4d19ab1a5d7c172e9660130fcf8ecb1e520;p=modules%2Fshaper.git diff --git a/src/Config/Config_FeatureMessage.h b/src/Config/Config_FeatureMessage.h index cd6ce1d47..f890f44c3 100644 --- a/src/Config/Config_FeatureMessage.h +++ b/src/Config/Config_FeatureMessage.h @@ -1,3 +1,5 @@ +// Copyright (C) 2014-20xx CEA/DEN, EDF R&D + #ifndef CONFIG_MESSAGE_H #define CONFIG_MESSAGE_H @@ -6,11 +8,9 @@ #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. +/*! + * \class Config_FeatureMessage + * \brief Class to pass a feature entry extracted from xml file. * Example of the feature entry: * */ @@ -32,6 +32,18 @@ class Config_FeatureMessage : public Events_Message std::string myNestedFeatures; public: + /// Event ID that feature is loaded in workbench (GUI) + inline static const char* GUI_EVENT() + { + static const char * MY_GUI_EVENT_ID("WorkshopFeatureLoaded"); + return MY_GUI_EVENT_ID; + } + inline static const char* MODEL_EVENT() + { + static const char * MY_MODEL_EVENT_ID("ModelFeatureLoaded"); + return MY_MODEL_EVENT_ID; + } + //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();