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