all repos — fluxbox @ e0ae69d0b97b2d7adf6b3bcfd00e23c172cc1bad

custom fork of the fluxbox windowmanager

comments and include guard fix
fluxgen fluxgen
commit

e0ae69d0b97b2d7adf6b3bcfd00e23c172cc1bad

parent

6d4454c38628cd63731dfb9ec85dfdb9762aabd7

1 files changed, 14 insertions(+), 12 deletions(-)

jump to
M src/FbTk/Theme.hhsrc/FbTk/Theme.hh

@@ -19,10 +19,12 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Theme.hh,v 1.1 2002/12/02 19:34:51 fluxgen Exp $ +// $Id: Theme.hh,v 1.2 2002/12/16 11:01:43 fluxgen Exp $ // holds ThemeItem, Theme and ThemeManager +#ifndef FBTK_THEME_HH +#define FBTK_THEME_HH #include <string> #include <list>

@@ -33,9 +35,11 @@

namespace FbTk { class Theme; + +/// Base class for ThemeItem, holds name and altname /** - base class for themeitem, holds name and altname - */ + @see ThemeItem +*/ class ThemeItem_base { public: ThemeItem_base(const std::string &name, const std::string &altname):

@@ -50,9 +54,8 @@ private:

std::string m_name, m_altname; }; -/** - template ThemeItem class for things like Texture and Color -*/ + +/// template ThemeItem class for things like Texture and Color template <typename T> class ThemeItem:public ThemeItem_base { public:

@@ -80,10 +83,7 @@ FbTk::Theme &m_tm;

}; - -/** - Hold themeitems. Use this to create a Theme set -*/ +/// Hold ThemeItems. Use this to create a Theme set class Theme { public: explicit Theme(int screen_num); // create a theme for a specific screen

@@ -105,8 +105,9 @@ ItemList m_themeitems;

}; +/// Singleton theme manager /** - singleton theme manager + Use this to load all the registred themes */ class ThemeManager { public:

@@ -120,7 +121,7 @@ ~ThemeManager() { }

friend class FbTk::Theme; // so only theme can register itself in constructor /// @return false if screen_num if out of - // range or theme already registered, else true + /// range or theme already registered, else true bool registerTheme(FbTk::Theme &tm); /// @return false if theme isn't registred in the manager bool unregisterTheme(FbTk::Theme &tm);

@@ -159,4 +160,5 @@ }

}; // end namespace FbTk +#endif // FBTK_THEME_HH