aboutsummaryrefslogtreecommitdiff
path: root/src/ScreenResources.cc
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2006-02-18 11:39:38 (GMT)
committerfluxgen <fluxgen>2006-02-18 11:39:38 (GMT)
commit4d52797b955b8e38b9e49802981e69fb34a734bc (patch)
treed541712bb9720c47fa58fda7476528649c32fbca /src/ScreenResources.cc
parentd23eeeaa4e1ed5adb76d97eb47dd0b88b6dfed3f (diff)
downloadfluxbox-4d52797b955b8e38b9e49802981e69fb34a734bc.zip
fluxbox-4d52797b955b8e38b9e49802981e69fb34a734bc.tar.bz2
moved all focus handling to class FocusControl
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: