1 // Copyright (C) 2014-2023 CEA, EDF
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
20 #include "Config_FeatureMessage.h"
22 Config_FeatureMessage::Config_FeatureMessage(const Events_ID theId, const void* theParent)
23 : Events_Message(theId, theParent)
39 myNestedFeatures = "";
41 myIsTitleInToolbar = true;
42 myIsApplyContinue = false;
43 myHideFacesPanel = false;
44 myAbortConfirmation = true;
47 Config_FeatureMessage::~Config_FeatureMessage()
52 const std::string& Config_FeatureMessage::icon() const
57 void Config_FeatureMessage::setIcon(const std::string& icon)
62 const std::string& Config_FeatureMessage::id() const
67 void Config_FeatureMessage::setId(const std::string& id)
72 const std::string& Config_FeatureMessage::keysequence() const
77 void Config_FeatureMessage::setKeysequence(const std::string& keysequence)
79 myKeysequence = keysequence;
82 const std::string& Config_FeatureMessage::text() const
87 void Config_FeatureMessage::setText(const std::string& text)
92 const std::string& Config_FeatureMessage::tooltip() const
97 const std::string& Config_FeatureMessage::groupId() const
102 void Config_FeatureMessage::setGroupId(const std::string& groupId)
107 const std::string& Config_FeatureMessage::toolBarId() const
112 void Config_FeatureMessage::setToolBarId(const std::string& aId)
117 const std::string& Config_FeatureMessage::workbenchId() const
119 return myWorkbenchId;
122 void Config_FeatureMessage::setWorkbenchId(const std::string& workbenchId)
124 myWorkbenchId = workbenchId;
127 const std::string& Config_FeatureMessage::documentKind() const
129 return myDocumentKind;
132 void Config_FeatureMessage::setDocumentKind(const std::string& documentKind)
134 myDocumentKind = documentKind;
137 void Config_FeatureMessage::setTooltip(const std::string& tooltip)
142 const std::string& Config_FeatureMessage::pluginLibrary() const
144 return myPluginLibrary;
147 void Config_FeatureMessage::setPluginLibrary(const std::string& thePluginLibrary)
149 this->myPluginLibrary = thePluginLibrary;
153 bool Config_FeatureMessage::isUseInput() const
158 bool Config_FeatureMessage::isInternal() const
163 bool Config_FeatureMessage::isAutoPreview() const
165 return myIsAutoPreview;
168 bool Config_FeatureMessage::isTitleInToolbar() const
170 return myIsTitleInToolbar;
173 bool Config_FeatureMessage::isModal() const
178 bool Config_FeatureMessage::isApplyContinue() const
180 return myIsApplyContinue;
184 void Config_FeatureMessage::setUseInput(bool isUseInput)
186 myUseInput = isUseInput;
189 void Config_FeatureMessage::setInternal(bool isInternal)
191 myInternal = isInternal;
194 void Config_FeatureMessage::setModal(bool isModal)
199 const std::string& Config_FeatureMessage::nestedFeatures() const
201 return myNestedFeatures;
204 const std::string& Config_FeatureMessage::actionsWhenNested() const
206 return myActionsWhenNested;
209 void Config_FeatureMessage::setNestedFeatures(const std::string& theNestedFeatures)
211 myNestedFeatures = theNestedFeatures;
214 void Config_FeatureMessage::setActionsWhenNested(const std::string& theActions)
216 myActionsWhenNested = theActions;
219 void Config_FeatureMessage::setAutoPreview(bool isAutoPreview)
221 myIsAutoPreview = isAutoPreview;
224 void Config_FeatureMessage::setApplyContinue(bool isModal)
226 myIsApplyContinue = isModal;
229 const std::string& Config_FeatureMessage::helpFileName() const
234 void Config_FeatureMessage::setHelpFileName(const std::string& aName)
239 void Config_FeatureMessage::setTitleInToolbar(bool theValue)
241 myIsTitleInToolbar = theValue;
244 bool Config_FeatureMessage::isHideFacesPanel() const
246 return myHideFacesPanel;
250 void Config_FeatureMessage::setHideFacesPanel(bool theValue)
252 myHideFacesPanel = theValue;
255 bool Config_FeatureMessage::isAbortConfirmation() const
257 return myAbortConfirmation;
260 void Config_FeatureMessage::setAbortConfirmation(bool theValue)
262 myAbortConfirmation = theValue;