aboutsummaryrefslogtreecommitdiff
path: root/src/ScreenResources.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/ScreenResources.cc')
-rw-r--r--src/ScreenResources.cc24
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
126template<> 126template<>
127std::string FbTk::Resource<BScreen::ResizeModel>::
128getString() {
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
139template<>
140void FbTk::Resource<BScreen::ResizeModel>::
141setFromString(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
150template<>
127std::string FbTk::Resource<BScreen::FocusModel>:: 151std::string FbTk::Resource<BScreen::FocusModel>::
128getString() { 152getString() {
129 switch (m_value) { 153 switch (m_value) {