2013-01-17 13:16:44 +01:00
|
|
|
#ifndef __TVGUIDE_DETAILVIEW_H
|
|
|
|
#define __TVGUIDE_DETAILVIEW_H
|
|
|
|
|
2013-12-07 15:51:50 +01:00
|
|
|
#include <vdr/osd.h>
|
|
|
|
#include <vdr/osdbase.h>
|
|
|
|
#include <vdr/epg.h>
|
|
|
|
#include "services/tvscraper.h"
|
|
|
|
#include "styledpixmap.h"
|
|
|
|
|
2013-01-17 13:16:44 +01:00
|
|
|
// --- cDetailView -------------------------------------------------------------
|
|
|
|
|
|
|
|
class cEpgGrid;
|
|
|
|
|
2013-08-25 13:57:10 +02:00
|
|
|
class cDetailView : public cThread {
|
2013-01-17 13:16:44 +01:00
|
|
|
private:
|
2013-12-21 11:25:03 +01:00
|
|
|
cPixmap *back;
|
2013-05-26 11:38:05 +02:00
|
|
|
cStyledPixmap *header;
|
|
|
|
cPixmap *headerLogo;
|
|
|
|
cPixmap *headerBack;
|
|
|
|
cPixmap *content;
|
2013-08-25 13:57:10 +02:00
|
|
|
cPixmap *pixmapPoster;
|
2013-05-26 11:38:05 +02:00
|
|
|
cPixmap *scrollBar;
|
|
|
|
cPixmap *footer;
|
|
|
|
const cEvent *event;
|
|
|
|
cImage *imgScrollBar;
|
|
|
|
cTextWrapper description;
|
2013-05-26 17:44:04 +02:00
|
|
|
cTextWrapper reruns;
|
2013-08-25 13:57:10 +02:00
|
|
|
TVScraperGetFullInformation mediaInfo;
|
|
|
|
bool hasAdditionalMedia;
|
|
|
|
int border;
|
2013-05-26 11:38:05 +02:00
|
|
|
int headerHeight;
|
2013-08-25 13:57:10 +02:00
|
|
|
int width;
|
|
|
|
int contentWidth;
|
|
|
|
int contentHeight;
|
|
|
|
int contentX;
|
|
|
|
int widthPoster;
|
|
|
|
int yBanner;
|
|
|
|
int yEPGText;
|
|
|
|
int yActors;
|
|
|
|
int yFanart;
|
|
|
|
int yAddInf;
|
|
|
|
int yEPGPics;
|
|
|
|
int actorThumbWidth;
|
|
|
|
int actorThumbHeight;
|
2013-06-03 09:52:54 +02:00
|
|
|
int scrollBarWidth;
|
2013-05-26 11:38:05 +02:00
|
|
|
bool setContentDrawportHeight();
|
|
|
|
int heightContent;
|
|
|
|
int heightScrollbar;
|
2013-06-03 09:52:54 +02:00
|
|
|
int numEPGPics;
|
2013-05-26 11:38:05 +02:00
|
|
|
bool contentScrollable;
|
2013-06-03 09:52:54 +02:00
|
|
|
void loadReruns(void);
|
|
|
|
int heightEPGPics(void);
|
2013-08-25 13:57:10 +02:00
|
|
|
int heightActorPics(void);
|
|
|
|
int heightFanartImg(void);
|
2013-06-03 09:52:54 +02:00
|
|
|
void drawEPGPictures(int height);
|
2013-07-20 13:46:26 +02:00
|
|
|
void drawRecIcon(void);
|
2013-08-25 13:57:10 +02:00
|
|
|
void drawPoster(void);
|
|
|
|
void drawBanner(int height);
|
|
|
|
void drawActors(int height);
|
|
|
|
void drawFanart(int height);
|
2013-05-26 11:38:05 +02:00
|
|
|
cImage *createScrollbar(int width, int height, tColor clrBgr, tColor clrBlend);
|
2013-07-17 16:43:57 +02:00
|
|
|
void scrollUp();
|
|
|
|
void scrollDown();
|
|
|
|
void pageUp();
|
|
|
|
void pageDown();
|
2013-08-25 13:57:10 +02:00
|
|
|
void Action(void);
|
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);
|
2013-08-25 13:57:10 +02:00
|
|
|
void setContent();
|
2013-05-26 11:38:05 +02:00
|
|
|
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
|