diff options
author | lordjaxom <lordjaxom> | 2005-01-02 19:56:05 +0000 |
---|---|---|
committer | lordjaxom <lordjaxom> | 2005-01-02 19:56:05 +0000 |
commit | 46ba77217dfda28268497602a0a3f9892bec96fe (patch) | |
tree | a2077e70e9b01e9928c5e76b65a1986a82d3dd09 /loader.c | |
parent | 6dea443a9b83e769a56cd5c1ed52e47784d418c2 (diff) | |
download | vdr-plugin-text2skin-46ba77217dfda28268497602a0a3f9892bec96fe.tar.gz vdr-plugin-text2skin-46ba77217dfda28268497602a0a3f9892bec96fe.tar.bz2 |
- formatting issues
- implemented new display in preparation for 1.3.18
Diffstat (limited to 'loader.c')
-rw-r--r-- | loader.c | 42 |
1 files changed, 29 insertions, 13 deletions
@@ -1,5 +1,5 @@ /* - * $Id: loader.c,v 1.2 2005/01/01 23:44:36 lordjaxom Exp $ + * $Id: loader.c,v 1.3 2005/01/02 19:56:05 lordjaxom Exp $ */ #include "loader.h" @@ -64,36 +64,52 @@ void cText2SkinLoader::Load(const char *Skin) { } } -cText2SkinLoader::cText2SkinLoader(cxSkin *Data, cText2SkinI18n *I18n, cText2SkinTheme *Theme, const std::string &Skin, const std::string &Description): cSkin(Skin.c_str(), Theme->Theme()) { - mData = Data; - mI18n = I18n; - mTheme = Theme; - mDescription = Description; - +cText2SkinLoader::cText2SkinLoader(cxSkin *Data, cText2SkinI18n *I18n, cText2SkinTheme *Theme, + const std::string &Skin, const std::string &Description): + cSkin(Skin.c_str(), Theme->Theme()), + mData(Data), + mI18n(I18n), + mTheme(Theme), + mDescription(Description) +{ } -cText2SkinLoader::~cText2SkinLoader() { +cText2SkinLoader::~cText2SkinLoader() +{ delete mData; delete mI18n; delete mTheme; } -cSkinDisplayChannel *cText2SkinLoader::DisplayChannel(bool WithInfo) { +cSkinDisplayChannel *cText2SkinLoader::DisplayChannel(bool WithInfo) +{ return new cText2SkinDisplayChannel(this, WithInfo); } -cSkinDisplayMenu *cText2SkinLoader::DisplayMenu(void) { +cSkinDisplayMenu *cText2SkinLoader::DisplayMenu(void) +{ return new cText2SkinDisplayMenu(this); } -cSkinDisplayVolume *cText2SkinLoader::DisplayVolume(void) { +cSkinDisplayVolume *cText2SkinLoader::DisplayVolume(void) +{ return new cText2SkinDisplayVolume(this); } -cSkinDisplayReplay *cText2SkinLoader::DisplayReplay(bool ModeOnly) { +cSkinDisplayReplay *cText2SkinLoader::DisplayReplay(bool ModeOnly) +{ return new cText2SkinDisplayReplay(this, ModeOnly); } -cSkinDisplayMessage *cText2SkinLoader::DisplayMessage(void) { +cSkinDisplayMessage *cText2SkinLoader::DisplayMessage(void) +{ return new cText2SkinDisplayMessage(this); } + +#if VDRVERSNUM >= 10318 +cSkinDisplayTracks *cText2SkinLoader::DisplayTracks(const char *Title, int NumTracks, + const char * const *Tracks) +{ + return new cText2SkinDisplayTracks(this, Title, NumTracks, Tracks); +} +#endif |