2013-01-17 13:16:44 +01:00
|
|
|
#ifndef __TVGUIDE_EPGGRID_H
|
|
|
|
#define __TVGUIDE_EPGGRID_H
|
|
|
|
|
|
|
|
// --- cEpgGrid -------------------------------------------------------------
|
|
|
|
|
2013-05-20 11:37:37 +02:00
|
|
|
class cEpgGrid : public cGrid {
|
2013-01-17 13:16:44 +01:00
|
|
|
private:
|
2013-05-26 11:38:05 +02:00
|
|
|
const cEvent *event;
|
|
|
|
cTextWrapper *extText;
|
2013-05-24 16:23:23 +02:00
|
|
|
cString timeString;
|
2013-05-20 11:37:37 +02:00
|
|
|
bool hasTimer;
|
2013-05-26 11:38:05 +02:00
|
|
|
void drawText();
|
|
|
|
void drawRecIcon();
|
2013-05-20 11:37:37 +02:00
|
|
|
time_t Duration(void) { return event->Duration(); };
|
2013-01-17 13:16:44 +01:00
|
|
|
public:
|
2013-05-26 11:38:05 +02:00
|
|
|
cEpgGrid(cChannelColumn *c, const cEvent *event);
|
|
|
|
virtual ~cEpgGrid(void);
|
|
|
|
void SetViewportHeight();
|
2013-05-20 11:37:37 +02:00
|
|
|
void PositionPixmap();
|
|
|
|
void setText(void);
|
2013-05-26 11:38:05 +02:00
|
|
|
const cEvent *GetEvent() {return event;};
|
|
|
|
time_t StartTime() { return event->StartTime(); };
|
|
|
|
time_t EndTime() { return event->EndTime(); };
|
|
|
|
void setTimer() {hasTimer = true;};
|
2013-05-20 11:37:37 +02:00
|
|
|
cString getTimeString(void);
|
2013-05-26 11:38:05 +02:00
|
|
|
void debug();
|
2013-01-17 13:16:44 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif //__TVGUIDE_EPGGRID_H
|