summaryrefslogtreecommitdiff
path: root/src/ScreenResources.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/ScreenResources.cc')
-rw-r--r--src/ScreenResources.cc47
1 files changed, 0 insertions, 47 deletions
diff --git a/src/ScreenResources.cc b/src/ScreenResources.cc
index 6108b30..7b4d0c2 100644
--- a/src/ScreenResources.cc
+++ b/src/ScreenResources.cc
@@ -151,53 +151,6 @@ setFromString(char const *strval) {
151} 151}
152 152
153template<> 153template<>
154std::string FbTk::Resource<BScreen::FocusModel>::getString() const {
155 switch (m_value) {
156 case BScreen::MOUSEFOCUS:
157 return string("MouseFocus");
158 case BScreen::CLICKFOCUS:
159 return string("ClickFocus");
160 }
161 // default string
162 return string("ClickFocus");
163}
164
165template<>
166void FbTk::Resource<BScreen::FocusModel>::
167setFromString(char const *strval) {
168 if (strcasecmp(strval, "MouseFocus") == 0)
169 m_value = BScreen::MOUSEFOCUS;
170 else if (strcasecmp(strval, "ClickToFocus") == 0)
171 m_value = BScreen::CLICKFOCUS;
172 else
173 setDefaultValue();
174}
175
176template<>
177
178std::string FbTk::Resource<BScreen::TabFocusModel>::getString() const {
179 switch (m_value) {
180 case BScreen::MOUSETABFOCUS:
181 return string("SloppyTabFocus");
182 case BScreen::CLICKTABFOCUS:
183 return string("ClickToTabFocus");
184 }
185 // default string
186 return string("ClickToTabFocus");
187}
188
189template<>
190void FbTk::Resource<BScreen::TabFocusModel>::
191setFromString(char const *strval) {
192 if (strcasecmp(strval, "SloppyTabFocus") == 0 )
193 m_value = BScreen::MOUSETABFOCUS;
194 else if (strcasecmp(strval, "ClickToTabFocus") == 0)
195 m_value = BScreen::CLICKTABFOCUS;
196 else
197 setDefaultValue();
198}
199
200template<>
201std::string FbTk::Resource<BScreen::FollowModel>::getString() const { 154std::string FbTk::Resource<BScreen::FollowModel>::getString() const {
202 switch (m_value) { 155 switch (m_value) {
203 case BScreen::FOLLOW_ACTIVE_WINDOW: 156 case BScreen::FOLLOW_ACTIVE_WINDOW: