diff options
author | lordjaxom <lordjaxom> | 2005-01-01 23:44:36 +0000 |
---|---|---|
committer | lordjaxom <lordjaxom> | 2005-01-01 23:44:36 +0000 |
commit | 4e0b98bf0cca1afa86b8c655c490392a70b56b36 (patch) | |
tree | 3bd0c33e090c67cbf948c9336317e4fdb175d9fa /xml/skin.h | |
parent | 929d806fbc6c2d05317cd7357861d371a29c290f (diff) | |
download | vdr-plugin-text2skin-4e0b98bf0cca1afa86b8c655c490392a70b56b36.tar.gz vdr-plugin-text2skin-4e0b98bf0cca1afa86b8c655c490392a70b56b36.tar.bz2 |
- some formatting issues
- moved translation to skin object
Diffstat (limited to 'xml/skin.h')
-rw-r--r-- | xml/skin.h | 27 |
1 files changed, 18 insertions, 9 deletions
@@ -1,5 +1,5 @@ /* - * $Id: skin.h,v 1.2 2004/12/21 18:35:55 lordjaxom Exp $ + * $Id: skin.h,v 1.3 2005/01/01 23:44:36 lordjaxom Exp $ */ #ifndef VDR_TEXT2SKIN_XML_SKIN_H @@ -13,6 +13,9 @@ // --- cxSkin ----------------------------------------------------------------- +class cText2SkinI18n; +class cText2SkinTheme; + class cxSkin { friend bool xStartElem(const std::string &name, std::map<std::string,std::string> &attrs); friend bool xEndElem(const std::string &name); @@ -28,17 +31,20 @@ public: }; private: - eScreenBase mBase; - txPoint mBaseOffset; - txSize mBaseSize; - std::string mName; - std::string mTitle; - std::string mVersion; + eScreenBase mBase; + txPoint mBaseOffset; + txSize mBaseSize; + std::string mName; + std::string mTitle; + std::string mVersion; + + cxDisplays mDisplays; - cxDisplays mDisplays; + cText2SkinI18n *mI18n; // TODO: should move here completely + cText2SkinTheme *mTheme; public: - cxSkin(const std::string &Name); + cxSkin(const std::string &Name, cText2SkinI18n *I18n, cText2SkinTheme *Theme); cxDisplay *Get(cxDisplay::eType Type); @@ -51,6 +57,9 @@ public: const std::string &Name(void) const { return mName; } const std::string &Title(void) const { return mTitle; } const std::string &Version(void) const { return mVersion; } + + // functions for object classes to obtain dynamic item information + std::string Translate(const std::string &Text); }; inline cxDisplay *cxSkin::Get(cxDisplay::eType Type) { |