summaryrefslogtreecommitdiff
path: root/setup.c
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2013-04-14 16:51:41 +0200
committerlouis <louis.braun@gmx.de>2013-04-14 16:51:41 +0200
commit264b6c079e7517cd0f9316bf11569562ba37c66e (patch)
treecb567f888412d5b25c11b78aaadbf49c46afab1e /setup.c
parent9f70bbf3cd68c12c913dbc84ed28f7d2f7430487 (diff)
downloadskin-nopacity-264b6c079e7517cd0f9316bf11569562ba37c66e.tar.gz
skin-nopacity-264b6c079e7517cd0f9316bf11569562ba37c66e.tar.bz2
Display of disc status in main menu configurable
Diffstat (limited to 'setup.c')
-rw-r--r--setup.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/setup.c b/setup.c
index a1beebd..cce3375 100644
--- a/setup.c
+++ b/setup.c
@@ -150,6 +150,7 @@ void cNopacitySetup::Store(void) {
SetupStore("menuInfoScrollDelay", config.menuInfoScrollDelay);
SetupStore("menuInfoScrollSpeed", config.menuInfoScrollSpeed);
SetupStore("showDiscUsage", config.showDiscUsage);
+ SetupStore("discUsageStyle", config.discUsageStyle);
SetupStore("showTimers", config.showTimers);
SetupStore("numberTimers", config.numberTimers);
SetupStore("checkTimerConflict", config.checkTimerConflict);
@@ -286,6 +287,8 @@ cNopacitySetupMenuDisplayMain::cNopacitySetupMenuDisplayMain(cNopacityConfig* da
titleStyle[0] = tr("\"VDR\" plus VDR version");
titleStyle[1] = tr("only VDR version");
titleStyle[2] = tr("no title");
+ discUsageStyle[0] = tr("free time in hours");
+ discUsageStyle[1] = tr("free space in GB");
Set();
}
@@ -306,6 +309,7 @@ void cNopacitySetupMenuDisplayMain::Set(void) {
Add(new cMenuEditBoolItem(tr("Display Disk Usage"), &tmpNopacityConfig->showDiscUsage));
if (tmpNopacityConfig->showDiscUsage) {
Add(new cMenuEditIntItem(cString::sprintf("%s%s", *spacer, tr("Size (square, Percent of OSD Width)")), &tmpNopacityConfig->menuSizeDiskUsage, 5, 30));
+ Add(new cMenuEditStraItem(cString::sprintf("%s%s", *spacer, tr("Free Disc Display")), &tmpNopacityConfig->discUsageStyle, 2, discUsageStyle));
Add(new cMenuEditIntItem(cString::sprintf("%s%s", *spacer, tr("Adjust Font Size - free")), &tmpNopacityConfig->fontDiskUsage, -20, 20));
Add(new cMenuEditIntItem(cString::sprintf("%s%s", *spacer, tr("Adjust Font Size - percent")), &tmpNopacityConfig->fontDiskUsagePercent, -20, 20));
}