mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 17:58:31 +02:00
added token {nummenuitem} as number of item in for every list
This commit is contained in:
parent
2c17177f2f
commit
1809656e58
2
HISTORY
2
HISTORY
@ -28,3 +28,5 @@ Version 0.0.2
|
||||
- fixed bug that new font was displayed first after VDR restart when font was changed in OSD Setup menu
|
||||
- display always newest recording of folders in recordings list, thanks@ Lars Hanisch for providing the patch
|
||||
- added extented recording information
|
||||
- added token {nummenuitem} as number of item in for every list, value starts with 1
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
<menuchannels x="0" y="0" width="100%" height="100%" fadetime="0">
|
||||
<menuitems x="0" y="10%" orientation="vertical" width="100%" height="82%" align="center" numlistelements="16">
|
||||
<!-- Available Variables channels menu listelement:
|
||||
{nummenuitem} number of item in list, starts with 1
|
||||
{number} number of the displayed channel
|
||||
{name} name of the displayed channel
|
||||
{channelid} ChannelID as path to display channel logo
|
||||
|
@ -115,6 +115,7 @@
|
||||
the correct column widths -->
|
||||
<menuitems x="0" y="10%" orientation="vertical" width="100%" height="82%" align="center" menuitemwidth="94%" determinatefont="column1" numlistelements="16">
|
||||
<!-- Available Variables default menu listelement:
|
||||
{nummenuitem} number of item in list, starts with 1
|
||||
{column1} text of column1
|
||||
{column2} text of column2
|
||||
{column3} text of column3
|
||||
|
@ -235,6 +235,7 @@
|
||||
|
||||
<menuitems x="0" y="7%" orientation="vertical" width="70%" height="56%" align="center" numlistelements="8">
|
||||
<!-- Available Variables main menu listelement:
|
||||
{nummenuitem} number of item in list, starts with 1
|
||||
{label} label of menu item
|
||||
{number} number of menu item (or empty string if not set)
|
||||
{icon} path of appropriate icon
|
||||
|
@ -1,6 +1,7 @@
|
||||
<menurecordings x="0" y="0" width="100%" height="100%" fadetime="0">
|
||||
<menuitems x="0" y="10%" orientation="vertical" width="100%" height="82%" align="center" numlistelements="16">
|
||||
<!-- Available Variables recordings menu listelement:
|
||||
{nummenuitem} number of item in list, starts with 1
|
||||
{name} Name of recording
|
||||
{date} Date of recording
|
||||
{time} Time of recording
|
||||
|
@ -20,6 +20,7 @@
|
||||
|
||||
<menuitems x="0" y="10%" orientation="vertical" width="100%" height="82%" align="center" numlistelements="16">
|
||||
<!-- Available Variables schedules menu listelement:
|
||||
{nummenuitem} number of item in list, starts with 1
|
||||
{title} title of event
|
||||
{shorttext} shorttext of event
|
||||
{start} event start time in hh::mm
|
||||
|
@ -66,6 +66,7 @@
|
||||
|
||||
<menuitems x="0" y="7%" orientation="vertical" width="98%" height="86%" align="center" numlistelements="10">
|
||||
<!-- Available Variables setup menu listelement:
|
||||
{nummenuitem} number of item in list, starts with 1
|
||||
{label} label of menu item
|
||||
{number} number of menu item (or empty string if not set)
|
||||
{icon} path of appropriate icon
|
||||
|
@ -1,6 +1,7 @@
|
||||
<menutimers x="0" y="0" width="100%" height="100%" fadetime="0">
|
||||
<menuitems x="0" y="10%" orientation="vertical" width="100%" height="82%" align="center" numlistelements="16">
|
||||
<!-- Available Variables channels menu listelement:
|
||||
{nummenuitem} number of item in list, starts with 1
|
||||
{title} Title of Timer
|
||||
{timerstart} Start Time of Timer in hh::mm
|
||||
{timerstop} End Time of Timer in hh::mm
|
||||
|
@ -1,6 +1,7 @@
|
||||
<menuchannels x="0" y="0" width="100%" height="100%" fadetime="0">
|
||||
<menuitems x="0" y="0" orientation="vertical" width="100%" height="100%" align="center" numlistelements="16">
|
||||
<!-- Available Variables channels menu listelement:
|
||||
{nummenuitem} number of item in list, starts with 1
|
||||
{number} number of the displayed channel
|
||||
{name} name of the displayed channel
|
||||
{channelid} ChannelID as path to display channel logo
|
||||
|
@ -4,6 +4,7 @@
|
||||
the correct column widths -->
|
||||
<menuitems x="0" y="0" orientation="vertical" width="100%" height="100%" align="center" menuitemwidth="94%" determinatefont="column1" numlistelements="16">
|
||||
<!-- Available Variables default menu listelement:
|
||||
{nummenuitem} number of item in list, starts with 1
|
||||
{column1} text of column1
|
||||
{column2} text of column2
|
||||
{column3} text of column3
|
||||
|
@ -58,6 +58,7 @@
|
||||
|
||||
<menuitems x="0" y="0" orientation="vertical" width="100%" height="100%" align="center" numlistelements="8">
|
||||
<!-- Available Variables main menu listelement:
|
||||
{nummenuitem} number of item in list, starts with 1
|
||||
{label} label of menu item
|
||||
{number} number of menu item (or empty string if not set)
|
||||
{icon} path of appropriate icon
|
||||
|
@ -1,6 +1,7 @@
|
||||
<menurecordings x="0" y="0" width="100%" height="100%" fadetime="0">
|
||||
<menuitems x="0" y="0" orientation="vertical" width="100%" height="100%" align="center" numlistelements="16">
|
||||
<!-- Available Variables recordings menu listelement:
|
||||
{nummenuitem} number of item in list, starts with 1
|
||||
{name} Name of recording
|
||||
{date} Date of recording
|
||||
{time} Time of recording
|
||||
|
@ -15,6 +15,7 @@
|
||||
|
||||
<menuitems x="0" y="0" orientation="vertical" width="100%" height="100%" align="center" numlistelements="16">
|
||||
<!-- Available Variables schedules menu listelement:
|
||||
{nummenuitem} number of item in list, starts with 1
|
||||
{title} title of event
|
||||
{shorttext} shorttext of event
|
||||
{start} event start time in hh::mm
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
<menuitems x="0" y="0" orientation="vertical" width="100%" height="100%" align="center" numlistelements="16">
|
||||
<!-- Available Variables setup menu listelement:
|
||||
{nummenuitem} number of item in list, starts with 1
|
||||
{label} label of menu item
|
||||
{number} number of menu item (or empty string if not set)
|
||||
{icon} path of appropriate icon
|
||||
|
@ -1,6 +1,7 @@
|
||||
<menutimers x="0" y="0" width="100%" height="100%" fadetime="0">
|
||||
<menuitems x="0" y="0" orientation="vertical" width="100%" height="100%" align="center" numlistelements="16">
|
||||
<!-- Available Variables channels menu listelement:
|
||||
{nummenuitem} number of item in list, starts with 1
|
||||
{title} Title of Timer
|
||||
{timerstart} Start Time of Timer in hh::mm
|
||||
{timerstop} End Time of Timer in hh::mm
|
||||
|
@ -137,6 +137,7 @@ void cDisplayMenuItemDefaultView::SetTokens(void) {
|
||||
}
|
||||
intTokens.insert(pair<string,int>("current", current));
|
||||
intTokens.insert(pair<string,int>("separator", !selectable));
|
||||
intTokens.insert(pair<string,int>("nummenuitem", num+1));
|
||||
}
|
||||
|
||||
void cDisplayMenuItemDefaultView::Prepare(void) {
|
||||
@ -187,6 +188,7 @@ void cDisplayMenuItemMainView::SetTokens(void) {
|
||||
|
||||
intTokens.insert(pair<string,int>("current", current));
|
||||
intTokens.insert(pair<string,int>("separator", !selectable));
|
||||
intTokens.insert(pair<string,int>("nummenuitem", num+1));
|
||||
}
|
||||
|
||||
void cDisplayMenuItemMainView::Prepare(void) {
|
||||
@ -282,6 +284,7 @@ void cDisplayMenuItemSchedulesView::SetTokens(void) {
|
||||
itemInit = false;
|
||||
intTokens.insert(pair<string,int>("current", current));
|
||||
intTokens.insert(pair<string,int>("separator", !selectable));
|
||||
intTokens.insert(pair<string,int>("nummenuitem", num+1));
|
||||
intTokens.insert(pair<string,int>("whatson", (cat == mcSchedule) ? true: false));
|
||||
intTokens.insert(pair<string,int>("whatsonnow", (cat == mcScheduleNow) ? true: false));
|
||||
intTokens.insert(pair<string,int>("whatsonnext", (cat == mcScheduleNext) ? true: false));
|
||||
@ -404,6 +407,7 @@ void cDisplayMenuItemChannelsView::SetTokens(void) {
|
||||
//general channel information
|
||||
intTokens.insert(pair<string,int>("current", current));
|
||||
intTokens.insert(pair<string,int>("separator", !selectable));
|
||||
intTokens.insert(pair<string,int>("nummenuitem", num+1));
|
||||
intTokens.insert(pair<string,int>("number", channel->Number()));
|
||||
intTokens.insert(pair<string,int>("transponder", channel->Transponder()));
|
||||
intTokens.insert(pair<string,int>("frequency", channel->Frequency()));
|
||||
@ -498,6 +502,7 @@ void cDisplayMenuItemTimersView::SetTokens(void) {
|
||||
itemInit = false;
|
||||
|
||||
intTokens.insert(pair<string,int>("current", current));
|
||||
intTokens.insert(pair<string,int>("nummenuitem", num+1));
|
||||
intTokens.insert(pair<string,int>("flagactive", timer->HasFlags(tfActive)));
|
||||
intTokens.insert(pair<string,int>("flaginstant", timer->HasFlags(tfInstant)));
|
||||
intTokens.insert(pair<string,int>("flagvps", timer->HasFlags(tfVps)));
|
||||
@ -607,6 +612,7 @@ void cDisplayMenuItemRecordingView::SetTokens(void) {
|
||||
if (!recording) return;
|
||||
|
||||
intTokens.insert(pair<string,int>("current", current));
|
||||
intTokens.insert(pair<string,int>("nummenuitem", num+1));
|
||||
bool isFolder = (total > 0) ? true : false;
|
||||
intTokens.insert(pair<string,int>("folder", isFolder));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user