diff options
author | fluxgen <fluxgen> | 2002-12-16 11:01:43 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2002-12-16 11:01:43 (GMT) |
commit | e0ae69d0b97b2d7adf6b3bcfd00e23c172cc1bad (patch) | |
tree | 8de8835ba71c46146bbbbaa9bb5c1146670da676 /src | |
parent | 6d4454c38628cd63731dfb9ec85dfdb9762aabd7 (diff) | |
download | fluxbox_lack-e0ae69d0b97b2d7adf6b3bcfd00e23c172cc1bad.zip fluxbox_lack-e0ae69d0b97b2d7adf6b3bcfd00e23c172cc1bad.tar.bz2 |
comments and include guard fix
Diffstat (limited to 'src')
-rw-r--r-- | src/FbTk/Theme.hh | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/src/FbTk/Theme.hh b/src/FbTk/Theme.hh index bd02666..b0d2652 100644 --- a/src/FbTk/Theme.hh +++ b/src/FbTk/Theme.hh | |||
@@ -19,10 +19,12 @@ | |||
19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
20 | // DEALINGS IN THE SOFTWARE. | 20 | // DEALINGS IN THE SOFTWARE. |
21 | 21 | ||
22 | // $Id: Theme.hh,v 1.1 2002/12/02 19:34:51 fluxgen Exp $ | 22 | // $Id: Theme.hh,v 1.2 2002/12/16 11:01:43 fluxgen Exp $ |
23 | 23 | ||
24 | // holds ThemeItem, Theme and ThemeManager | 24 | // holds ThemeItem, Theme and ThemeManager |
25 | 25 | ||
26 | #ifndef FBTK_THEME_HH | ||
27 | #define FBTK_THEME_HH | ||
26 | 28 | ||
27 | #include <string> | 29 | #include <string> |
28 | #include <list> | 30 | #include <list> |
@@ -33,9 +35,11 @@ | |||
33 | namespace FbTk { | 35 | namespace FbTk { |
34 | 36 | ||
35 | class Theme; | 37 | class Theme; |
38 | |||
39 | /// Base class for ThemeItem, holds name and altname | ||
36 | /** | 40 | /** |
37 | base class for themeitem, holds name and altname | 41 | @see ThemeItem |
38 | */ | 42 | */ |
39 | class ThemeItem_base { | 43 | class ThemeItem_base { |
40 | public: | 44 | public: |
41 | ThemeItem_base(const std::string &name, const std::string &altname): | 45 | ThemeItem_base(const std::string &name, const std::string &altname): |
@@ -50,9 +54,8 @@ private: | |||
50 | std::string m_name, m_altname; | 54 | std::string m_name, m_altname; |
51 | }; | 55 | }; |
52 | 56 | ||
53 | /** | 57 | |
54 | template ThemeItem class for things like Texture and Color | 58 | /// template ThemeItem class for things like Texture and Color |
55 | */ | ||
56 | template <typename T> | 59 | template <typename T> |
57 | class ThemeItem:public ThemeItem_base { | 60 | class ThemeItem:public ThemeItem_base { |
58 | public: | 61 | public: |
@@ -80,10 +83,7 @@ private: | |||
80 | }; | 83 | }; |
81 | 84 | ||
82 | 85 | ||
83 | 86 | /// Hold ThemeItems. Use this to create a Theme set | |
84 | /** | ||
85 | Hold themeitems. Use this to create a Theme set | ||
86 | */ | ||
87 | class Theme { | 87 | class Theme { |
88 | public: | 88 | public: |
89 | explicit Theme(int screen_num); // create a theme for a specific screen | 89 | explicit Theme(int screen_num); // create a theme for a specific screen |
@@ -105,8 +105,9 @@ private: | |||
105 | }; | 105 | }; |
106 | 106 | ||
107 | 107 | ||
108 | /// Singleton theme manager | ||
108 | /** | 109 | /** |
109 | singleton theme manager | 110 | Use this to load all the registred themes |
110 | */ | 111 | */ |
111 | class ThemeManager { | 112 | class ThemeManager { |
112 | public: | 113 | public: |
@@ -120,7 +121,7 @@ private: | |||
120 | 121 | ||
121 | friend class FbTk::Theme; // so only theme can register itself in constructor | 122 | friend class FbTk::Theme; // so only theme can register itself in constructor |
122 | /// @return false if screen_num if out of | 123 | /// @return false if screen_num if out of |
123 | // range or theme already registered, else true | 124 | /// range or theme already registered, else true |
124 | bool registerTheme(FbTk::Theme &tm); | 125 | bool registerTheme(FbTk::Theme &tm); |
125 | /// @return false if theme isn't registred in the manager | 126 | /// @return false if theme isn't registred in the manager |
126 | bool unregisterTheme(FbTk::Theme &tm); | 127 | bool unregisterTheme(FbTk::Theme &tm); |
@@ -159,4 +160,5 @@ void Theme::remove(ThemeItem<T> &item) { | |||
159 | 160 | ||
160 | }; // end namespace FbTk | 161 | }; // end namespace FbTk |
161 | 162 | ||
163 | #endif // FBTK_THEME_HH | ||
162 | 164 | ||