summaryrefslogtreecommitdiff
path: root/src/ScreenResources.cc
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2005-11-22 21:59:48 (GMT)
committerfluxgen <fluxgen>2005-11-22 21:59:48 (GMT)
commit4d77f7fbf188759a8feb50f51c1573b86b48663b (patch)
tree01bb47e65619c2f415087b777561e4d6369bcf77 /src/ScreenResources.cc
parente62176913405f98fce84a19d63cb211c6cfc3713 (diff)
downloadfluxbox_lack-4d77f7fbf188759a8feb50f51c1573b86b48663b.zip
fluxbox_lack-4d77f7fbf188759a8feb50f51c1573b86b48663b.tar.bz2
new background style item, making rootCommand in styles obsolete
Diffstat (limited to 'src/ScreenResources.cc')
-rw-r--r--src/ScreenResources.cc29
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
46template <> 46template <>
47string FbTk::Resource<BScreen::PlacementPolicy>::getString() { 47string 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
73template <> 73template <>
74string FbTk::Resource<BScreen::RowDirection>::getString() { 74string 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
97template <> 97template <>
98string FbTk::Resource<BScreen::ColumnDirection>::getString() { 98string 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
109template <> 109template <>
110string FbTk::Resource<FbTk::MenuTheme::MenuMode>::getString() { 110string 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
130template<> 130
131std::string FbTk::Resource<BScreen::ResizeModel>::getString() { 131std::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
153template<> 153template<>
154std::string FbTk::Resource<BScreen::FocusModel>::getString() { 154std::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
176template<> 176template<>
177std::string FbTk::Resource<BScreen::TabFocusModel>::getString() { 177
178std::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
199template<> 200template<>
200std::string FbTk::Resource<BScreen::FollowModel>::getString() { 201std::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
226template<> 227template<>
227std::string FbTk::Resource<FbTk::GContext::LineStyle>::getString() { 228std::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
256template<> 257template<>
257std::string FbTk::Resource<FbTk::GContext::JoinStyle>::getString() { 258std::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
286template<> 287template<>
287std::string FbTk::Resource<FbTk::GContext::CapStyle>::getString() { 288std::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";