diff options
author | Mark Tiefenbruck <mark@fluxbox.org> | 2008-10-05 02:49:28 (GMT) |
---|---|---|
committer | Mark Tiefenbruck <mark@fluxbox.org> | 2008-10-05 02:49:28 (GMT) |
commit | c033c201c4254c11804713dc427d22940da05438 (patch) | |
tree | b6fa8411556c4633c2deb396564f9ff2307beae7 /src/ScreenResources.cc | |
parent | 86a072e7fdbaa92744eb78ecc2e39e462477fd2e (diff) | |
download | fluxbox-c033c201c4254c11804713dc427d22940da05438.zip fluxbox-c033c201c4254c11804713dc427d22940da05438.tar.bz2 |
remove menu modes
Diffstat (limited to 'src/ScreenResources.cc')
-rw-r--r-- | src/ScreenResources.cc | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/src/ScreenResources.cc b/src/ScreenResources.cc deleted file mode 100644 index 159ecaa..0000000 --- a/src/ScreenResources.cc +++ /dev/null | |||
@@ -1,55 +0,0 @@ | |||
1 | // ScreenResources.cc for Fluxbox Window Manager | ||
2 | // Copyright (c) 2004 - 2006 Henrik Kinnunen (fluxgen at fluxbox dot org) | ||
3 | // | ||
4 | // Permission is hereby granted, free of charge, to any person obtaining a | ||
5 | // copy of this software and associated documentation files (the "Software"), | ||
6 | // to deal in the Software without restriction, including without limitation | ||
7 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, | ||
8 | // and/or sell copies of the Software, and to permit persons to whom the | ||
9 | // Software is furnished to do so, subject to the following conditions: | ||
10 | // | ||
11 | // The above copyright notice and this permission notice shall be included in | ||
12 | // all copies or substantial portions of the Software. | ||
13 | // | ||
14 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
15 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
16 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | ||
17 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
18 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||
19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | ||
20 | // DEALINGS IN THE SOFTWARE. | ||
21 | |||
22 | // holds screen resource handling | ||
23 | |||
24 | #include "Screen.hh" | ||
25 | #ifdef HAVE_CSTRING | ||
26 | #include <cstring> | ||
27 | #else | ||
28 | #include <string.h> | ||
29 | #endif | ||
30 | |||
31 | using std::string; | ||
32 | |||
33 | namespace FbTk { | ||
34 | |||
35 | template <> | ||
36 | string FbTk::Resource<FbTk::MenuTheme::MenuMode>::getString() const { | ||
37 | switch (*(*this)) { | ||
38 | case FbTk::MenuTheme::DELAY_OPEN: | ||
39 | return string("Delay"); | ||
40 | case FbTk::MenuTheme::CLICK_OPEN: | ||
41 | return string("Click"); | ||
42 | } | ||
43 | return string("Delay"); | ||
44 | } | ||
45 | |||
46 | template <> | ||
47 | void FbTk::Resource<FbTk::MenuTheme::MenuMode>::setFromString(const char *str) { | ||
48 | if (strcasecmp(str, "Delay") == 0) | ||
49 | *(*this) = FbTk::MenuTheme::DELAY_OPEN; | ||
50 | else if (strcasecmp(str, "Click") == 0) | ||
51 | *(*this) = FbTk::MenuTheme::CLICK_OPEN; | ||
52 | else | ||
53 | setDefaultValue(); | ||
54 | } | ||
55 | } // end namespace FbTk | ||