diff options
Diffstat (limited to 'src/ScreenResources.cc')
-rw-r--r-- | src/ScreenResources.cc | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/ScreenResources.cc b/src/ScreenResources.cc index e4d712a..c346c12 100644 --- a/src/ScreenResources.cc +++ b/src/ScreenResources.cc | |||
@@ -58,33 +58,6 @@ void FbTk::Resource<FbTk::MenuTheme::MenuMode>::setFromString(const char *str) { | |||
58 | setDefaultValue(); | 58 | setDefaultValue(); |
59 | } | 59 | } |
60 | 60 | ||
61 | template <> | ||
62 | string FbTk::Resource<BScreen::ResizeModel>::getString() const { | ||
63 | switch (m_value) { | ||
64 | case BScreen::QUADRANTRESIZE: | ||
65 | return string("Quadrant"); | ||
66 | case BScreen::BOTTOMRESIZE: | ||
67 | return string("Bottom"); | ||
68 | case BScreen::CENTERRESIZE: | ||
69 | return string("Center"); | ||
70 | } | ||
71 | |||
72 | return string("Default"); | ||
73 | } | ||
74 | |||
75 | template<> | ||
76 | void FbTk::Resource<BScreen::ResizeModel>:: | ||
77 | setFromString(char const *strval) { | ||
78 | if (strcasecmp(strval, "Bottom") == 0) { | ||
79 | m_value = BScreen::BOTTOMRESIZE; | ||
80 | } else if (strcasecmp(strval, "Quadrant") == 0) { | ||
81 | m_value = BScreen::QUADRANTRESIZE; | ||
82 | } else if (strcasecmp(strval, "Center") == 0) { | ||
83 | m_value = BScreen::CENTERRESIZE; | ||
84 | } else | ||
85 | m_value = BScreen::DEFAULTRESIZE; | ||
86 | } | ||
87 | |||
88 | template<> | 61 | template<> |
89 | string FbTk::Resource<BScreen::FollowModel>::getString() const { | 62 | string FbTk::Resource<BScreen::FollowModel>::getString() const { |
90 | switch (m_value) { | 63 | switch (m_value) { |