2013-01-17 13:16:44 +01:00
|
|
|
#ifndef __TVGUIDE_TIMELINE_H
|
|
|
|
#define __TVGUIDE_TIMELINE_H
|
|
|
|
|
2013-12-07 15:51:50 +01:00
|
|
|
#include "timer.h"
|
|
|
|
#include "styledpixmap.h"
|
|
|
|
|
2013-01-17 13:16:44 +01:00
|
|
|
// --- cTimeLine -------------------------------------------------------------
|
|
|
|
|
|
|
|
class cTimeLine {
|
|
|
|
private:
|
2013-05-26 11:38:05 +02:00
|
|
|
cMyTime *myTime;
|
|
|
|
cStyledPixmap *dateViewer;
|
|
|
|
cPixmap *timeline;
|
|
|
|
cStyledPixmap *clock;
|
|
|
|
cImage *createBackgroundImage(int width, int height, tColor clrBgr, tColor clrBlend);
|
2013-07-23 19:47:40 +02:00
|
|
|
void decorateTile(int posX, int posY, int tileWidth, int tileHeight);
|
|
|
|
void drawRoundedCorners(int posX, int posY, int width, int height, int radius);
|
2013-01-17 13:16:44 +01:00
|
|
|
public:
|
2013-05-26 11:38:05 +02:00
|
|
|
cTimeLine(cMyTime *myTime);
|
|
|
|
virtual ~cTimeLine(void);
|
|
|
|
void drawDateViewer();
|
|
|
|
void drawTimeline();
|
|
|
|
void setTimeline();
|
|
|
|
void drawClock();
|
2013-01-17 13:16:44 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif //__TVGUIDE_TIMELINE_H
|