summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2004-01-05 12:08:09 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2004-01-05 12:08:09 +0100
commit6096500940b17b92ac6be82007daf22e055e041e (patch)
tree77ca9993f9e726497c9bd271b0079106423e57a8 /menu.c
parenteab7806f2018eeed66d4cfb2151c069237206cd4 (diff)
downloadvdr-6096500940b17b92ac6be82007daf22e055e041e.tar.gz
vdr-6096500940b17b92ac6be82007daf22e055e041e.tar.bz2
Added 'Update channels' setup parameter
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/menu.c b/menu.c
index 5e628bbb..6e2c17be 100644
--- a/menu.c
+++ b/menu.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: menu.c 1.276 2004/01/04 11:12:43 kls Exp $
+ * $Id: menu.c 1.277 2004/01/05 11:51:33 kls Exp $
*/
#include "menu.h"
@@ -2045,6 +2045,8 @@ cMenuSetupEPG::cMenuSetupEPG(void)
// --- cMenuSetupDVB ---------------------------------------------------------
class cMenuSetupDVB : public cMenuSetupBase {
+private:
+ const char *updateChannelsTexts[4];
public:
cMenuSetupDVB(void);
virtual eOSState ProcessKey(eKeys Key);
@@ -2052,9 +2054,15 @@ public:
cMenuSetupDVB::cMenuSetupDVB(void)
{
+ updateChannelsTexts[0] = tr("no");
+ updateChannelsTexts[1] = tr("names only");
+ updateChannelsTexts[2] = tr("names and PIDs");
+ updateChannelsTexts[3] = tr("add new channels");
+
SetSection(tr("DVB"));
Add(new cMenuEditIntItem( tr("Setup.DVB$Primary DVB interface"), &data.PrimaryDVB, 1, cDevice::NumDevices()));
Add(new cMenuEditBoolItem(tr("Setup.DVB$Video format"), &data.VideoFormat, "4:3", "16:9"));
+ Add(new cMenuEditStraItem(tr("Setup.DVB$Update channels"), &data.UpdateChannels, 4, updateChannelsTexts));
}
eOSState cMenuSetupDVB::ProcessKey(eKeys Key)