mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 15:58:31 +00:00
added progressmodeonly viewelement in displayreplay
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user