mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 17:58:31 +02:00
implemented SetTitle in displayreplay
This commit is contained in:
parent
e25b679d3c
commit
4168dd5f29
1
HISTORY
1
HISTORY
@ -200,3 +200,4 @@ Version 0.2.1
|
|||||||
Version 0.2.2
|
Version 0.2.2
|
||||||
|
|
||||||
- added replay onpause view in blackhole skin
|
- added replay onpause view in blackhole skin
|
||||||
|
- implemented SetTitle() in displayreplay
|
||||||
|
@ -24,13 +24,19 @@ cSDDisplayReplay::~cSDDisplayReplay() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void cSDDisplayReplay::SetRecording(const cRecording *Recording) {
|
void cSDDisplayReplay::SetRecording(const cRecording *Recording) {
|
||||||
if (!doOutput)
|
if (!doOutput || !Recording)
|
||||||
return;
|
return;
|
||||||
replayView->DrawTitle(Recording);
|
replayView->DrawTitle(Recording);
|
||||||
replayView->DrawRecordingInformation(Recording);
|
replayView->DrawRecordingInformation(Recording);
|
||||||
replayView->DrawScraperContent(Recording);
|
replayView->DrawScraperContent(Recording);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void cSDDisplayReplay::SetTitle(const char *Title) {
|
||||||
|
if (!doOutput || !Title)
|
||||||
|
return;
|
||||||
|
replayView->DrawTitle(Title);
|
||||||
|
}
|
||||||
|
|
||||||
void cSDDisplayReplay::SetMode(bool Play, bool Forward, int Speed) {
|
void cSDDisplayReplay::SetMode(bool Play, bool Forward, int Speed) {
|
||||||
if (!doOutput)
|
if (!doOutput)
|
||||||
return;
|
return;
|
||||||
|
@ -17,7 +17,7 @@ public:
|
|||||||
cSDDisplayReplay(cTemplate *replayTemplate, bool ModeOnly);
|
cSDDisplayReplay(cTemplate *replayTemplate, bool ModeOnly);
|
||||||
virtual ~cSDDisplayReplay();
|
virtual ~cSDDisplayReplay();
|
||||||
virtual void SetRecording(const cRecording *Recording);
|
virtual void SetRecording(const cRecording *Recording);
|
||||||
virtual void SetTitle(const char *Title) {};
|
virtual void SetTitle(const char *Title);
|
||||||
virtual void SetMode(bool Play, bool Forward, int Speed);
|
virtual void SetMode(bool Play, bool Forward, int Speed);
|
||||||
virtual void SetProgress(int Current, int Total);
|
virtual void SetProgress(int Current, int Total);
|
||||||
virtual void SetCurrent(const char *Current);
|
virtual void SetCurrent(const char *Current);
|
||||||
|
@ -96,6 +96,19 @@ void cDisplayReplayView::DrawTitle(const cRecording *recording) {
|
|||||||
DrawViewElement(veRecTitle, &stringTokens, &intTokens);
|
DrawViewElement(veRecTitle, &stringTokens, &intTokens);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void cDisplayReplayView::DrawTitle(const char *title) {
|
||||||
|
map < string, string > stringTokens;
|
||||||
|
map < string, int > intTokens;
|
||||||
|
|
||||||
|
stringTokens.insert(pair<string,string>("rectitle", title));
|
||||||
|
stringTokens.insert(pair<string,string>("recsubtitle", ""));
|
||||||
|
stringTokens.insert(pair<string,string>("recdate", ""));
|
||||||
|
stringTokens.insert(pair<string,string>("rectime", ""));
|
||||||
|
|
||||||
|
DrawViewElement(veRecTitle, &stringTokens, &intTokens);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void cDisplayReplayView::DrawRecordingInformation(const cRecording *recording) {
|
void cDisplayReplayView::DrawRecordingInformation(const cRecording *recording) {
|
||||||
map < string, string > stringTokens;
|
map < string, string > stringTokens;
|
||||||
map < string, int > intTokens;
|
map < string, int > intTokens;
|
||||||
|
@ -22,6 +22,7 @@ public:
|
|||||||
void DrawDate(void);
|
void DrawDate(void);
|
||||||
void DrawTime(void);
|
void DrawTime(void);
|
||||||
void DrawTitle(const cRecording *recording);
|
void DrawTitle(const cRecording *recording);
|
||||||
|
void DrawTitle(const char *title);
|
||||||
void DrawRecordingInformation(const cRecording *recording);
|
void DrawRecordingInformation(const cRecording *recording);
|
||||||
void DrawScraperContent(const cRecording *recording);
|
void DrawScraperContent(const cRecording *recording);
|
||||||
void DrawCurrent(const char *current);
|
void DrawCurrent(const char *current);
|
||||||
|
Loading…
Reference in New Issue
Block a user