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