From a62603f668789cd98d17e65f08cce62340676977 Mon Sep 17 00:00:00 2001 From: louis Date: Thu, 3 Oct 2013 11:24:09 +0200 Subject: Configurable Menu Item Scroll Mode --- setup.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'setup.c') diff --git a/setup.c b/setup.c index 5278fd4..07a443f 100644 --- a/setup.c +++ b/setup.c @@ -131,6 +131,7 @@ void cNopacitySetup::Store(void) { SetupStore("volumeHeight", config.volumeHeight); SetupStore("volumeBorderBottom", config.volumeBorderBottom); SetupStore("fontVolume", config.fontVolume); + SetupStore("scrollMode", config.scrollMode); SetupStore("menuAdjustLeft", config.menuAdjustLeft); SetupStore("scalePicture", config.scalePicture); SetupStore("roundedCorners", config.roundedCorners); @@ -273,6 +274,8 @@ eOSState cMenuSetupSubMenu::ProcessKey(eKeys Key) { cNopacitySetupMenuDisplay::cNopacitySetupMenuDisplay(cNopacityConfig* data) : cMenuSetupSubMenu(tr("VDR Menu: Common Settings"), data) { adjustLeft[0] = tr("right"); adjustLeft[1] = tr("left"); + scrollMode[0] = tr("Carriage Return"); + scrollMode[1] = tr("Forward and Back again"); scrollSpeed[0] = tr("off"); scrollSpeed[1] = tr("slow"); scrollSpeed[2] = tr("medium"); @@ -297,6 +300,7 @@ void cNopacitySetupMenuDisplay::Set(void) { if (tmpNopacityConfig->roundedCorners) Add(new cMenuEditIntItem(cString::sprintf("%s%s", *spacer, tr("Radius of rounded corners")), &tmpNopacityConfig->cornerRadius, 5, 30)); Add(new cMenuEditIntItem(tr("Fade-In Time in ms (Zero for switching off fading)"), &tmpNopacityConfig->menuFadeTime, 0, 1000)); + Add(new cMenuEditStraItem(tr("Menu Items Scroll Style"), &tmpNopacityConfig->scrollMode, 2, scrollMode)); Add(new cMenuEditStraItem(tr("Menu Items Scrolling Speed"), &tmpNopacityConfig->menuScrollSpeed, 4, scrollSpeed)); Add(new cMenuEditIntItem(tr("Menu Items Scrolling Delay in s"), &tmpNopacityConfig->menuScrollDelay, 0, 3)); Add(new cMenuEditIntItem(tr("Adjust Font Size - Header"), &tmpNopacityConfig->fontHeader, -20, 20)); -- cgit v1.2.3