]> SALOME platform Git repositories - modules/shaper.git/blob - src/Config/Config_FeatureMessage.cpp
Salome HOME
Provide icons for groups with different shape types
[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
32   myGroupId = "";
33   myWorkbenchId = "";
34   myPluginLibrary = "";
35
36   myInternal = false;
37   myUseInput = false;
38   myNestedFeatures = "";
39   myModal = false;
40   myIsApplyContinue = false;
41 }
42
43 Config_FeatureMessage::~Config_FeatureMessage()
44 {
45
46 }
47
48 const std::string& Config_FeatureMessage::icon() const
49 {
50   return myIcon;
51 }
52
53 void Config_FeatureMessage::setIcon(const std::string& icon)
54 {
55   myIcon = icon;
56 }
57
58 const std::string& Config_FeatureMessage::id() const
59 {
60   return myId;
61 }
62
63 void Config_FeatureMessage::setId(const std::string& id)
64 {
65   myId = id;
66 }
67
68 const std::string& Config_FeatureMessage::keysequence() const
69 {
70   return myKeysequence;
71 }
72
73 void Config_FeatureMessage::setKeysequence(const std::string& keysequence)
74 {
75   myKeysequence = keysequence;
76 }
77
78 const std::string& Config_FeatureMessage::text() const
79 {
80   return myText;
81 }
82
83 void Config_FeatureMessage::setText(const std::string& text)
84 {
85   myText = text;
86 }
87
88 const std::string& Config_FeatureMessage::tooltip() const
89 {
90   return myTooltip;
91 }
92
93 const std::string& Config_FeatureMessage::groupId() const
94 {
95   return myGroupId;
96 }
97
98 void Config_FeatureMessage::setGroupId(const std::string& groupId)
99 {
100   myGroupId = groupId;
101 }
102
103 const std::string& Config_FeatureMessage::workbenchId() const
104 {
105   return myWorkbenchId;
106 }
107
108 void Config_FeatureMessage::setWorkbenchId(const std::string& workbenchId)
109 {
110   myWorkbenchId = workbenchId;
111 }
112
113 const std::string& Config_FeatureMessage::documentKind() const
114 {
115   return myDocumentKind;
116 }
117
118 void Config_FeatureMessage::setDocumentKind(const std::string& documentKind)
119 {
120   myDocumentKind = documentKind;
121 }
122
123 void Config_FeatureMessage::setTooltip(const std::string& tooltip)
124 {
125   myTooltip = tooltip;
126 }
127
128 const std::string& Config_FeatureMessage::pluginLibrary() const
129 {
130   return myPluginLibrary;
131 }
132
133 void Config_FeatureMessage::setPluginLibrary(const std::string& myPluginLibrary)
134 {
135   this->myPluginLibrary = myPluginLibrary;
136 }
137
138 bool Config_FeatureMessage::isUseInput() const
139 {
140   return myUseInput;
141 }
142
143 bool Config_FeatureMessage::isInternal() const
144 {
145   return myInternal;
146 }
147
148 bool Config_FeatureMessage::isAutoPreview() const
149 {
150   return myIsAutoPreview;
151 }
152
153 bool Config_FeatureMessage::isModal() const
154 {
155   return myModal;
156 }
157
158 bool Config_FeatureMessage::isApplyContinue() const
159 {
160   return myIsApplyContinue;
161 }
162
163
164 void Config_FeatureMessage::setUseInput(bool isUseInput)
165 {
166   myUseInput = isUseInput;
167 }
168
169 void Config_FeatureMessage::setInternal(bool isInternal)
170 {
171   myInternal = isInternal;
172 }
173
174 void Config_FeatureMessage::setModal(bool isModal)
175 {
176   myModal = isModal;
177 }
178
179 const std::string& Config_FeatureMessage::nestedFeatures() const
180 {
181   return myNestedFeatures;
182 }
183
184 const std::string& Config_FeatureMessage::actionsWhenNested() const
185 {
186   return myActionsWhenNested;
187 }
188
189 void Config_FeatureMessage::setNestedFeatures(const std::string& theNestedFeatures)
190 {
191   myNestedFeatures = theNestedFeatures;
192 }
193
194 void Config_FeatureMessage::setActionsWhenNested(const std::string& theActions)
195 {
196   myActionsWhenNested = theActions;
197 }
198
199 void Config_FeatureMessage::setAutoPreview(bool isAutoPreview)
200 {
201   myIsAutoPreview = isAutoPreview;
202 }
203
204 void Config_FeatureMessage::setApplyContinue(bool isModal)
205 {
206   myIsApplyContinue = isModal;
207 }