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