Salome HOME
f63b038f21932f23b476e06da428ef16450d9b0f
[modules/shaper.git] / src / Config / Config_FeatureMessage.cpp
1 // Copyright (C) 2014-2023  CEA/DEN, EDF R&D
2 //
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.
7 //
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.
12 //
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
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19
20 #include "Config_FeatureMessage.h"
21
22 Config_FeatureMessage::Config_FeatureMessage(const Events_ID theId, const void* theParent)
23     : Events_Message(theId, theParent)
24 {
25   myId = "";
26   myText = "";
27   myTooltip = "";
28   myIcon = "";
29   myKeysequence = "";
30   myHelpFile = "";
31
32   myGroupId = "";
33   myWorkbenchId = "";
34   myToolBarId = "";
35   myPluginLibrary = "";
36
37   myInternal = false;
38   myUseInput = false;
39   myNestedFeatures = "";
40   myModal = false;
41   myIsTitleInToolbar = true;
42   myIsApplyContinue = false;
43   myHideFacesPanel = false;
44   myAbortConfirmation = true;
45 }
46
47 Config_FeatureMessage::~Config_FeatureMessage()
48 {
49
50 }
51
52 const std::string& Config_FeatureMessage::icon() const
53 {
54   return myIcon;
55 }
56
57 void Config_FeatureMessage::setIcon(const std::string& icon)
58 {
59   myIcon = icon;
60 }
61
62 const std::string& Config_FeatureMessage::id() const
63 {
64   return myId;
65 }
66
67 void Config_FeatureMessage::setId(const std::string& id)
68 {
69   myId = id;
70 }
71
72 const std::string& Config_FeatureMessage::keysequence() const
73 {
74   return myKeysequence;
75 }
76
77 void Config_FeatureMessage::setKeysequence(const std::string& keysequence)
78 {
79   myKeysequence = keysequence;
80 }
81
82 const std::string& Config_FeatureMessage::text() const
83 {
84   return myText;
85 }
86
87 void Config_FeatureMessage::setText(const std::string& text)
88 {
89   myText = text;
90 }
91
92 const std::string& Config_FeatureMessage::tooltip() const
93 {
94   return myTooltip;
95 }
96
97 const std::string& Config_FeatureMessage::groupId() const
98 {
99   return myGroupId;
100 }
101
102 void Config_FeatureMessage::setGroupId(const std::string& groupId)
103 {
104   myGroupId = groupId;
105 }
106
107 const std::string& Config_FeatureMessage::toolBarId() const
108 {
109   return myToolBarId;
110 }
111
112 void Config_FeatureMessage::setToolBarId(const std::string& aId)
113 {
114   myToolBarId = aId;
115 }
116
117 const std::string& Config_FeatureMessage::workbenchId() const
118 {
119   return myWorkbenchId;
120 }
121
122 void Config_FeatureMessage::setWorkbenchId(const std::string& workbenchId)
123 {
124   myWorkbenchId = workbenchId;
125 }
126
127 const std::string& Config_FeatureMessage::documentKind() const
128 {
129   return myDocumentKind;
130 }
131
132 void Config_FeatureMessage::setDocumentKind(const std::string& documentKind)
133 {
134   myDocumentKind = documentKind;
135 }
136
137 void Config_FeatureMessage::setTooltip(const std::string& tooltip)
138 {
139   myTooltip = tooltip;
140 }
141
142 const std::string& Config_FeatureMessage::pluginLibrary() const
143 {
144   return myPluginLibrary;
145 }
146
147 void Config_FeatureMessage::setPluginLibrary(const std::string& thePluginLibrary)
148 {
149   this->myPluginLibrary = thePluginLibrary;
150 }
151
152 // LCOV_EXCL_START
153 bool Config_FeatureMessage::isUseInput() const
154 {
155   return myUseInput;
156 }
157
158 bool Config_FeatureMessage::isInternal() const
159 {
160   return myInternal;
161 }
162
163 bool Config_FeatureMessage::isAutoPreview() const
164 {
165   return myIsAutoPreview;
166 }
167
168 bool Config_FeatureMessage::isTitleInToolbar() const
169 {
170   return myIsTitleInToolbar;
171 }
172
173 bool Config_FeatureMessage::isModal() const
174 {
175   return myModal;
176 }
177
178 bool Config_FeatureMessage::isApplyContinue() const
179 {
180   return myIsApplyContinue;
181 }
182 // LCOV_EXCL_STOP
183
184 void Config_FeatureMessage::setUseInput(bool isUseInput)
185 {
186   myUseInput = isUseInput;
187 }
188
189 void Config_FeatureMessage::setInternal(bool isInternal)
190 {
191   myInternal = isInternal;
192 }
193
194 void Config_FeatureMessage::setModal(bool isModal)
195 {
196   myModal = isModal;
197 }
198
199 const std::string& Config_FeatureMessage::nestedFeatures() const
200 {
201   return myNestedFeatures;
202 }
203
204 const std::string& Config_FeatureMessage::actionsWhenNested() const
205 {
206   return myActionsWhenNested;
207 }
208
209 void Config_FeatureMessage::setNestedFeatures(const std::string& theNestedFeatures)
210 {
211   myNestedFeatures = theNestedFeatures;
212 }
213
214 void Config_FeatureMessage::setActionsWhenNested(const std::string& theActions)
215 {
216   myActionsWhenNested = theActions;
217 }
218
219 void Config_FeatureMessage::setAutoPreview(bool isAutoPreview)
220 {
221   myIsAutoPreview = isAutoPreview;
222 }
223
224 void Config_FeatureMessage::setApplyContinue(bool isModal)
225 {
226   myIsApplyContinue = isModal;
227 }
228
229 const std::string& Config_FeatureMessage::helpFileName() const
230 {
231   return myHelpFile;
232 }
233
234 void Config_FeatureMessage::setHelpFileName(const std::string& aName)
235 {
236   myHelpFile = aName;
237 }
238
239 void Config_FeatureMessage::setTitleInToolbar(bool theValue)
240 {
241   myIsTitleInToolbar = theValue;
242 }
243
244 bool Config_FeatureMessage::isHideFacesPanel() const
245 {
246   return myHideFacesPanel;
247 }
248
249
250 void Config_FeatureMessage::setHideFacesPanel(bool theValue)
251 {
252   myHideFacesPanel = theValue;
253 }
254
255 bool Config_FeatureMessage::isAbortConfirmation() const
256 {
257   return myAbortConfirmation;
258 }
259
260 void Config_FeatureMessage::setAbortConfirmation(bool theValue)
261 {
262   myAbortConfirmation = theValue;
263 }