Salome HOME
FIx for issue #360 : make switching on/off checking of transactions in Session -...
[modules/shaper.git] / src / Config / Config_FeatureMessage.h
index cd6ce1d47d98509772b655a0988e471e5bf220cf..f890f44c3f8f42f743e6774a0e996b126eb2d8ab 100644 (file)
@@ -1,3 +1,5 @@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D\r
+\r
 #ifndef CONFIG_MESSAGE_H\r
 #define CONFIG_MESSAGE_H\r
 \r
@@ -6,11 +8,9 @@
 \r
 #include <string>\r
 \r
-/// Event ID that feature is loaded (comes with Config_FeatureMessage)\r
-static const char * EVENT_FEATURE_LOADED = "FeatureLoaded";\r
-\r
-/*\r
- * Class to pass a feature entry extracted from xml file.\r
+/*!\r
+ * \class Config_FeatureMessage\r
+ * \brief Class to pass a feature entry extracted from xml file.\r
  * Example of the feature entry:\r
  * <feature id="Part" text="New part" tooltip="Creates a new part" icon=":pictures/part_ico.png"/>\r
  */\r
@@ -32,6 +32,18 @@ class Config_FeatureMessage : public Events_Message
   std::string myNestedFeatures;\r
 \r
  public:\r
+  /// Event ID that feature is loaded in workbench (GUI)\r
+  inline static const char* GUI_EVENT()\r
+  {\r
+    static const char * MY_GUI_EVENT_ID("WorkshopFeatureLoaded");\r
+    return MY_GUI_EVENT_ID;\r
+  }\r
+  inline static const char* MODEL_EVENT()\r
+  {\r
+    static const char * MY_MODEL_EVENT_ID("ModelFeatureLoaded");\r
+    return MY_MODEL_EVENT_ID;\r
+  }\r
+\r
   //const Events_ID theID, const void* theSender = 0\r
   CONFIG_EXPORT Config_FeatureMessage(const Events_ID theId, const void* theParent = 0);\r
   CONFIG_EXPORT virtual ~Config_FeatureMessage();\r