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