diff options
author | louis <louis.braun@gmx.de> | 2016-02-28 12:32:02 +0100 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2016-02-28 12:32:02 +0100 |
commit | b288ead2c506e31b660ac56a12787b8cdcf07069 (patch) | |
tree | 6d2c76bed0af0cd6857de2242bbec32fc3b6f238 /coreengine | |
parent | 3c038ad1c73d85dd75cc5eb1e746ef7298cf5843 (diff) | |
download | vdr-plugin-skindesigner-b288ead2c506e31b660ac56a12787b8cdcf07069.tar.gz vdr-plugin-skindesigner-b288ead2c506e31b660ac56a12787b8cdcf07069.tar.bz2 |
added poster and banner to channels and timers menu current view
Diffstat (limited to 'coreengine')
-rw-r--r-- | coreengine/definitions.h | 8 | ||||
-rw-r--r-- | coreengine/listelements.c | 13 | ||||
-rw-r--r-- | coreengine/listelements.h | 4 |
3 files changed, 22 insertions, 3 deletions
diff --git a/coreengine/definitions.h b/coreengine/definitions.h index c1da5ce..2c49707 100644 --- a/coreengine/definitions.h +++ b/coreengine/definitions.h @@ -830,6 +830,7 @@ enum class eCeMenuChannelsST { presenteventdate, presenteventdurationminutes, posterpath, + bannerpath, nexteventtitle, nexteventstart, nexteventstop, @@ -861,6 +862,9 @@ enum class eCeMenuChannelsIT { hasposter, posterwidth, posterheight, + hasbanner, + bannerwidth, + bannerheight, nexteventduration, nexteventdurationhours, count @@ -920,6 +924,7 @@ enum class eCeMenuTimersST { eventshorttext, eventdescription, posterpath, + bannerpath, count }; @@ -940,6 +945,9 @@ enum class eCeMenuTimersIT { hasposter, posterwidth, posterheight, + hasbanner, + bannerwidth, + bannerheight, count }; diff --git a/coreengine/listelements.c b/coreengine/listelements.c index 71acc24..b9fd0c8 100644 --- a/coreengine/listelements.c +++ b/coreengine/listelements.c @@ -968,6 +968,7 @@ void cCeMenuChannels::SetTokenContainer(void) { tokenContainer->DefineStringToken("{presenteventdate}", (int)eCeMenuChannelsST::presenteventdate); tokenContainer->DefineStringToken("{presenteventdurationminutes}", (int)eCeMenuChannelsST::presenteventdurationminutes); tokenContainer->DefineStringToken("{posterpath}", (int)eCeMenuChannelsST::posterpath); + tokenContainer->DefineStringToken("{bannerpath}", (int)eCeMenuChannelsST::bannerpath); tokenContainer->DefineStringToken("{nexteventtitle}", (int)eCeMenuChannelsST::nexteventtitle); tokenContainer->DefineStringToken("{nexteventstart}", (int)eCeMenuChannelsST::nexteventstart); tokenContainer->DefineStringToken("{nexteventstop}", (int)eCeMenuChannelsST::nexteventstop); @@ -995,6 +996,9 @@ void cCeMenuChannels::SetTokenContainer(void) { tokenContainer->DefineIntToken("{hasposter}", (int)eCeMenuChannelsIT::hasposter); tokenContainer->DefineIntToken("{posterwidth}", (int)eCeMenuChannelsIT::posterwidth); tokenContainer->DefineIntToken("{posterheight}", (int)eCeMenuChannelsIT::posterheight); + tokenContainer->DefineIntToken("{hasbanner}", (int)eCeMenuChannelsIT::hasbanner); + tokenContainer->DefineIntToken("{bannerwidth}", (int)eCeMenuChannelsIT::bannerwidth); + tokenContainer->DefineIntToken("{bannerheight}", (int)eCeMenuChannelsIT::bannerheight); tokenContainer->DefineIntToken("{nexteventduration}", (int)eCeMenuChannelsIT::nexteventduration); tokenContainer->DefineIntToken("{nexteventdurationhours}", (int)eCeMenuChannelsIT::nexteventdurationhours); tokenContainer->DefineLoopToken("{schedule[title]}", (int)eCeMenuChannelsLT::title); @@ -1060,7 +1064,8 @@ bool cCeMenuChannels::Parse(bool forced) { tokenContainer->AddIntToken((int)eCeMenuChannelsIT::presenteventduration, presentEvent->Duration() / 60); tokenContainer->AddIntToken((int)eCeMenuChannelsIT::presenteventdurationhours, presentEvent->Duration() / 3600); tokenContainer->AddStringToken((int)eCeMenuChannelsST::presenteventdurationminutes, *cString::sprintf("%.2d", (presentEvent->Duration() / 60)%60)); - //SetScraperPoster(presentEvent); + if (LoadFullScrapInfo(presentEvent, NULL)) + SetScraperPosterBannerChannel(tokenContainer); } const cList<cEvent> *events = schedule->Events(); if (events && presentEvent) { @@ -1276,6 +1281,7 @@ void cCeMenuTimers::SetTokenContainer(void) { tokenContainer->DefineStringToken("{eventshorttext}", (int)eCeMenuTimersST::eventshorttext); tokenContainer->DefineStringToken("{eventdescription}", (int)eCeMenuTimersST::eventdescription); tokenContainer->DefineStringToken("{posterpath}", (int)eCeMenuTimersST::posterpath); + tokenContainer->DefineStringToken("{bannerpath}", (int)eCeMenuTimersST::bannerpath); tokenContainer->DefineIntToken("{menuitemx}", (int)eCeMenuTimersIT::menuitemx); tokenContainer->DefineIntToken("{menuitemy}", (int)eCeMenuTimersIT::menuitemy); tokenContainer->DefineIntToken("{menuitemwidth}", (int)eCeMenuTimersIT::menuitemwidth); @@ -1292,6 +1298,9 @@ void cCeMenuTimers::SetTokenContainer(void) { tokenContainer->DefineIntToken("{hasposter}", (int)eCeMenuTimersIT::hasposter); tokenContainer->DefineIntToken("{posterwidth}", (int)eCeMenuTimersIT::posterwidth); tokenContainer->DefineIntToken("{posterheight}", (int)eCeMenuTimersIT::posterheight); + tokenContainer->DefineIntToken("{hasbanner}", (int)eCeMenuTimersIT::hasbanner); + tokenContainer->DefineIntToken("{bannerwidth}", (int)eCeMenuTimersIT::bannerwidth); + tokenContainer->DefineIntToken("{bannerheight}", (int)eCeMenuTimersIT::bannerheight); InheritTokenContainer(); } @@ -1374,6 +1383,8 @@ bool cCeMenuTimers::Parse(bool forced) { tokenContainer->AddStringToken((int)eCeMenuTimersST::eventstop, *event->GetEndTimeString()); tokenContainer->AddStringToken((int)eCeMenuTimersST::eventshorttext, event->ShortText()); tokenContainer->AddStringToken((int)eCeMenuTimersST::eventdescription, event->Description()); + if (LoadFullScrapInfo(event, NULL)) + SetScraperPosterBannerTimer(tokenContainer); } return true; } diff --git a/coreengine/listelements.h b/coreengine/listelements.h index e1520c3..d3dfc84 100644 --- a/coreengine/listelements.h +++ b/coreengine/listelements.h @@ -195,7 +195,7 @@ public: /****************************************************************** * cCeMenuChannels ******************************************************************/ -class cCeMenuChannels : public cCurrentElement { +class cCeMenuChannels : public cCurrentElement, public cScrapManager { private: const cChannel *channel; bool withProvider; @@ -231,7 +231,7 @@ public: /****************************************************************** * cCeMenuTimers ******************************************************************/ -class cCeMenuTimers : public cCurrentElement { +class cCeMenuTimers : public cCurrentElement, public cScrapManager { private: const cTimer *timer; public: |