aboutsummaryrefslogtreecommitdiff
path: root/src/ScreenResources.cc
diff options
context:
space:
mode:
authorakir <akir>2004-10-18 01:24:24 (GMT)
committerakir <akir>2004-10-18 01:24:24 (GMT)
commit2760b03b2e0a7ee93e4ce70daf73faa609076dff (patch)
treeec5b2a3312ed65016ecfb1922cc9f5183a7d0d75 /src/ScreenResources.cc
parent65ce32a28e59140f7ad9e599518fabc14712010d (diff)
downloadfluxbox-2760b03b2e0a7ee93e4ce70daf73faa609076dff.zip
fluxbox-2760b03b2e0a7ee93e4ce70daf73faa609076dff.tar.bz2
cosmetic changes, added ResizeModel to ScreenRessources
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) {