diff options
Diffstat (limited to 'src/ScreenResources.cc')
-rw-r--r-- | src/ScreenResources.cc | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/ScreenResources.cc b/src/ScreenResources.cc index 70179b6..3d153e6 100644 --- a/src/ScreenResources.cc +++ b/src/ScreenResources.cc | |||
@@ -124,6 +124,30 @@ void FbTk::Resource<FbTk::MenuTheme::MenuMode>::setFromString(const char *str) { | |||
124 | } | 124 | } |
125 | 125 | ||
126 | template<> | 126 | template<> |
127 | std::string FbTk::Resource<BScreen::ResizeModel>:: | ||
128 | getString() { | ||
129 | switch (m_value) { | ||
130 | case BScreen::QUADRANTRESIZE: | ||
131 | return std::string("Quadrant"); | ||
132 | case BScreen::BOTTOMRESIZE: | ||
133 | return std::string("Bottom"); | ||
134 | }; | ||
135 | |||
136 | return std::string("Default"); | ||
137 | } | ||
138 | |||
139 | template<> | ||
140 | void FbTk::Resource<BScreen::ResizeModel>:: | ||
141 | setFromString(char const *strval) { | ||
142 | if (strcasecmp(strval, "Bottom") == 0) { | ||
143 | m_value = BScreen::BOTTOMRESIZE; | ||
144 | } else if (strcasecmp(strval, "Quadrant") == 0) { | ||
145 | m_value = BScreen::QUADRANTRESIZE; | ||
146 | } else | ||
147 | m_value = BScreen::DEFAULTRESIZE; | ||
148 | } | ||
149 | |||
150 | template<> | ||
127 | std::string FbTk::Resource<BScreen::FocusModel>:: | 151 | std::string FbTk::Resource<BScreen::FocusModel>:: |
128 | getString() { | 152 | getString() { |
129 | switch (m_value) { | 153 | switch (m_value) { |