summaryrefslogtreecommitdiff
path: root/detailview.h
blob: 6b59bbb4e657bcc8996ee7b3bf68bd02c2fe88e6 (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
#ifndef __TVGUIDE_DETAILVIEW_H
#define __TVGUIDE_DETAILVIEW_H

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

class cEpgGrid;

class cDetailView {
private:
    cStyledPixmap *header;
    cPixmap *headerLogo;
    cPixmap *headerBack;
    cPixmap *content;
    cPixmap *scrollBar;
    cPixmap *footer;
    const cEvent *event;
    cImage *imgScrollBar;
    cTextWrapper description;
    cTextWrapper reruns;
    int borderWidth;
    int headerHeight;
    int scrollBarWidth;
    bool setContentDrawportHeight();
    int heightContent;
    int heightScrollbar;
    int numEPGPics;
    bool contentScrollable;
    void loadReruns(void);
    int heightEPGPics(void);
    void drawEPGPictures(int height);
    cImage *createScrollbar(int width, int height, tColor clrBgr, tColor clrBlend);
public:
    cDetailView(const cEvent *event);
    virtual ~cDetailView(void);
    void createPixmaps();
    void drawHeader();
    void drawContent();
    void drawScrollbar();
    void scrollUp();
    void scrollDown();
    eOSState ProcessKey(eKeys Key);
};

#endif //__TVGUIDE_DETAILVIEW_H