mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 15:58:31 +00:00
added viewelement <lastrecordings> with information about 5 newest recordings in main menu
This commit is contained in:
@@ -129,7 +129,6 @@ bool cViewElementTimers::Render(void) {
|
||||
vector< map< string, string > > timers;
|
||||
|
||||
SetTimers(&intTokens, &stringTokens, &timers);
|
||||
|
||||
timerLoopTokens.insert(pair< string, vector< map< string, string > > >("timers", timers));
|
||||
|
||||
ClearViewElement(veTimers);
|
||||
@@ -139,6 +138,24 @@ bool cViewElementTimers::Render(void) {
|
||||
|
||||
/********************************************************************************************************************/
|
||||
|
||||
cViewElementLastRecordings::cViewElementLastRecordings(cTemplateViewElement *tmplViewElement) : cViewElement(tmplViewElement) {
|
||||
}
|
||||
|
||||
bool cViewElementLastRecordings::Render(void) {
|
||||
ClearTokens();
|
||||
map < string, vector< map< string, string > > > recordingLoopTokens;
|
||||
vector< map< string, string > > lastRecordings;
|
||||
|
||||
SetLastRecordings(&intTokens, &stringTokens, &lastRecordings);
|
||||
recordingLoopTokens.insert(pair< string, vector< map< string, string > > >("recordings", lastRecordings));
|
||||
|
||||
ClearViewElement(veLastRecordings);
|
||||
DrawViewElement(veLastRecordings, &stringTokens, &intTokens, &recordingLoopTokens);
|
||||
return true;
|
||||
}
|
||||
|
||||
/********************************************************************************************************************/
|
||||
|
||||
cViewElementDiscUsage::cViewElementDiscUsage(cTemplateViewElement *tmplViewElement) : cViewElement(tmplViewElement) {
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user