summaryrefslogtreecommitdiff
path: root/xml/skin.h
diff options
context:
space:
mode:
authorlordjaxom <lordjaxom>2005-01-01 23:44:36 +0000
committerlordjaxom <lordjaxom>2005-01-01 23:44:36 +0000
commit4e0b98bf0cca1afa86b8c655c490392a70b56b36 (patch)
tree3bd0c33e090c67cbf948c9336317e4fdb175d9fa /xml/skin.h
parent929d806fbc6c2d05317cd7357861d371a29c290f (diff)
downloadvdr-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.h27
1 files changed, 18 insertions, 9 deletions
diff --git a/xml/skin.h b/xml/skin.h
index b44a498..b29bdbd 100644
--- a/xml/skin.h
+++ b/xml/skin.h
@@ -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) {