diff options
author | louis <louis.braun@gmx.de> | 2013-05-26 17:44:04 +0200 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2013-05-26 17:44:04 +0200 |
commit | b3b50abd736da0199297cab5d080055ed55c05bd (patch) | |
tree | a5d7815286725cc777b7d19062b1e9518a79b739 /setup.c | |
parent | 6a0447e7a8506659c8a211594c8632d4d0aafd6e (diff) | |
download | vdr-plugin-tvguide-b3b50abd736da0199297cab5d080055ed55c05bd.tar.gz vdr-plugin-tvguide-b3b50abd736da0199297cab5d080055ed55c05bd.tar.bz2 |
Displaying reruns in detailed EPG View
Diffstat (limited to 'setup.c')
-rw-r--r-- | setup.c | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -93,6 +93,9 @@ void cTvguideSetup::Store(void) { SetupStore("FontGridHorizontalSmallDelta", tvguideConfig.FontGridHorizontalSmallDelta); SetupStore("FontTimeLineDateHorizontalDelta", tvguideConfig.FontTimeLineDateHorizontalDelta); SetupStore("FontTimeLineTimeHorizontalDelta", tvguideConfig.FontTimeLineTimeHorizontalDelta); + SetupStore("displayRerunsDetailEPGView", tvguideConfig.displayRerunsDetailEPGView); + SetupStore("numReruns", tvguideConfig.numReruns); + SetupStore("useSubtitleRerun", tvguideConfig.useSubtitleRerun); } cMenuSetupSubMenu::cMenuSetupSubMenu(const char* Title, cTvguideConfig* data) : cOsdMenu(Title, 30) { @@ -128,10 +131,14 @@ cMenuSetupGeneral::cMenuSetupGeneral(cTvguideConfig* data) : cMenuSetupSubMenu( blendingMethods[0] = "none"; blendingMethods[1] = "classic"; blendingMethods[2] = "nOpacity style"; + useSubtitleRerunTexts[0] = tr("never"); + useSubtitleRerunTexts[1] = tr("if exists"); + useSubtitleRerunTexts[2] = tr("always"); Set(); } void cMenuSetupGeneral::Set(void) { + const char *indent = " "; int currentItem = Current(); Clear(); if (themes.NumThemes()) @@ -145,10 +152,25 @@ void cMenuSetupGeneral::Set(void) { Add(new cMenuEditIntItem(tr("Huge Step (Keys 4 / 6) in hours"), &tmpTvguideConfig->hugeStepHours, 13, 48)); Add(new cMenuEditStraItem(tr("Time Format (12h/24h)"), &tmpTvguideConfig->timeFormat, 2, timeFormatItems)); + Add(new cMenuEditBoolItem(tr("Display Reruns in detailed EPG View"), &tmpTvguideConfig->displayRerunsDetailEPGView)); + if (tmpTvguideConfig->displayRerunsDetailEPGView) { + Add(new cMenuEditIntItem(cString::sprintf("%s%s", indent, tr("Number of reruns to display")), &tmpTvguideConfig->numReruns, 1, 10)); + Add(new cMenuEditStraItem(cString::sprintf("%s%s", indent, tr("Use Subtitle for reruns")), &tmpTvguideConfig->useSubtitleRerun, 3, useSubtitleRerunTexts)); + } SetCurrent(Get(currentItem)); Display(); } +eOSState cMenuSetupGeneral::ProcessKey(eKeys Key) { + eOSState state = cOsdMenu::ProcessKey(Key); + if (Key == kOk) { + state = osBack; + } else if (Key != kNone) { + Set(); + } + return state; +} + //------------------------------------------------------------------------------------------------------------------ cMenuSetupScreenLayout::cMenuSetupScreenLayout(cTvguideConfig* data) : cMenuSetupSubMenu(tr("Screen Presentation"), data) { |