summaryrefslogtreecommitdiff
path: root/channelepg.c
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2016-01-26 18:41:40 +0100
committerlouis <louis.braun@gmx.de>2016-01-26 18:41:40 +0100
commitd4ef992f8256d324221d15d3bef967eb044a9a86 (patch)
treea3cc1c55d016bb107a20bbe59081662e221348fc /channelepg.c
parentc341a635d9b0c4dfdd5e2f6ab25f9d94f53ac795 (diff)
downloadvdr-plugin-tvguideng-d4ef992f8256d324221d15d3bef967eb044a9a86.tar.gz
vdr-plugin-tvguideng-d4ef992f8256d324221d15d3bef967eb044a9a86.tar.bz2
adaptions skindesigner 0.8.00.2.0
Diffstat (limited to 'channelepg.c')
-rw-r--r--channelepg.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/channelepg.c b/channelepg.c
index d3d7986..bde905d 100644
--- a/channelepg.c
+++ b/channelepg.c
@@ -330,12 +330,12 @@ void cChannelEpg::DrawHeader(skindesignerapi::cViewGrid *channelsGrid) {
int id = channel->Number();
if (init) {
channelsGrid->ClearTokens();
- channelsGrid->AddIntToken("number", id);
- channelsGrid->AddStringToken("name", channel->Name());
- string channelId = *(channel->GetChannelID().ToString());
- bool channelLogoExisis = channelsGrid->ChannelLogoExists(channelId);
- channelsGrid->AddStringToken("channelid", channelId);
- channelsGrid->AddIntToken("channellogoexists", channelLogoExisis);
+ channelsGrid->AddIntToken((int)eChannelGridIT::number, id);
+ channelsGrid->AddStringToken((int)eChannelGridST::name, channel->Name());
+ cString channelId = channel->GetChannelID().ToString();
+ bool channelLogoExisis = channelsGrid->ChannelLogoExists(*channelId);
+ channelsGrid->AddStringToken((int)eChannelGridST::channelid, *channelId);
+ channelsGrid->AddIntToken((int)eChannelGridIT::channellogoexists, channelLogoExisis);
channelsGrid->SetGrid(id, x, y, width, height);
init = false;
} else {
@@ -365,14 +365,14 @@ void cChannelEpg::DrawGrids(skindesignerapi::cViewGrid *epgGrid) {
time_t gridStop = grid->EndTime();
if (grid->IsNew()) {
epgGrid->ClearTokens();
- epgGrid->AddIntToken("color", grid->Id() % 2);
- epgGrid->AddIntToken("dummy", grid->IsDummy());
- epgGrid->AddIntToken("timer", grid->HasTimer());
- epgGrid->AddIntToken("switchtimer", grid->HasSwitchTimer());
- epgGrid->AddStringToken("title", grid->Title());
- epgGrid->AddStringToken("shorttext", grid->ShortText());
- epgGrid->AddStringToken("start", *TimeString(gridStart));
- epgGrid->AddStringToken("stop", *TimeString(gridStop));
+ epgGrid->AddIntToken((int)eSchedulesGridIT::color, grid->Id() % 2);
+ epgGrid->AddIntToken((int)eSchedulesGridIT::dummy, grid->IsDummy());
+ epgGrid->AddIntToken((int)eSchedulesGridIT::timer, grid->HasTimer());
+ epgGrid->AddIntToken((int)eSchedulesGridIT::switchtimer, grid->HasSwitchTimer());
+ epgGrid->AddStringToken((int)eSchedulesGridST::title, grid->Title());
+ epgGrid->AddStringToken((int)eSchedulesGridST::shorttext, grid->ShortText());
+ epgGrid->AddStringToken((int)eSchedulesGridST::start, *TimeString(gridStart));
+ epgGrid->AddStringToken((int)eSchedulesGridST::stop, *TimeString(gridStop));
}
if (gridStart < startTime) {