Salome HOME
Add copyright header according to request of CEA from 06.06.2017
[modules/shaper.git] / src / Config / Config_FeatureMessage.cpp
index 209bb7aa2fef6119f383c7b4d26ca4b8ceea64ad..ae86d8b94d2fa9dc2d12ba6f0a090de51f6b2628 100644 (file)
@@ -1,10 +1,27 @@
-/*
- *
- */
+// 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<mailto:webmaster.salome@opencascade.com>
+//
+
 #include "Config_FeatureMessage.h"
 
-Config_FeatureMessage::Config_FeatureMessage(const Event_ID theId, const void* theParent)
-    : Event_Message(theId, theParent)
+Config_FeatureMessage::Config_FeatureMessage(const Events_ID theId, const void* theParent)
+    : Events_Message(theId, theParent)
 {
   myId = "";
   myText = "";
@@ -14,6 +31,16 @@ Config_FeatureMessage::Config_FeatureMessage(const Event_ID theId, const void* t
 
   myGroupId = "";
   myWorkbenchId = "";
+  myPluginLibrary = "";
+
+  myInternal = false;
+  myUseInput = false;
+  myNestedFeatures = "";
+}
+
+Config_FeatureMessage::~Config_FeatureMessage()
+{
+
 }
 
 const std::string& Config_FeatureMessage::icon() const
@@ -81,6 +108,16 @@ void Config_FeatureMessage::setWorkbenchId(const std::string& workbenchId)
   myWorkbenchId = workbenchId;
 }
 
+const std::string& Config_FeatureMessage::documentKind() const
+{
+  return myDocumentKind;
+}
+
+void Config_FeatureMessage::setDocumentKind(const std::string& documentKind)
+{
+  myDocumentKind = documentKind;
+}
+
 void Config_FeatureMessage::setTooltip(const std::string& tooltip)
 {
   myTooltip = tooltip;
@@ -101,7 +138,57 @@ bool Config_FeatureMessage::isUseInput() const
   return myUseInput;
 }
 
+bool Config_FeatureMessage::isInternal() const
+{
+  return myInternal;
+}
+
+bool Config_FeatureMessage::isAutoPreview() const
+{
+  return myIsAutoPreview;
+}
+
+bool Config_FeatureMessage::isModal() const
+{
+  return myModal;
+}
+
 void Config_FeatureMessage::setUseInput(bool isUseInput)
 {
   myUseInput = isUseInput;
 }
+
+void Config_FeatureMessage::setInternal(bool isInternal)
+{
+  myInternal = isInternal;
+}
+
+void Config_FeatureMessage::setModal(bool isModal)
+{
+  myModal = isModal;
+}
+
+const std::string& Config_FeatureMessage::nestedFeatures() const
+{
+  return myNestedFeatures;
+}
+
+const std::string& Config_FeatureMessage::actionsWhenNested() const
+{
+  return myActionsWhenNested;
+}
+
+void Config_FeatureMessage::setNestedFeatures(const std::string& theNestedFeatures)
+{
+  myNestedFeatures = theNestedFeatures;
+}
+
+void Config_FeatureMessage::setActionsWhenNested(const std::string& theActions)
+{
+  myActionsWhenNested = theActions;
+}
+
+void Config_FeatureMessage::setAutoPreview(bool isAutoPreview)
+{
+  myIsAutoPreview = isAutoPreview;
+}