summaryrefslogtreecommitdiff
path: root/epggrid.h
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2013-01-17 13:16:44 +0100
committerlouis <louis.braun@gmx.de>2013-01-17 13:16:44 +0100
commit47c3fea545a1b4607deda1e7d2fa51cbcf89a656 (patch)
tree4109469360bfb71ce467c240a33d0738ad44c18e /epggrid.h
downloadvdr-plugin-tvguide-47c3fea545a1b4607deda1e7d2fa51cbcf89a656.tar.gz
vdr-plugin-tvguide-47c3fea545a1b4607deda1e7d2fa51cbcf89a656.tar.bz2
Initial push tvguide 0.0.1
Diffstat (limited to 'epggrid.h')
-rw-r--r--epggrid.h44
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