Salome HOME
4728b95f8ea3beb98419f64cbbbc96bfa02e3620
[modules/shaper.git] / src / Config / Config_FeatureMessage.cpp
1 // Copyright (C) 2014-2019  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 }
45
46 Config_FeatureMessage::~Config_FeatureMessage()
47 {
48
49 }
50
51 const std::string& Config_FeatureMessage::icon() const
52 {
53   return myIcon;
54 }
55
56 void Config_FeatureMessage::setIcon(const std::string& icon)
57 {
58   myIcon = icon;
59 }
60
61 const std::string& Config_FeatureMessage::id() const
62 {
63   return myId;
64 }
65
66 void Config_FeatureMessage::setId(const std::string& id)
67 {
68   myId = id;
69 }
70
71 const std::string& Config_FeatureMessage::keysequence() const
72 {
73   return myKeysequence;
74 }
75
76 void Config_FeatureMessage::setKeysequence(const std::string& keysequence)
77 {
78   myKeysequence = keysequence;
79 }
80
81 const std::string& Config_FeatureMessage::text() const
82 {
83   return myText;
84 }
85
86 void Config_FeatureMessage::setText(const std::string& text)
87 {
88   myText = text;
89 }
90
91 const std::string& Config_FeatureMessage::tooltip() const
92 {
93   return myTooltip;
94 }
95
96 const std::string& Config_FeatureMessage::groupId() const
97 {
98   return myGroupId;
99 }
100
101 void Config_FeatureMessage::setGroupId(const std::string& groupId)
102 {
103   myGroupId = groupId;
104 }
105
106 const std::string& Config_FeatureMessage::toolBarId() const
107 {
108   return myToolBarId;
109 }
110
111 void Config_FeatureMessage::setToolBarId(const std::string& aId)
112 {
113   myToolBarId = aId;
114 }
115
116 const std::string& Config_FeatureMessage::workbenchId() const
117 {
118   return myWorkbenchId;
119 }
120
121 void Config_FeatureMessage::setWorkbenchId(const std::string& workbenchId)
122 {
123   myWorkbenchId = workbenchId;
124 }
125
126 const std::string& Config_FeatureMessage::documentKind() const
127 {
128   return myDocumentKind;
129 }
130
131 void Config_FeatureMessage::setDocumentKind(const std::string& documentKind)
132 {
133   myDocumentKind = documentKind;
134 }
135
136 void Config_FeatureMessage::setTooltip(const std::string& tooltip)
137 {
138   myTooltip = tooltip;
139 }
140
141 const std::string& Config_FeatureMessage::pluginLibrary() const
142 {
143   return myPluginLibrary;
144 }
145
146 void Config_FeatureMessage::setPluginLibrary(const std::string& myPluginLibrary)
147 {
148   this->myPluginLibrary = myPluginLibrary;
149 }
150
151 // LCOV_EXCL_START
152 bool Config_FeatureMessage::isUseInput() const
153 {
154   return myUseInput;
155 }
156
157 bool Config_FeatureMessage::isInternal() const
158 {
159   return myInternal;
160 }
161
162 bool Config_FeatureMessage::isAutoPreview() const
163 {
164   return myIsAutoPreview;
165 }
166
167 bool Config_FeatureMessage::isTitleInToolbar() const
168 {
169   return myIsTitleInToolbar;
170 }
171
172 bool Config_FeatureMessage::isModal() const
173 {
174   return myModal;
175 }
176
177 bool Config_FeatureMessage::isApplyContinue() const
178 {
179   return myIsApplyContinue;
180 }
181 // LCOV_EXCL_STOP
182
183 void Config_FeatureMessage::setUseInput(bool isUseInput)
184 {
185   myUseInput = isUseInput;
186 }
187
188 void Config_FeatureMessage::setInternal(bool isInternal)
189 {
190   myInternal = isInternal;
191 }
192
193 void Config_FeatureMessage::setModal(bool isModal)
194 {
195   myModal = isModal;
196 }
197
198 const std::string& Config_FeatureMessage::nestedFeatures() const
199 {
200   return myNestedFeatures;
201 }
202
203 const std::string& Config_FeatureMessage::actionsWhenNested() const
204 {
205   return myActionsWhenNested;
206 }
207
208 void Config_FeatureMessage::setNestedFeatures(const std::string& theNestedFeatures)
209 {
210   myNestedFeatures = theNestedFeatures;
211 }
212
213 void Config_FeatureMessage::setActionsWhenNested(const std::string& theActions)
214 {
215   myActionsWhenNested = theActions;
216 }
217
218 void Config_FeatureMessage::setAutoPreview(bool isAutoPreview)
219 {
220   myIsAutoPreview = isAutoPreview;
221 }
222
223 void Config_FeatureMessage::setApplyContinue(bool isModal)
224 {
225   myIsApplyContinue = isModal;
226 }
227
228 const std::string& Config_FeatureMessage::helpFileName() const
229 {
230   return myHelpFile;
231 }
232
233 void Config_FeatureMessage::setHelpFileName(const std::string& aName)
234 {
235   myHelpFile = aName;
236 }
237
238 void Config_FeatureMessage::setTitleInToolbar(bool theValue)
239 {
240   myIsTitleInToolbar = theValue;
241 }
242
243 bool Config_FeatureMessage::isHideFacesPanel() const
244 {
245   return myHideFacesPanel;
246 }
247
248
249 void Config_FeatureMessage::setHideFacesPanel(bool theValue)
250 {
251   myHideFacesPanel = theValue;
252 }