vdr-plugin-tvguide/detailview.h

47 lines
1.2 KiB
C
Raw Normal View History

2013-01-17 13:16:44 +01:00
#ifndef __TVGUIDE_DETAILVIEW_H
#define __TVGUIDE_DETAILVIEW_H
// --- cDetailView -------------------------------------------------------------
class cEpgGrid;
2013-07-09 00:17:42 +02:00
class cDetailView {
2013-01-17 13:16:44 +01:00
private:
2013-05-26 11:38:05 +02:00
cStyledPixmap *header;
cPixmap *headerLogo;
cPixmap *headerBack;
cPixmap *content;
cPixmap *scrollBar;
cPixmap *footer;
const cEvent *event;
cImage *imgScrollBar;
cTextWrapper description;
2013-05-26 17:44:04 +02:00
cTextWrapper reruns;
2013-05-26 11:38:05 +02:00
int borderWidth;
int headerHeight;
int scrollBarWidth;
2013-05-26 11:38:05 +02:00
bool setContentDrawportHeight();
int heightContent;
int heightScrollbar;
int numEPGPics;
2013-05-26 11:38:05 +02:00
bool contentScrollable;
void loadReruns(void);
int heightEPGPics(void);
void drawEPGPictures(int height);
2013-07-20 13:46:26 +02:00
void drawRecIcon(void);
2013-05-26 11:38:05 +02:00
cImage *createScrollbar(int width, int height, tColor clrBgr, tColor clrBlend);
void scrollUp();
void scrollDown();
void pageUp();
void pageDown();
2013-01-17 13:16:44 +01:00
public:
2013-07-09 00:17:42 +02:00
cDetailView(const cEvent *event);
2013-05-26 11:38:05 +02:00
virtual ~cDetailView(void);
void createPixmaps();
2013-07-09 00:17:42 +02:00
void drawHeader();
void drawContent();
void drawScrollbar();
eOSState ProcessKey(eKeys Key);
2013-01-17 13:16:44 +01:00
};
#endif //__TVGUIDE_DETAILVIEW_H