summaryrefslogtreecommitdiff
path: root/grid.h
blob: 146b896e6b3364f7597738e7df3eea99a67d41e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#ifndef __TVGUIDE_GRID_H
#define __TVGUIDE_GRID_H

// --- cEpgGrid  -------------------------------------------------------------

class cGrid : public cListObject, public cStyledPixmap {
protected:
	cTextWrapper *text;
	int viewportHeight;
	int borderWidth;
	void setBackground();
	bool isColor1;
	bool active;
	bool dirty;
	bool intersects(cGrid *neighbor);
    virtual time_t Duration(void) {};
    virtual void drawText(void) {};
    bool dummy;
public:
	cGrid(cChannelColumn *c);
	virtual ~cGrid(void);
	cChannelColumn *column;
	virtual void SetViewportHeight() {};
	virtual void PositionPixmap() {};
	virtual void setText(void) {};
	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;};
    bool isFirst(void);
    virtual const cEvent *GetEvent() {};
	bool Match(time_t t);
	virtual time_t StartTime() {};
	virtual time_t EndTime() {};
	virtual void SetStartTime(time_t start) {};
	virtual void SetEndTime(time_t end) {};
	int calcOverlap(cGrid *neighbor);
	virtual void setTimer() {};
    virtual cString getText(void) { return cString("");};
    virtual cString getTimeString(void) { return cString("");};
    bool Active(void) { return active; };
    bool isDummy() { return dummy; };
    virtual void debug() {};
};

#endif //__TVGUIDE_GRID_H