summaryrefslogtreecommitdiff
path: root/menuitems.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2004-03-28 09:20:02 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2004-03-28 09:20:02 +0200
commit3c4010bb7525dc6497d38584692b8085d0f4fcad (patch)
tree20599d003a79d26684f66229a69b3aa9df50bfdd /menuitems.h
parentb5e7c111781cb48a4a6e46d18b7df5116e3257bb (diff)
downloadvdr-3c4010bb7525dc6497d38584692b8085d0f4fcad.tar.gz
vdr-3c4010bb7525dc6497d38584692b8085d0f4fcad.tar.bz2
Moved several menu item classes from menu.c to menuitems.[hc] to make them available for plugins
Diffstat (limited to 'menuitems.h')
-rw-r--r--menuitems.h49
1 files changed, 48 insertions, 1 deletions
diff --git a/menuitems.h b/menuitems.h
index 7091740d..04779dc0 100644
--- a/menuitems.h
+++ b/menuitems.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: menuitems.h 1.6 2004/02/24 11:55:14 kls Exp $
+ * $Id: menuitems.h 1.7 2004/03/28 09:16:24 kls Exp $
*/
#ifndef __MENUITEMS_H
@@ -119,6 +119,53 @@ public:
virtual eOSState ProcessKey(eKeys Key);
};
+class cMenuEditChanItem : public cMenuEditIntItem {
+protected:
+ virtual void Set(void);
+public:
+ cMenuEditChanItem(const char *Name, int *Value);
+ virtual eOSState ProcessKey(eKeys Key);
+ };
+
+class cMenuEditTranItem : public cMenuEditChanItem {
+private:
+ int number;
+ int transponder;
+public:
+ cMenuEditTranItem(const char *Name, int *Value);
+ virtual eOSState ProcessKey(eKeys Key);
+ };
+
+class cMenuEditDayItem : public cMenuEditIntItem {
+protected:
+ static int days[];
+ int d;
+ virtual void Set(void);
+public:
+ cMenuEditDayItem(const char *Name, int *Value);
+ virtual eOSState ProcessKey(eKeys Key);
+ };
+
+class cMenuEditDateItem : public cMenuEditItem {
+protected:
+ time_t *value;
+ virtual void Set(void);
+public:
+ cMenuEditDateItem(const char *Name, time_t *Value);
+ virtual eOSState ProcessKey(eKeys Key);
+ };
+
+class cMenuEditTimeItem : public cMenuEditItem {
+protected:
+ int *value;
+ int hh, mm;
+ int pos;
+ virtual void Set(void);
+public:
+ cMenuEditTimeItem(const char *Name, int *Value);
+ virtual eOSState ProcessKey(eKeys Key);
+ };
+
class cPlugin;
class cMenuSetupPage : public cOsdMenu {