summaryrefslogtreecommitdiff
path: root/setup.c
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2014-10-11 10:39:41 +0200
committerlouis <louis.braun@gmx.de>2014-10-11 10:39:41 +0200
commiteffc63e8104e3331337dcc52d2506938f1871e07 (patch)
tree611fa408385131f55662a65434bdc8bdce155aec /setup.c
parent7fbcc9d3306260fda407111f46b46097f3fa7eca (diff)
downloadvdr-plugin-skindesigner-effc63e8104e3331337dcc52d2506938f1871e07.tar.gz
vdr-plugin-skindesigner-effc63e8104e3331337dcc52d2506938f1871e07.tar.bz2
added setup options to configure rerun display behaviour
Diffstat (limited to 'setup.c')
-rw-r--r--setup.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/setup.c b/setup.c
index 6809c99..bad237a 100644
--- a/setup.c
+++ b/setup.c
@@ -13,6 +13,18 @@ void cSkinDesignerSetup::Setup(void) {
int current = Current();
Clear();
+ cString message = cString::sprintf("---------------- %s ----------------", tr("Reruns"));
+ Add(new cOsdItem(*message));
+ cList<cOsdItem>::Last()->SetSelectable(false);
+
+ Add(new cMenuEditIntItem(tr("Maximum number of reruns to display"), &data.rerunAmount, 1, 100));
+ Add(new cMenuEditIntItem(tr("Minimum timely distance of rerun (in hours)"), &data.rerunDistance, 0, 1000));
+ Add(new cMenuEditIntItem(tr("Limit Channel Numbers (0 = no limit)"), &data.rerunMaxChannel, 0, 1000));
+
+ message = cString::sprintf("---------------- %s ----------------", tr("Image Loading"));
+ Add(new cOsdItem(*message));
+ cList<cOsdItem>::Last()->SetSelectable(false);
+
Add(new cMenuEditBoolItem(tr("Debug Image Loading"), &data.debugImageLoading));
Add(new cMenuEditBoolItem(tr("Limit Channel Logo Cache"), &data.limitLogoCache));
@@ -25,7 +37,7 @@ void cSkinDesignerSetup::Setup(void) {
return;
}
- cString message = cString::sprintf("--------------------- %s ---------------------", tr("Cache Statistics"));
+ message = cString::sprintf("---------------- %s ----------------", tr("Cache Statistics"));
Add(new cOsdItem(*message));
cList<cOsdItem>::Last()->SetSelectable(false);
@@ -76,4 +88,7 @@ void cSkinDesignerSetup::Store(void) {
SetupStore("LimitChannelLogoCache", config.limitLogoCache);
SetupStore("NumberLogosInitially", config.numLogosPerSizeInitial);
SetupStore("NumberLogosMax", config.numLogosMax);
+ SetupStore("RerunAmount", config.rerunAmount);
+ SetupStore("RerunDistance", config.rerunDistance);
+ SetupStore("RerunMaxChannel", config.rerunMaxChannel);
} \ No newline at end of file