diff options
Diffstat (limited to 'src/ScreenResources.cc')
-rw-r--r-- | src/ScreenResources.cc | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/src/ScreenResources.cc b/src/ScreenResources.cc index d541ae7..7d97cd8 100644 --- a/src/ScreenResources.cc +++ b/src/ScreenResources.cc | |||
@@ -44,7 +44,7 @@ void FbTk::Resource<BScreen::PlacementPolicy>::setFromString(const char *str) { | |||
44 | } | 44 | } |
45 | 45 | ||
46 | template <> | 46 | template <> |
47 | string FbTk::Resource<BScreen::PlacementPolicy>::getString() { | 47 | string FbTk::Resource<BScreen::PlacementPolicy>::getString() const { |
48 | switch (*(*this)) { | 48 | switch (*(*this)) { |
49 | case BScreen::ROWSMARTPLACEMENT: | 49 | case BScreen::ROWSMARTPLACEMENT: |
50 | return "RowSmartPlacement"; | 50 | return "RowSmartPlacement"; |
@@ -71,7 +71,7 @@ void FbTk::Resource<BScreen::RowDirection>::setFromString(const char *str) { | |||
71 | } | 71 | } |
72 | 72 | ||
73 | template <> | 73 | template <> |
74 | string FbTk::Resource<BScreen::RowDirection>::getString() { | 74 | string FbTk::Resource<BScreen::RowDirection>::getString() const { |
75 | switch (*(*this)) { | 75 | switch (*(*this)) { |
76 | case BScreen::LEFTRIGHT: | 76 | case BScreen::LEFTRIGHT: |
77 | return "LeftToRight"; | 77 | return "LeftToRight"; |
@@ -95,7 +95,7 @@ void FbTk::Resource<BScreen::ColumnDirection>::setFromString(const char *str) { | |||
95 | } | 95 | } |
96 | 96 | ||
97 | template <> | 97 | template <> |
98 | string FbTk::Resource<BScreen::ColumnDirection>::getString() { | 98 | string FbTk::Resource<BScreen::ColumnDirection>::getString() const { |
99 | switch (*(*this)) { | 99 | switch (*(*this)) { |
100 | case BScreen::TOPBOTTOM: | 100 | case BScreen::TOPBOTTOM: |
101 | return "TopToBottom"; | 101 | return "TopToBottom"; |
@@ -107,7 +107,7 @@ string FbTk::Resource<BScreen::ColumnDirection>::getString() { | |||
107 | } | 107 | } |
108 | 108 | ||
109 | template <> | 109 | template <> |
110 | string FbTk::Resource<FbTk::MenuTheme::MenuMode>::getString() { | 110 | string FbTk::Resource<FbTk::MenuTheme::MenuMode>::getString() const { |
111 | switch (*(*this)) { | 111 | switch (*(*this)) { |
112 | case FbTk::MenuTheme::DELAY_OPEN: | 112 | case FbTk::MenuTheme::DELAY_OPEN: |
113 | return string("Delay"); | 113 | return string("Delay"); |
@@ -127,14 +127,14 @@ void FbTk::Resource<FbTk::MenuTheme::MenuMode>::setFromString(const char *str) { | |||
127 | setDefaultValue(); | 127 | setDefaultValue(); |
128 | } | 128 | } |
129 | 129 | ||
130 | template<> | 130 | |
131 | std::string FbTk::Resource<BScreen::ResizeModel>::getString() { | 131 | std::string FbTk::Resource<BScreen::ResizeModel>::getString() const { |
132 | switch (m_value) { | 132 | switch (m_value) { |
133 | case BScreen::QUADRANTRESIZE: | 133 | case BScreen::QUADRANTRESIZE: |
134 | return std::string("Quadrant"); | 134 | return std::string("Quadrant"); |
135 | case BScreen::BOTTOMRESIZE: | 135 | case BScreen::BOTTOMRESIZE: |
136 | return std::string("Bottom"); | 136 | return std::string("Bottom"); |
137 | }; | 137 | } |
138 | 138 | ||
139 | return std::string("Default"); | 139 | return std::string("Default"); |
140 | } | 140 | } |
@@ -151,7 +151,7 @@ setFromString(char const *strval) { | |||
151 | } | 151 | } |
152 | 152 | ||
153 | template<> | 153 | template<> |
154 | std::string FbTk::Resource<BScreen::FocusModel>::getString() { | 154 | std::string FbTk::Resource<BScreen::FocusModel>::getString() const { |
155 | switch (m_value) { | 155 | switch (m_value) { |
156 | case BScreen::MOUSEFOCUS: | 156 | case BScreen::MOUSEFOCUS: |
157 | return string("MouseFocus"); | 157 | return string("MouseFocus"); |
@@ -174,7 +174,8 @@ setFromString(char const *strval) { | |||
174 | } | 174 | } |
175 | 175 | ||
176 | template<> | 176 | template<> |
177 | std::string FbTk::Resource<BScreen::TabFocusModel>::getString() { | 177 | |
178 | std::string FbTk::Resource<BScreen::TabFocusModel>::getString() const { | ||
178 | switch (m_value) { | 179 | switch (m_value) { |
179 | case BScreen::MOUSETABFOCUS: | 180 | case BScreen::MOUSETABFOCUS: |
180 | return string("SloppyTabFocus"); | 181 | return string("SloppyTabFocus"); |
@@ -197,7 +198,7 @@ setFromString(char const *strval) { | |||
197 | } | 198 | } |
198 | 199 | ||
199 | template<> | 200 | template<> |
200 | std::string FbTk::Resource<BScreen::FollowModel>::getString() { | 201 | std::string FbTk::Resource<BScreen::FollowModel>::getString() const { |
201 | switch (m_value) { | 202 | switch (m_value) { |
202 | case BScreen::FOLLOW_ACTIVE_WINDOW: | 203 | case BScreen::FOLLOW_ACTIVE_WINDOW: |
203 | return std::string("Follow"); | 204 | return std::string("Follow"); |
@@ -205,7 +206,7 @@ std::string FbTk::Resource<BScreen::FollowModel>::getString() { | |||
205 | case BScreen::FETCH_ACTIVE_WINDOW: | 206 | case BScreen::FETCH_ACTIVE_WINDOW: |
206 | return std::string("Current"); | 207 | return std::string("Current"); |
207 | break; | 208 | break; |
208 | }; | 209 | } |
209 | 210 | ||
210 | return std::string("Ignore"); | 211 | return std::string("Ignore"); |
211 | } | 212 | } |
@@ -224,7 +225,7 @@ setFromString(char const *strval) { | |||
224 | } | 225 | } |
225 | 226 | ||
226 | template<> | 227 | template<> |
227 | std::string FbTk::Resource<FbTk::GContext::LineStyle>::getString() { | 228 | std::string FbTk::Resource<FbTk::GContext::LineStyle>::getString() const { |
228 | switch(m_value) { | 229 | switch(m_value) { |
229 | case FbTk::GContext::LINESOLID: | 230 | case FbTk::GContext::LINESOLID: |
230 | return "LineSolid"; | 231 | return "LineSolid"; |
@@ -254,7 +255,7 @@ void FbTk::Resource<FbTk::GContext::LineStyle> | |||
254 | } | 255 | } |
255 | 256 | ||
256 | template<> | 257 | template<> |
257 | std::string FbTk::Resource<FbTk::GContext::JoinStyle>::getString() { | 258 | std::string FbTk::Resource<FbTk::GContext::JoinStyle>::getString() const { |
258 | switch(m_value) { | 259 | switch(m_value) { |
259 | case FbTk::GContext::JOINMITER: | 260 | case FbTk::GContext::JOINMITER: |
260 | return "JoinMiter"; | 261 | return "JoinMiter"; |
@@ -284,7 +285,7 @@ void FbTk::Resource<FbTk::GContext::JoinStyle> | |||
284 | } | 285 | } |
285 | 286 | ||
286 | template<> | 287 | template<> |
287 | std::string FbTk::Resource<FbTk::GContext::CapStyle>::getString() { | 288 | std::string FbTk::Resource<FbTk::GContext::CapStyle>::getString() const { |
288 | switch(m_value) { | 289 | switch(m_value) { |
289 | case FbTk::GContext::CAPNOTLAST: | 290 | case FbTk::GContext::CAPNOTLAST: |
290 | return "CapNotLast"; | 291 | return "CapNotLast"; |