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

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

class cEpgGrid;

class cDetailView : public cThread  {
private:
    cGrid *grid;
    cStyledPixmap *header;
    cPixmap *headerLogo;
    cPixmap *headerBack;
    cPixmap *content;
    cPixmap *scrollBar;
    cPixmap *footer;
    const cEvent *event;
    cImage *imgScrollBar;
    int FrameTime;
    int FadeTime;
    cTextWrapper description;
    cTextWrapper reruns;
    int borderWidth;
    int headerHeight;
    bool setContentDrawportHeight();
    int heightContent;
    int heightScrollbar;
    bool contentScrollable;
    virtual void Action(void);
    void LoadReruns(void);
    void drawHeader();
    void drawContent();
    void drawScrollbar();
    cImage *createScrollbar(int width, int height, tColor clrBgr, tColor clrBlend);
public:
    cDetailView(cGrid *grid);
    virtual ~cDetailView(void);
    void createPixmaps();
    void scrollUp();
    void scrollDown();
};

#endif //__TVGUIDE_DETAILVIEW_H