diff options
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: |