diff options
| author | louis <louis.braun@gmx.de> | 2015-07-25 14:19:32 +0200 |
|---|---|---|
| committer | louis <louis.braun@gmx.de> | 2015-07-25 14:19:32 +0200 |
| commit | 6e0f56e56c8eae6052d59f840f7108befa389693 (patch) | |
| tree | 56379a0ad187362a5a1fbc96151834a5f3436319 /views | |
| parent | d9c5219f430e6963e239fa21f965aa1bf1b90ab0 (diff) | |
| download | vdr-plugin-skindesigner-6e0f56e56c8eae6052d59f840f7108befa389693.tar.gz vdr-plugin-skindesigner-6e0f56e56c8eae6052d59f840f7108befa389693.tar.bz2 | |
added progressmodeonly viewelement in displayreplay
Diffstat (limited to 'views')
| -rw-r--r-- | views/displayreplayview.c | 14 | ||||
| -rw-r--r-- | views/displayreplayview.h | 1 |
2 files changed, 15 insertions, 0 deletions
diff --git a/views/displayreplayview.c b/views/displayreplayview.c index 364b801..22f1ee9 100644 --- a/views/displayreplayview.c +++ b/views/displayreplayview.c @@ -349,6 +349,20 @@ void cDisplayReplayView::DrawControlIcons(bool play, bool forward, int speed, bo } } +void cDisplayReplayView::DrawProgressModeOnly(double fps, int current, int total) { + string cur = GetTimeString((double)current / fps); + string tot = GetTimeString((double)total / fps); + map < string, string > stringTokens; + map < string, int > intTokens; + intTokens.insert(pair<string,int>("current", current)); + intTokens.insert(pair<string,int>("total", total)); + stringTokens.insert(pair<string,string>("timecurrent", cur)); + stringTokens.insert(pair<string,string>("timetotal", tot)); + ClearViewElement(veProgressModeOnly); + DrawViewElement(veProgressModeOnly, &stringTokens, &intTokens); +} + + void cDisplayReplayView::DrawJump(const char *jump) { if (!jump) { ClearViewElement(veRecJump); diff --git a/views/displayreplayview.h b/views/displayreplayview.h index f776d3d..96255e9 100644 --- a/views/displayreplayview.h +++ b/views/displayreplayview.h @@ -38,6 +38,7 @@ public: void DrawProgressBar(int current, int total); void DrawMarks(const cMarks *marks, int current, int total); void DrawControlIcons(bool play, bool forward, int speed, bool modeOnly); + void DrawProgressModeOnly(double fps, int current, int total); void DrawJump(const char *jump); void DrawMessage(eMessageType type, const char *text); void DrawOnPause(string recFileName, bool modeOnly); |
