summaryrefslogtreecommitdiff
path: root/channeljump.h
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2013-12-23 09:12:19 +0100
committerlouis <louis.braun@gmx.de>2013-12-23 09:12:19 +0100
commitb8754b03ee58576511ea35ac627420c36a88d43b (patch)
treeb45b30f47306f17362e9a7c461e7228509b3f84f /channeljump.h
parent0a1e7935130518c41a9720e776a93e8520160ede (diff)
downloadvdr-plugin-tvguide-b8754b03ee58576511ea35ac627420c36a88d43b.tar.gz
vdr-plugin-tvguide-b8754b03ee58576511ea35ac627420c36a88d43b.tar.bz2
Added feature to jump to a specific channel with number keys
Diffstat (limited to 'channeljump.h')
-rw-r--r--channeljump.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/channeljump.h b/channeljump.h
new file mode 100644
index 0000000..6bb988f
--- /dev/null
+++ b/channeljump.h
@@ -0,0 +1,29 @@
+#ifndef __TVGUIDE_CHANNELJUMP_H
+#define __TVGUIDE_CHANNELJUMP_H
+
+#include "styledpixmap.h"
+
+// --- cChannelJump -------------------------------------------------------------
+
+class cChannelJump : public cStyledPixmap {
+private:
+ int channel;
+ cChannelGroups *channelGroups;
+ int maxChannels;
+ int startTime;
+ int timeout;
+ cPixmap *pixmapBack;
+ cPixmap *pixmapText;
+ void SetPixmaps(void);
+ void Draw(void);
+ cString BuildChannelString(void);
+public:
+ cChannelJump(cChannelGroups *channelGroups);
+ virtual ~cChannelJump(void);
+ void Set(int num);
+ void DrawText(void);
+ bool TimeOut(void);
+ int GetChannel(void) { return channel; };
+};
+
+#endif //__TVGUIDE_CHANNELJUMP_H \ No newline at end of file