diff options
author | akir <akir> | 2004-10-18 01:24:24 (GMT) |
---|---|---|
committer | akir <akir> | 2004-10-18 01:24:24 (GMT) |
commit | 2760b03b2e0a7ee93e4ce70daf73faa609076dff (patch) | |
tree | ec5b2a3312ed65016ecfb1922cc9f5183a7d0d75 /src/ScreenResources.cc | |
parent | 65ce32a28e59140f7ad9e599518fabc14712010d (diff) | |
download | fluxbox-2760b03b2e0a7ee93e4ce70daf73faa609076dff.zip fluxbox-2760b03b2e0a7ee93e4ce70daf73faa609076dff.tar.bz2 |
cosmetic changes, added ResizeModel to ScreenRessources
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) { |