summaryrefslogtreecommitdiff
path: root/setup.c
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2013-03-10 17:06:41 +0100
committerlouis <louis.braun@gmx.de>2013-03-10 17:06:41 +0100
commitf4e23b8daa1d959bbb9ef5a8d4253412a15ff013 (patch)
treeb190021a6361affedb5250cedfc4ab57470d1194 /setup.c
parent3d4c1d84b7cd2ca23e3fda446a30b55a1d4878d9 (diff)
downloadskin-nopacity-f4e23b8daa1d959bbb9ef5a8d4253412a15ff013.tar.gz
skin-nopacity-f4e23b8daa1d959bbb9ef5a8d4253412a15ff013.tar.bz2
Position of channel logos in channel display now configurable
Diffstat (limited to 'setup.c')
-rw-r--r--setup.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/setup.c b/setup.c
index 03aba27..6f079bd 100644
--- a/setup.c
+++ b/setup.c
@@ -72,6 +72,7 @@ void cNopacitySetup::Store(void) {
SetupStore("channelHeight", config.channelHeight);
SetupStore("channelBorderVertical", config.channelBorderVertical);
SetupStore("channelBorderBottom", config.channelBorderBottom);
+ SetupStore("logoPosition", config.logoPosition);
SetupStore("logoWidth", config.logoWidth);
SetupStore("logoHeight", config.logoHeight);
SetupStore("logoBorder", config.logoBorder);
@@ -413,6 +414,9 @@ void cNopacitySetupMenuDisplayRecordings::Set(void) {
//----ChannelDisplay--------------------------------------------------------------------------------------------------------------
cNopacitySetupChannelDisplay::cNopacitySetupChannelDisplay(cNopacityConfig* data) : cMenuSetupSubMenu(tr("Channel Switching"), data) {
+ logoPos[0] = tr("do not display");
+ logoPos[1] = tr("left");
+ logoPos[2] = tr("right");
Set();
}
@@ -424,9 +428,12 @@ void cNopacitySetupChannelDisplay::Set(void) {
Add(new cMenuEditIntItem(tr("Hight of Channel Display (Percent of OSD Height)"), &tmpNopacityConfig->channelHeight, 15, 100));
Add(new cMenuEditIntItem(tr("Left & Right Border Width"), &tmpNopacityConfig->channelBorderVertical, 0, 300));
Add(new cMenuEditIntItem(tr("Bottom Border Height"), &tmpNopacityConfig->channelBorderBottom, 0, 300));
- Add(new cMenuEditIntItem(tr("Channel Logo Width"), &tmpNopacityConfig->logoWidth, 30, 500));
- Add(new cMenuEditIntItem(tr("Channel Logo Height"), &tmpNopacityConfig->logoHeight, 30, 500));
- Add(new cMenuEditIntItem(tr("Channel Logo Border"), &tmpNopacityConfig->logoBorder, 0, 200));
+ Add(new cMenuEditStraItem(tr("Channel Logo Position"), &tmpNopacityConfig->logoPosition, 3, logoPos));
+ if (tmpNopacityConfig->logoPosition) {
+ Add(new cMenuEditIntItem(cString::sprintf("%s%s", *spacer, tr("Channel Logo Width")), &tmpNopacityConfig->logoWidth, 30, 500));
+ Add(new cMenuEditIntItem(cString::sprintf("%s%s", *spacer, tr("Channel Logo Height")), &tmpNopacityConfig->logoHeight, 30, 500));
+ Add(new cMenuEditIntItem(cString::sprintf("%s%s", *spacer, tr("Channel Logo Border")), &tmpNopacityConfig->logoBorder, 0, 200));
+ }
Add(new cMenuEditBoolItem(tr("Display Signal Strength & Quality"), &tmpNopacityConfig->displaySignalStrength));
Add(new cMenuEditIntItem(tr("Screen Resolution Icon Size"), &tmpNopacityConfig->resolutionIconSize, 30, 200));
Add(new cMenuEditIntItem(tr("Status Icons Size"), &tmpNopacityConfig->statusIconSize, 30, 150));