summaryrefslogtreecommitdiff
path: root/displayreplay.h
blob: 1cdd1eb211ef5b24ba7fbea6b7ecc2e00fee9445 (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
#pragma once

#include "baserender.h"
#include "services/scraper2vdr.h"

class cFlatDisplayReplay : public cFlatBaseRender, public cSkinDisplayReplay, public cThread {
    private:
        cString current, total;

        int labelHeight;
        cPixmap *labelPixmap;
        cPixmap *labelJump;
        cPixmap *iconsPixmap;
        cPixmap *chanEpgImagesPixmap;
        cPixmap *dimmPixmap;

        cFont *fontSecs;
        const cRecording *recording;

        int screenWidth, lastScreenWidth;
        int screenHeight;
        double screenAspect;

        // dimm on pause
        bool dimmActive;
        time_t dimmStartTime;

        bool ProgressShown;
        bool modeOnly;
        void UpdateInfo(void);
        void ResolutionAspectDraw(void);

        virtual void Action(void);
    public:
        cFlatDisplayReplay(bool ModeOnly);
        virtual ~cFlatDisplayReplay();
        virtual void SetRecording(const cRecording *Recording);
        virtual void SetTitle(const char *Title);
        virtual void SetMode(bool Play, bool Forward, int Speed);
        virtual void SetProgress(int Current, int Total);
        virtual void SetCurrent(const char *Current);
        virtual void SetTotal(const char *Total);
        virtual void SetJump(const char *Jump);
        virtual void SetMessage(eMessageType Type, const char *Text);
        virtual void Flush(void);

        void PreLoadImages(void);
};