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)
39 myNestedFeatures = "";
41 myIsApplyContinue = false;
44 Config_FeatureMessage::~Config_FeatureMessage()
49 const std::string& Config_FeatureMessage::icon() const
54 void Config_FeatureMessage::setIcon(const std::string& icon)
59 const std::string& Config_FeatureMessage::id() const
64 void Config_FeatureMessage::setId(const std::string& id)
69 const std::string& Config_FeatureMessage::keysequence() const
74 void Config_FeatureMessage::setKeysequence(const std::string& keysequence)
76 myKeysequence = keysequence;
79 const std::string& Config_FeatureMessage::text() const
84 void Config_FeatureMessage::setText(const std::string& text)
89 const std::string& Config_FeatureMessage::tooltip() const
94 const std::string& Config_FeatureMessage::groupId() const
99 void Config_FeatureMessage::setGroupId(const std::string& groupId)
104 const std::string& Config_FeatureMessage::toolBarId() const
109 void Config_FeatureMessage::setToolBarId(const std::string& aId)
114 const std::string& Config_FeatureMessage::workbenchId() const
116 return myWorkbenchId;
119 void Config_FeatureMessage::setWorkbenchId(const std::string& workbenchId)
121 myWorkbenchId = workbenchId;
124 const std::string& Config_FeatureMessage::documentKind() const
126 return myDocumentKind;
129 void Config_FeatureMessage::setDocumentKind(const std::string& documentKind)
131 myDocumentKind = documentKind;
134 void Config_FeatureMessage::setTooltip(const std::string& tooltip)
139 const std::string& Config_FeatureMessage::pluginLibrary() const
141 return myPluginLibrary;
144 void Config_FeatureMessage::setPluginLibrary(const std::string& myPluginLibrary)
146 this->myPluginLibrary = myPluginLibrary;
149 bool Config_FeatureMessage::isUseInput() const
154 bool Config_FeatureMessage::isInternal() const
159 bool Config_FeatureMessage::isAutoPreview() const
161 return myIsAutoPreview;
164 bool Config_FeatureMessage::isModal() const
169 bool Config_FeatureMessage::isApplyContinue() const
171 return myIsApplyContinue;
175 void Config_FeatureMessage::setUseInput(bool isUseInput)
177 myUseInput = isUseInput;
180 void Config_FeatureMessage::setInternal(bool isInternal)
182 myInternal = isInternal;
185 void Config_FeatureMessage::setModal(bool isModal)
190 const std::string& Config_FeatureMessage::nestedFeatures() const
192 return myNestedFeatures;
195 const std::string& Config_FeatureMessage::actionsWhenNested() const
197 return myActionsWhenNested;
200 void Config_FeatureMessage::setNestedFeatures(const std::string& theNestedFeatures)
202 myNestedFeatures = theNestedFeatures;
205 void Config_FeatureMessage::setActionsWhenNested(const std::string& theActions)
207 myActionsWhenNested = theActions;
210 void Config_FeatureMessage::setAutoPreview(bool isAutoPreview)
212 myIsAutoPreview = isAutoPreview;
215 void Config_FeatureMessage::setApplyContinue(bool isModal)
217 myIsApplyContinue = isModal;