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
18 // email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com>
21 #include "Config_FeatureMessage.h"
23 Config_FeatureMessage::Config_FeatureMessage(const Events_ID theId, const void* theParent)
24 : Events_Message(theId, theParent)
38 myNestedFeatures = "";
40 myIsApplyContinue = false;
43 Config_FeatureMessage::~Config_FeatureMessage()
48 const std::string& Config_FeatureMessage::icon() const
53 void Config_FeatureMessage::setIcon(const std::string& icon)
58 const std::string& Config_FeatureMessage::id() const
63 void Config_FeatureMessage::setId(const std::string& id)
68 const std::string& Config_FeatureMessage::keysequence() const
73 void Config_FeatureMessage::setKeysequence(const std::string& keysequence)
75 myKeysequence = keysequence;
78 const std::string& Config_FeatureMessage::text() const
83 void Config_FeatureMessage::setText(const std::string& text)
88 const std::string& Config_FeatureMessage::tooltip() const
93 const std::string& Config_FeatureMessage::groupId() const
98 void Config_FeatureMessage::setGroupId(const std::string& groupId)
103 const std::string& Config_FeatureMessage::workbenchId() const
105 return myWorkbenchId;
108 void Config_FeatureMessage::setWorkbenchId(const std::string& workbenchId)
110 myWorkbenchId = workbenchId;
113 const std::string& Config_FeatureMessage::documentKind() const
115 return myDocumentKind;
118 void Config_FeatureMessage::setDocumentKind(const std::string& documentKind)
120 myDocumentKind = documentKind;
123 void Config_FeatureMessage::setTooltip(const std::string& tooltip)
128 const std::string& Config_FeatureMessage::pluginLibrary() const
130 return myPluginLibrary;
133 void Config_FeatureMessage::setPluginLibrary(const std::string& myPluginLibrary)
135 this->myPluginLibrary = myPluginLibrary;
138 bool Config_FeatureMessage::isUseInput() const
143 bool Config_FeatureMessage::isInternal() const
148 bool Config_FeatureMessage::isAutoPreview() const
150 return myIsAutoPreview;
153 bool Config_FeatureMessage::isModal() const
158 bool Config_FeatureMessage::isApplyContinue() const
160 return myIsApplyContinue;
164 void Config_FeatureMessage::setUseInput(bool isUseInput)
166 myUseInput = isUseInput;
169 void Config_FeatureMessage::setInternal(bool isInternal)
171 myInternal = isInternal;
174 void Config_FeatureMessage::setModal(bool isModal)
179 const std::string& Config_FeatureMessage::nestedFeatures() const
181 return myNestedFeatures;
184 const std::string& Config_FeatureMessage::actionsWhenNested() const
186 return myActionsWhenNested;
189 void Config_FeatureMessage::setNestedFeatures(const std::string& theNestedFeatures)
191 myNestedFeatures = theNestedFeatures;
194 void Config_FeatureMessage::setActionsWhenNested(const std::string& theActions)
196 myActionsWhenNested = theActions;
199 void Config_FeatureMessage::setAutoPreview(bool isAutoPreview)
201 myIsAutoPreview = isAutoPreview;
204 void Config_FeatureMessage::setApplyContinue(bool isModal)
206 myIsApplyContinue = isModal;