1 // Copyright (C) 2014-2019 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
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;
46 Config_FeatureMessage::~Config_FeatureMessage()
51 const std::string& Config_FeatureMessage::icon() const
56 void Config_FeatureMessage::setIcon(const std::string& icon)
61 const std::string& Config_FeatureMessage::id() const
66 void Config_FeatureMessage::setId(const std::string& id)
71 const std::string& Config_FeatureMessage::keysequence() const
76 void Config_FeatureMessage::setKeysequence(const std::string& keysequence)
78 myKeysequence = keysequence;
81 const std::string& Config_FeatureMessage::text() const
86 void Config_FeatureMessage::setText(const std::string& text)
91 const std::string& Config_FeatureMessage::tooltip() const
96 const std::string& Config_FeatureMessage::groupId() const
101 void Config_FeatureMessage::setGroupId(const std::string& groupId)
106 const std::string& Config_FeatureMessage::toolBarId() const
111 void Config_FeatureMessage::setToolBarId(const std::string& aId)
116 const std::string& Config_FeatureMessage::workbenchId() const
118 return myWorkbenchId;
121 void Config_FeatureMessage::setWorkbenchId(const std::string& workbenchId)
123 myWorkbenchId = workbenchId;
126 const std::string& Config_FeatureMessage::documentKind() const
128 return myDocumentKind;
131 void Config_FeatureMessage::setDocumentKind(const std::string& documentKind)
133 myDocumentKind = documentKind;
136 void Config_FeatureMessage::setTooltip(const std::string& tooltip)
141 const std::string& Config_FeatureMessage::pluginLibrary() const
143 return myPluginLibrary;
146 void Config_FeatureMessage::setPluginLibrary(const std::string& myPluginLibrary)
148 this->myPluginLibrary = myPluginLibrary;
152 bool Config_FeatureMessage::isUseInput() const
157 bool Config_FeatureMessage::isInternal() const
162 bool Config_FeatureMessage::isAutoPreview() const
164 return myIsAutoPreview;
167 bool Config_FeatureMessage::isTitleInToolbar() const
169 return myIsTitleInToolbar;
172 bool Config_FeatureMessage::isModal() const
177 bool Config_FeatureMessage::isApplyContinue() const
179 return myIsApplyContinue;
183 void Config_FeatureMessage::setUseInput(bool isUseInput)
185 myUseInput = isUseInput;
188 void Config_FeatureMessage::setInternal(bool isInternal)
190 myInternal = isInternal;
193 void Config_FeatureMessage::setModal(bool isModal)
198 const std::string& Config_FeatureMessage::nestedFeatures() const
200 return myNestedFeatures;
203 const std::string& Config_FeatureMessage::actionsWhenNested() const
205 return myActionsWhenNested;
208 void Config_FeatureMessage::setNestedFeatures(const std::string& theNestedFeatures)
210 myNestedFeatures = theNestedFeatures;
213 void Config_FeatureMessage::setActionsWhenNested(const std::string& theActions)
215 myActionsWhenNested = theActions;
218 void Config_FeatureMessage::setAutoPreview(bool isAutoPreview)
220 myIsAutoPreview = isAutoPreview;
223 void Config_FeatureMessage::setApplyContinue(bool isModal)
225 myIsApplyContinue = isModal;
228 const std::string& Config_FeatureMessage::helpFileName() const
233 void Config_FeatureMessage::setHelpFileName(const std::string& aName)
238 void Config_FeatureMessage::setTitleInToolbar(bool theValue)
240 myIsTitleInToolbar = theValue;
243 bool Config_FeatureMessage::isHideFacesPanel() const
245 return myHideFacesPanel;
249 void Config_FeatureMessage::setHideFacesPanel(bool theValue)
251 myHideFacesPanel = theValue;