diff options
author | fluxgen <fluxgen> | 2006-02-18 11:39:38 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2006-02-18 11:39:38 (GMT) |
commit | 4d52797b955b8e38b9e49802981e69fb34a734bc (patch) | |
tree | d541712bb9720c47fa58fda7476528649c32fbca /src/ScreenResources.cc | |
parent | d23eeeaa4e1ed5adb76d97eb47dd0b88b6dfed3f (diff) | |
download | fluxbox-4d52797b955b8e38b9e49802981e69fb34a734bc.zip fluxbox-4d52797b955b8e38b9e49802981e69fb34a734bc.tar.bz2 |
moved all focus handling to class FocusControl
Diffstat (limited to 'src/ScreenResources.cc')
-rw-r--r-- | src/ScreenResources.cc | 47 |
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 | ||
153 | template<> | 153 | template<> |
154 | std::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 | |||
165 | template<> | ||
166 | void FbTk::Resource<BScreen::FocusModel>:: | ||
167 | setFromString(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 | |||
176 | template<> | ||
177 | |||
178 | std::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 | |||
189 | template<> | ||
190 | void FbTk::Resource<BScreen::TabFocusModel>:: | ||
191 | setFromString(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 | |||
200 | template<> | ||
201 | std::string FbTk::Resource<BScreen::FollowModel>::getString() const { | 154 | std::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: |