mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 17:58:31 +02:00
23 lines
632 B
C
23 lines
632 B
C
#include "displaychannelviewelements.h"
|
|
|
|
cViewElementDevices::cViewElementDevices(cTemplateViewElement *tmplViewElement) : cViewElement(tmplViewElement) {
|
|
init = true;
|
|
}
|
|
|
|
void cViewElementDevices::Render(void) {
|
|
map < string, vector< map< string, string > > > deviceLoopTokens;
|
|
vector< map< string, string > > devices;
|
|
|
|
if (init)
|
|
InitDevices();
|
|
bool changed = SetDevices(init, &intTokens, &devices);
|
|
init = false;
|
|
|
|
if (!changed)
|
|
return;
|
|
|
|
deviceLoopTokens.insert(pair< string, vector< map< string, string > > >("devices", devices));
|
|
|
|
Clear();
|
|
Draw(&deviceLoopTokens);
|
|
} |