From b8754b03ee58576511ea35ac627420c36a88d43b Mon Sep 17 00:00:00 2001 From: louis Date: Mon, 23 Dec 2013 09:12:19 +0100 Subject: Added feature to jump to a specific channel with number keys --- channeljump.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 channeljump.h (limited to 'channeljump.h') 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 -- cgit v1.2.3