summaryrefslogtreecommitdiff
path: root/menuitemtext.c
diff options
context:
space:
mode:
authorMartin Dummer <martin.dummer@gmx.net>2012-07-01 20:15:45 +0200
committerMartin Dummer <martin.dummer@gmx.net>2012-07-01 20:15:45 +0200
commit28498899a405329e3c8c8fc9af5d573d1d2f923e (patch)
treef7736f603c1a8281353dec79e77a269dc207eb4b /menuitemtext.c
downloadvdr-plugin-playlist-0.0.2rc3.tar.gz
vdr-plugin-playlist-0.0.2rc3.tar.bz2
Initial import of version 0.0.2rc3v0.0.2rc3
Diffstat (limited to 'menuitemtext.c')
-rw-r--r--menuitemtext.c36
1 files changed, 36 insertions, 0 deletions
diff --git a/menuitemtext.c b/menuitemtext.c
new file mode 100644
index 0000000..9bb0447
--- /dev/null
+++ b/menuitemtext.c
@@ -0,0 +1,36 @@
+/*
+ * playlist: A plugin for the Video Disk Recorder
+ *
+ * See the README file for copyright information and how to reach the author.
+ *
+ * $Id: menuitemtext.c 0.1 2004/09/23 23:42:32 hflor Exp $
+ */
+
+#include "menuitemtext.h"
+#include <vdr/menuitems.h>
+
+// --- cMenuText -------------------------------------------------------------
+
+cMenuItemText::cMenuItemText(const char *Title, const char *Text, eDvbFont Font)
+:cOsdMenu(Title)
+{
+ Add(new cMenuTextItem(Text, 1, 2, Setup.OSDwidth - 2, MAXOSDITEMS, clrWhite, clrBackground, Font));
+}
+
+eOSState cMenuItemText::ProcessKey(eKeys Key)
+{
+ eOSState state = cOsdMenu::ProcessKey(Key);
+
+ switch (state)
+ {
+ case osUnknown: switch (NORMALKEY(Key))
+ {
+ case kOk: state = osBack;
+ break;
+ default: break;
+ }
+ break;
+ default: break;
+ }
+ return state;
+}