summaryrefslogtreecommitdiff
path: root/displayreplay.h
blob: 9ada0fcf24e861a11c83939ba31c6375af6aae9d (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
#ifndef __NOPACITY_DISPLAYREPLAY_H
#define __NOPACITY_DISPLAYREPLAY_H

#include <vdr/skins.h>
#include <vdr/thread.h>
#include "imagecache.h"

class cNopacityDisplayReplay : public cSkinDisplayReplay , cThread{
private:
    cOsd *osd;
    cImageCache *imgCache;
    bool initial;
    bool modeOnly;
    cString lastDate;
    int FrameTime;
    int FadeTime;
    cPixmap *pixmapBackground;
    cPixmap *pixmapTop;
    cPixmap *pixmapInfo;
    cPixmap *pixmapDate;
    cPixmap *pixmapInfo2;
    cPixmap *pixmapProgressBar;
    cPixmap *pixmapCurrent;
    cPixmap *pixmapTotal;
    cPixmap *pixmapScreenRes;
    cPixmap *pixmapScreenResBackground;
    cPixmap *pixmapControls;
    cPixmap *pixmapRew;
    cPixmap *pixmapPause;
    cPixmap *pixmapPlay;
    cPixmap *pixmapFwd;
    cPixmap *pixmapJump;
    cPixmap *pixmapMessage;
    virtual void Action(void);
    void createOSD(void);
    void CreatePixmaps(void);
    void DrawBackground(void);
    void DrawDate(void);
    void LoadControlIcons(void);
    void DrawScreenResolution(void);
public:
  cNopacityDisplayReplay(cImageCache *imgCache, bool ModeOnly);
  virtual ~cNopacityDisplayReplay();
  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);
  };

#endif //__NOPACITY_DISPLAYREPLAY_H