mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 17:58:31 +02:00
added some tokens in displaymenuschedules
This commit is contained in:
parent
688ad9698e
commit
e14982a4be
@ -31,12 +31,14 @@
|
||||
{duration} duration of event
|
||||
{current} true if item is currently selected
|
||||
{separator} true if item is a list separator
|
||||
{channelid} ChannelID as path to display channel logo
|
||||
{channelname} Channel Name (for what's on now and next)
|
||||
{channelid} ChannelID as path to display channel logo (for what's on now and next)
|
||||
{whatson} true if menu "What's on" is displayed
|
||||
{whatsonnow} true if menu "What's on now" is displayed
|
||||
{whatsonnext} true if menu "What's on next" is displayed
|
||||
{timerpartitial} true if partitial timer is set for the event
|
||||
{timerfull} true if full timer is set for the event
|
||||
{hasVPS} true if event has VPS information
|
||||
-->
|
||||
<listelement>
|
||||
<!-- Background -->
|
||||
|
@ -40,12 +40,14 @@
|
||||
{duration} duration of event
|
||||
{current} true if item is currently selected
|
||||
{separator} true if item is a list separator
|
||||
{channelid} ChannelID as path to display channel logo
|
||||
{channelname} Channel Name (for what's on now and next)
|
||||
{channelid} ChannelID as path to display channel logo (for what's on now and next)
|
||||
{whatson} true if menu "What's on" is displayed
|
||||
{whatsonnow} true if menu "What's on now" is displayed
|
||||
{whatsonnext} true if menu "What's on next" is displayed
|
||||
{timerpartitial} true if partitial timer is set for the event
|
||||
{timerfull} true if full timer is set for the event
|
||||
{hasVPS} true if event has VPS information
|
||||
-->
|
||||
<listelement>
|
||||
<!-- background and foreground-->
|
||||
|
@ -26,12 +26,14 @@
|
||||
{duration} duration of event
|
||||
{current} true if item is currently selected
|
||||
{separator} true if item is a list separator
|
||||
{channelid} ChannelID as path to display channel logo
|
||||
{channelname} Channel Name (for what's on now and next)
|
||||
{channelid} ChannelID as path to display channel logo (for what's on now and next)
|
||||
{whatson} true if menu "What's on" is displayed
|
||||
{whatsonnow} true if menu "What's on now" is displayed
|
||||
{whatsonnext} true if menu "What's on next" is displayed
|
||||
{timerpartitial} true if partitial timer is set for the event
|
||||
{timerfull} true if full timer is set for the event
|
||||
{hasVPS} true if event has VPS information
|
||||
-->
|
||||
<listelement>
|
||||
</listelement>
|
||||
|
@ -314,15 +314,20 @@ void cDisplayMenuItemSchedulesView::SetTokens(void) {
|
||||
intTokens.insert(pair<string,int>("elapsed", 0));
|
||||
}
|
||||
intTokens.insert(pair<string,int>("duration", event->Duration() / 60));
|
||||
intTokens.insert(pair<string,int>("hasVPS", (bool)event->Vps()));
|
||||
} else {
|
||||
stringTokens.insert(pair<string,string>("title", event->Title() ? ParseSeparator(event->Title()) : ""));
|
||||
}
|
||||
}
|
||||
if (channel) {
|
||||
stringTokens.insert(pair<string,string>("channelname", channel->Name() ? channel->Name() : ""));
|
||||
stringTokens.insert(pair<string,string>("channelid", *(channel->GetChannelID().ToString())));
|
||||
if (!event && !selectable) {
|
||||
stringTokens.insert(pair<string,string>("title", channel->Name() ? ParseSeparator(channel->Name()) : ""));
|
||||
}
|
||||
} else {
|
||||
stringTokens.insert(pair<string,string>("channelname", ""));
|
||||
stringTokens.insert(pair<string,string>("channelid", ""));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user