diff options
Diffstat (limited to 'epggrid.h')
-rw-r--r-- | epggrid.h | 44 |
1 files changed, 44 insertions, 0 deletions
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 |