summaryrefslogtreecommitdiff
path: root/setup.c
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2013-03-16 12:13:31 +0100
committerlouis <louis.braun@gmx.de>2013-03-16 12:13:31 +0100
commit1e31f10fa68907104562b41fda09fe61485afdb0 (patch)
treeb83707dc7088fec5cf367b9b76516b605403e46f /setup.c
parent79e8190e5e613590e0c8332f476f4ed5cc4b4342 (diff)
downloadskin-nopacity-1e31f10fa68907104562b41fda09fe61485afdb0.tar.gz
skin-nopacity-1e31f10fa68907104562b41fda09fe61485afdb0.tar.bz2
Maximum number of timers in main menu configurable
Diffstat (limited to 'setup.c')
-rw-r--r--setup.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/setup.c b/setup.c
index f8398f9..c999308 100644
--- a/setup.c
+++ b/setup.c
@@ -145,6 +145,7 @@ void cNopacitySetup::Store(void) {
SetupStore("menuInfoScrollSpeed", config.menuInfoScrollSpeed);
SetupStore("showDiscUsage", config.showDiscUsage);
SetupStore("showTimers", config.showTimers);
+ SetupStore("numberTimers", config.numberTimers);
SetupStore("checkTimerConflict", config.checkTimerConflict);
SetupStore("headerHeight", config.headerHeight);
SetupStore("footerHeight", config.footerHeight);
@@ -288,6 +289,7 @@ void cNopacitySetupMenuDisplayMain::Set(void) {
}
Add(new cMenuEditBoolItem(tr("Display Timers"), &tmpNopacityConfig->showTimers));
if (tmpNopacityConfig->showTimers) {
+ Add(new cMenuEditIntItem(cString::sprintf("%s%s", *spacer, tr("Maximum number of Timers")), &tmpNopacityConfig->numberTimers, 1, 10));
Add(new cMenuEditIntItem(cString::sprintf("%s%s", *spacer, tr("Width of Timers (Percent of OSD Width)")), &tmpNopacityConfig->menuWidthRightItems, 5, 100));
Add(new cMenuEditIntItem(cString::sprintf("%s%s", *spacer, tr("Channel Logo Width")), &tmpNopacityConfig->timersLogoWidth, 30, 300));
Add(new cMenuEditIntItem(cString::sprintf("%s%s", *spacer, tr("Channel Logo Height")), &tmpNopacityConfig->timersLogoHeight, 30, 300));