1 // Copyright (C) 2014-2017 CEA/DEN, EDF R&D
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com>
20 #include "Config_FeatureMessage.h"
22 Config_FeatureMessage::Config_FeatureMessage(const Events_ID theId, const void* theParent)
23 : Events_Message(theId, theParent)
37 myNestedFeatures = "";
40 Config_FeatureMessage::~Config_FeatureMessage()
45 const std::string& Config_FeatureMessage::icon() const
50 void Config_FeatureMessage::setIcon(const std::string& icon)
55 const std::string& Config_FeatureMessage::id() const
60 void Config_FeatureMessage::setId(const std::string& id)
65 const std::string& Config_FeatureMessage::keysequence() const
70 void Config_FeatureMessage::setKeysequence(const std::string& keysequence)
72 myKeysequence = keysequence;
75 const std::string& Config_FeatureMessage::text() const
80 void Config_FeatureMessage::setText(const std::string& text)
85 const std::string& Config_FeatureMessage::tooltip() const
90 const std::string& Config_FeatureMessage::groupId() const
95 void Config_FeatureMessage::setGroupId(const std::string& groupId)
100 const std::string& Config_FeatureMessage::workbenchId() const
102 return myWorkbenchId;
105 void Config_FeatureMessage::setWorkbenchId(const std::string& workbenchId)
107 myWorkbenchId = workbenchId;
110 const std::string& Config_FeatureMessage::documentKind() const
112 return myDocumentKind;
115 void Config_FeatureMessage::setDocumentKind(const std::string& documentKind)
117 myDocumentKind = documentKind;
120 void Config_FeatureMessage::setTooltip(const std::string& tooltip)
125 const std::string& Config_FeatureMessage::pluginLibrary() const
127 return myPluginLibrary;
130 void Config_FeatureMessage::setPluginLibrary(const std::string& myPluginLibrary)
132 this->myPluginLibrary = myPluginLibrary;
135 bool Config_FeatureMessage::isUseInput() const
140 bool Config_FeatureMessage::isInternal() const
145 bool Config_FeatureMessage::isAutoPreview() const
147 return myIsAutoPreview;
150 bool Config_FeatureMessage::isModal() const
155 void Config_FeatureMessage::setUseInput(bool isUseInput)
157 myUseInput = isUseInput;
160 void Config_FeatureMessage::setInternal(bool isInternal)
162 myInternal = isInternal;
165 void Config_FeatureMessage::setModal(bool isModal)
170 const std::string& Config_FeatureMessage::nestedFeatures() const
172 return myNestedFeatures;
175 const std::string& Config_FeatureMessage::actionsWhenNested() const
177 return myActionsWhenNested;
180 void Config_FeatureMessage::setNestedFeatures(const std::string& theNestedFeatures)
182 myNestedFeatures = theNestedFeatures;
185 void Config_FeatureMessage::setActionsWhenNested(const std::string& theActions)
187 myActionsWhenNested = theActions;
190 void Config_FeatureMessage::setAutoPreview(bool isAutoPreview)
192 myIsAutoPreview = isAutoPreview;