mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 15:58:31 +00:00
added device info in displaychannel
This commit is contained in:
@@ -17,6 +17,7 @@ cDisplayChannelView::cDisplayChannelView(cTemplateView *tmplView) : cView(tmplVi
|
||||
lastAudioChannel = -1;
|
||||
lastTracDesc = "";
|
||||
lastTrackLang = "";
|
||||
InitDevices();
|
||||
DeleteOsdOnExit();
|
||||
SetFadeTime(tmplView->GetNumericParameter(ptFadeTime));
|
||||
}
|
||||
@@ -109,7 +110,8 @@ void cDisplayChannelView::DrawProgressBar(cString &start, cString &stop, int Cur
|
||||
intTokens.insert(pair<string, int>("duration", Total));
|
||||
intTokens.insert(pair<string, int>("elapsed", Current));
|
||||
intTokens.insert(pair<string, int>("remaining", Total - Current));
|
||||
|
||||
|
||||
ClearProgressBar();
|
||||
DrawViewElement(veProgressBar, &stringTokens, &intTokens);
|
||||
}
|
||||
|
||||
@@ -399,6 +401,29 @@ void cDisplayChannelView::ClearSignalBackground(void) {
|
||||
ClearViewElement(veSignalQualityBack);
|
||||
}
|
||||
|
||||
void cDisplayChannelView::DrawDevices(bool initial) {
|
||||
if (!ViewElementImplemented(veDevices)) {
|
||||
return;
|
||||
}
|
||||
map < string, string > stringTokens;
|
||||
map < string, int > intTokens;
|
||||
map < string, vector< map< string, string > > > deviceLoopTokens;
|
||||
vector< map< string, string > > devices;
|
||||
|
||||
bool changed = SetDevices(initial, &intTokens, &devices);
|
||||
if (!changed)
|
||||
return;
|
||||
|
||||
deviceLoopTokens.insert(pair< string, vector< map< string, string > > >("devices", devices));
|
||||
|
||||
ClearViewElement(veDevices);
|
||||
DrawViewElement(veDevices, &stringTokens, &intTokens, &deviceLoopTokens);
|
||||
}
|
||||
|
||||
void cDisplayChannelView::ClearDevices(void) {
|
||||
ClearViewElement(veDevices);
|
||||
}
|
||||
|
||||
void cDisplayChannelView::DrawChannelGroups(const cChannel *Channel, cString ChannelName) {
|
||||
if (!ViewElementImplemented(veChannelGroup)) {
|
||||
return;
|
||||
|
Reference in New Issue
Block a user