summaryrefslogtreecommitdiff
path: root/osdmenu.h
diff options
context:
space:
mode:
authorMartin Schirrmacher <root@suffball.ath.cx>2013-04-11 13:25:51 +0200
committerMartin Schirrmacher <root@suffball.ath.cx>2013-04-11 13:25:51 +0200
commit4762c54a64e6390559dc12cc590d7095fac79795 (patch)
tree18460287e79628eb303f45f69971ab84d0c1c238 /osdmenu.h
downloadvdr-plugin-neutrinoepg-4762c54a64e6390559dc12cc590d7095fac79795.tar.gz
vdr-plugin-neutrinoepg-4762c54a64e6390559dc12cc590d7095fac79795.tar.bz2
initial commit
Diffstat (limited to 'osdmenu.h')
-rw-r--r--osdmenu.h58
1 files changed, 58 insertions, 0 deletions
diff --git a/osdmenu.h b/osdmenu.h
new file mode 100644
index 0000000..37de714
--- /dev/null
+++ b/osdmenu.h
@@ -0,0 +1,58 @@
+#ifndef OSDMENU_H_
+#define OSDMENU_H_
+
+#include <vdr/menu.h>
+#include "neutrinoepg.h"
+
+extern time_t t;
+extern int MaxGroup;
+extern int *CurrentGroupChannel;
+extern int *FirstGroupChannel;
+extern int *LastGroupChannel;
+
+// --- myMenuWhatsOn ----------------------------------------------------------
+class myOsdMenu : public cOsdMenu
+{
+ private:
+ bool next, jumpto;
+ char tmp[16];
+
+ int GroupCount;
+ int ChannelCount;
+
+ int ChannelsShown;
+ int ChannelsBefore;
+ int ChannelsAfter;
+ int CurrentGroup;
+
+ int hh, mm, index;
+ const cSchedules *schedules;
+ cSchedulesLock schedulesLock;
+
+ void LoadSchedules(int shift);
+ void GoToDay(int day);
+ void JumpTo(int hh,int mm);
+ void SetMyTitle(void);
+ eOSState Switch();
+ int Tab(){if(Setup.UseSmallFont==2)return 5;else return 6;}
+
+ int GetGroupIndex(int Group);
+ int GetGroupByGroupIndex(int GroupIndex);
+ int GetGroupFromChannel(int ChanIndex);
+ int GetLastGroupIndex(void);
+ int GetFirstGroupIndex(void);
+ int GetFirstChannelOfGroup(int Group);
+ int GetLastChannelOfGroup(int Group);
+ int GetNextChannel(int ChanIndex);
+ int GetPrevChannel(int ChanIndex);
+ bool isChannelInGroup(int ChanIndex, int Group);
+ bool ChannelsHasGroup(void);
+ bool FirstChannelsHasGroup(void);
+
+ public:
+ myOsdMenu();
+ ~myOsdMenu();
+ virtual eOSState ProcessKey(eKeys Key);
+};
+
+#endif