From 47c3fea545a1b4607deda1e7d2fa51cbcf89a656 Mon Sep 17 00:00:00 2001 From: louis Date: Thu, 17 Jan 2013 13:16:44 +0100 Subject: Initial push tvguide 0.0.1 --- epggrid.h | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 epggrid.h (limited to 'epggrid.h') diff --git a/epggrid.h b/epggrid.h new file mode 100644 index 0000000..00160dc --- /dev/null +++ b/epggrid.h @@ -0,0 +1,44 @@ +#ifndef __TVGUIDE_EPGGRID_H +#define __TVGUIDE_EPGGRID_H + +// --- cEpgGrid ------------------------------------------------------------- + +class cEpgGrid : public cListObject, public cStyledPixmap { +private: + const cEvent *event; + cTextWrapper *text; + cTextWrapper *extText; + int viewportHeight; + int borderWidth; + void drawText(); + void setBackground(); + bool isColor1; + bool active; + bool dirty; + bool intersects(cEpgGrid *neighbor); + bool hasTimer; + void DrawRecIcon(); +public: + cEpgGrid(cChannelColumn *c, const cEvent *event); + virtual ~cEpgGrid(void); + cChannelColumn *column; + void SetViewportHeight(); + void PositionPixmap(); + void setText(); + void Draw(); + void SetDirty() {dirty = true;}; + void SetActive() {dirty = true; active = true;}; + void SetInActive() {dirty = true; active = false;}; + void SetColor(bool color) {isColor1 = color;}; + bool IsColor1() {return isColor1;}; + int GetViewportHeight() {return viewportHeight;}; + const cEvent *GetEvent() {return event;}; + bool isActiveInitial(time_t t); + time_t StartTime() { return event->StartTime(); }; + time_t EndTime() { return event->EndTime(); }; + int calcOverlap(cEpgGrid *neighbor); + void setTimer() {hasTimer = true;}; + void debug(); +}; + +#endif //__TVGUIDE_EPGGRID_H \ No newline at end of file -- cgit v1.2.3