summaryrefslogtreecommitdiff
path: root/setup.cpp
diff options
context:
space:
mode:
authorJochen Dolze <vdr@dolze.de>2011-08-01 17:55:01 +0200
committerJochen Dolze <vdr@dolze.de>2011-08-01 17:55:01 +0200
commit197e21d0450b0fdc6b52f8c89a48c3cd637c88ed (patch)
tree2c21c0d96fabd693f22a3b956224f0a6da5ab383 /setup.cpp
parent4acb900fec6961c82d67f0d87e1e6a973324005d (diff)
downloadvdr-plugin-xmltv2vdr-197e21d0450b0fdc6b52f8c89a48c3cd637c88ed.tar.gz
vdr-plugin-xmltv2vdr-197e21d0450b0fdc6b52f8c89a48c3cd637c88ed.tar.bz2
Fixed "parse error" bug
Diffstat (limited to 'setup.cpp')
-rw-r--r--setup.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/setup.cpp b/setup.cpp
index 606ce81..b6ae0f1 100644
--- a/setup.cpp
+++ b/setup.cpp
@@ -819,6 +819,12 @@ int cMenuSetupXmltv2vdrChannelMap::getdaysmax()
return ret;
}
+cOsdItem *cMenuSetupXmltv2vdrChannelMap::optionN(const char *s, int num)
+{
+ cString buffer = cString::sprintf("%s:\t%i", s, num);
+ return new cOsdItem(buffer,osUnknown,false);
+}
+
cOsdItem *cMenuSetupXmltv2vdrChannelMap::option(const char *s, bool yesno)
{
cString buffer = cString::sprintf("%s:\t%s", s, yesno ? trVDR("yes") : trVDR("no"));
@@ -846,6 +852,7 @@ void cMenuSetupXmltv2vdrChannelMap::output(void)
c1=Current();
if ((flags & OPT_APPEND)!=OPT_APPEND)
{
+ Add(new cMenuEditIntItem(tr("days in advance"),&days,1,daysmax),true);
Add(new cMyMenuEditBitItem(tr("short text"),&flags,USE_SHORTTEXT),true);
Add(new cMyMenuEditBitItem(tr("long text"),&flags,USE_LONGTEXT),true);
c2=Current();
@@ -856,6 +863,7 @@ void cMenuSetupXmltv2vdrChannelMap::output(void)
}
else
{
+ Add(optionN(tr("days in advance"),1),true);
Add(option(tr("short text"),true),true);
Add(option(tr("long text"),true),true);
Add(option(tr(" merge long texts"),false),true);