summaryrefslogtreecommitdiff
path: root/epggrid.h
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2013-05-20 11:37:37 +0200
committerlouis <louis.braun@gmx.de>2013-05-20 11:37:37 +0200
commitc611e004582067640111ef2f023410025201157d (patch)
tree3a71e9893bffa4bf9d38c49389dad5f43d046ec3 /epggrid.h
parent063094f442c0ac3c592d2e5bb5c416d6820d2602 (diff)
downloadvdr-plugin-tvguide-c611e004582067640111ef2f023410025201157d.tar.gz
vdr-plugin-tvguide-c611e004582067640111ef2f023410025201157d.tar.bz2
rewrote epg grid handling and scrolling, added status header
Diffstat (limited to 'epggrid.h')
-rw-r--r--epggrid.h30
1 files changed, 7 insertions, 23 deletions
diff --git a/epggrid.h b/epggrid.h
index 00160dc..aa88b7f 100644
--- a/epggrid.h
+++ b/epggrid.h
@@ -3,41 +3,25 @@
// --- cEpgGrid -------------------------------------------------------------
-class cEpgGrid : public cListObject, public cStyledPixmap {
+class cEpgGrid : public cGrid {
private:
const cEvent *event;
- cTextWrapper *text;
cTextWrapper *extText;
- int viewportHeight;
- int borderWidth;
+ bool hasTimer;
void drawText();
- void setBackground();
- bool isColor1;
- bool active;
- bool dirty;
- bool intersects(cEpgGrid *neighbor);
- bool hasTimer;
- void DrawRecIcon();
+ void drawRecIcon();
+ time_t Duration(void) { return event->Duration(); };
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;};
+ void PositionPixmap();
+ void setText(void);
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;};
+ cString getTimeString(void);
void debug();
};