From 43422fac91d7c67d1cb69e2add4abce49e89ca90 Mon Sep 17 00:00:00 2001 From: louis Date: Tue, 31 Mar 2015 11:53:25 +0200 Subject: added viewelement in displayreplay to display the time the currently replayed recording ends --- HISTORY | 2 ++ designer.c | 1 - displayreplay.c | 3 +++ dtd/displayreplay.dtd | 8 +++++++- libtemplate/templateview.c | 6 ++++++ libtemplate/templateviewelement.h | 1 + skins/metrixhd/globals.xml | 4 ++++ skins/metrixhd/xmlfiles/displayreplay.xml | 8 ++++++++ skinskeleton/xmlfiles/displayreplay.xml | 6 ++++++ views/displayreplayview.c | 21 +++++++++++++++++++++ views/displayreplayview.h | 4 ++++ 11 files changed, 62 insertions(+), 2 deletions(-) diff --git a/HISTORY b/HISTORY index c130eff..7fa45ad 100644 --- a/HISTORY +++ b/HISTORY @@ -246,5 +246,7 @@ Version 0.3.3 - fixed bug also for loops - added possibility to draw vertical text bottomum and topdown - translate drawtextvertical +- added viewelement in displayreplay to display the time + the currently replayed recording ends diff --git a/designer.c b/designer.c index 93b5b34..35ba899 100644 --- a/designer.c +++ b/designer.c @@ -112,7 +112,6 @@ cSkinDisplayPlugin *cSkinDesigner::DisplayPlugin(string pluginName, int viewID, if (useBackupSkin) return NULL; Init(); - cSkinDisplayPlugin *displayPlugin = NULL; map< string, map >::iterator hit = pluginTemplates.find(pluginName); if (hit == pluginTemplates.end()) return NULL; diff --git a/displayreplay.c b/displayreplay.c index f82f1cc..4080407 100644 --- a/displayreplay.c +++ b/displayreplay.c @@ -27,6 +27,8 @@ cSDDisplayReplay::~cSDDisplayReplay() { void cSDDisplayReplay::SetRecording(const cRecording *Recording) { if (!doOutput || !Recording) return; + if (initial) + replayView->SetRecordingLength(Recording->LengthInSeconds()); replayView->DrawTitle(Recording); replayView->DrawRecordingInformation(Recording); replayView->DrawScraperContent(Recording); @@ -62,6 +64,7 @@ void cSDDisplayReplay::SetProgress(int Current, int Total) { replayView->DelayOnPause(); replayView->DrawProgressBar(Current, Total); replayView->DrawMarks(marks, Current, Total); + replayView->DrawEndTime(Current, Total); } void cSDDisplayReplay::SetCurrent(const char *Current) { diff --git a/dtd/displayreplay.dtd b/dtd/displayreplay.dtd index bb52937..217df11 100644 --- a/dtd/displayreplay.dtd +++ b/dtd/displayreplay.dtd @@ -4,7 +4,7 @@ + + + for für + + ends at + endet um + + + + + + + + +