Salome HOME
Create help management system
[modules/shaper.git] / src / Config / Config_FeatureMessage.cpp
1 // Copyright (C) 2014-2017  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
18 // email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com>
19 //
20
21 #include "Config_FeatureMessage.h"
22
23 Config_FeatureMessage::Config_FeatureMessage(const Events_ID theId, const void* theParent)
24     : Events_Message(theId, theParent)
25 {
26   myId = "";
27   myText = "";
28   myTooltip = "";
29   myIcon = "";
30   myKeysequence = "";
31   myHelpFile = "";
32
33   myGroupId = "";
34   myWorkbenchId = "";
35   myToolBarId = "";
36   myPluginLibrary = "";
37
38   myInternal = false;
39   myUseInput = false;
40   myNestedFeatures = "";
41   myModal = false;
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::isModal() const
166 {
167   return myModal;
168 }
169
170 bool Config_FeatureMessage::isApplyContinue() const
171 {
172   return myIsApplyContinue;
173 }
174
175
176 void Config_FeatureMessage::setUseInput(bool isUseInput)
177 {
178   myUseInput = isUseInput;
179 }
180
181 void Config_FeatureMessage::setInternal(bool isInternal)
182 {
183   myInternal = isInternal;
184 }
185
186 void Config_FeatureMessage::setModal(bool isModal)
187 {
188   myModal = isModal;
189 }
190
191 const std::string& Config_FeatureMessage::nestedFeatures() const
192 {
193   return myNestedFeatures;
194 }
195
196 const std::string& Config_FeatureMessage::actionsWhenNested() const
197 {
198   return myActionsWhenNested;
199 }
200
201 void Config_FeatureMessage::setNestedFeatures(const std::string& theNestedFeatures)
202 {
203   myNestedFeatures = theNestedFeatures;
204 }
205
206 void Config_FeatureMessage::setActionsWhenNested(const std::string& theActions)
207 {
208   myActionsWhenNested = theActions;
209 }
210
211 void Config_FeatureMessage::setAutoPreview(bool isAutoPreview)
212 {
213   myIsAutoPreview = isAutoPreview;
214 }
215
216 void Config_FeatureMessage::setApplyContinue(bool isModal)
217 {
218   myIsApplyContinue = isModal;
219 }
220
221 const std::string& Config_FeatureMessage::helpFileName() const
222 {
223   return myHelpFile;
224 }
225
226 void Config_FeatureMessage::setHelpFileName(const std::string& aName)
227 {
228   myHelpFile = aName;
229 }