summaryrefslogtreecommitdiff
path: root/detailview.h
blob: c7a6c50db5a4a3a97851353f91d6019851cd2d9f (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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#ifndef __TVGUIDE_DETAILVIEW_H
#define __TVGUIDE_DETAILVIEW_H

#include <vdr/osd.h>
#include <vdr/osdbase.h>
#include <vdr/epg.h>
#include "services/tvscraper.h"
#include "styledpixmap.h"
#include "footer.h"

// --- cDetailView  -------------------------------------------------------------

class cEpgGrid;

class cDetailView : public cThread {
private:
    cPixmap *back;
    cStyledPixmap *header;
    cPixmap *headerLogo;
    cPixmap *content;
    cPixmap *pixmapPoster;
    cPixmap *scrollBar;
    cFooter *footer;
    const cEvent *event;
    cImage *imgScrollBar;
    cTextWrapper description;
    cTextWrapper reruns;
    TVScraperGetFullInformation mediaInfo;
    bool hasAdditionalMedia;
    int border;
    int headerWidth;
    int headerHeight;
    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;
    int scrollBarWidth;
    bool setContentDrawportHeight();
    int heightContent;
    int heightScrollbar;
    int numEPGPics;
    bool contentScrollable;
    void loadReruns(void);
    int heightEPGPics(void);
    int heightActorPics(void);
    int heightFanartImg(void);
    void drawEPGPictures(int height);
    void drawRecIcon(void);
    void drawPoster(void);
    void drawBanner(int height);
    void drawActors(int height);
    void drawFanart(int height);
    cImage *createScrollbar(int width, int height, tColor clrBgr, tColor clrBlend);
    void scrollUp();
    void scrollDown();
    void pageUp();
    void pageDown();
    void Action(void);
public:
    cDetailView(const cEvent *event, cFooter *footer);
    virtual ~cDetailView(void);
    void setContent();
    void createPixmaps();
    void drawHeader();
    void drawContent();
    void drawScrollbar();
    eOSState ProcessKey(eKeys Key);
};

#endif //__TVGUIDE_DETAILVIEW_H