forked from vdr-projects/vdr-plugin-skinflatplus
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdisplayreplay.h
65 lines (52 loc) · 1.89 KB
/
displayreplay.h
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
/*
* Skin flatPlus: A plugin for the Video Disk Recorder
*
* See the README file for copyright information and how to reach the author.
*
* $Id$
*/
#pragma once
#include "./baserender.h"
#include "./services/scraper2vdr.h"
class cFlatDisplayReplay : public cFlatBaseRender, public cSkinDisplayReplay, public cThread {
public:
explicit 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 PreLoadImages();
private:
cString m_Current {""}, m_Total {""};
int m_LastCurrentWidth {0};
int m_LabelHeight {0};
cPixmap *LabelPixmap {nullptr};
cPixmap *LabelJumpPixmap {nullptr};
cPixmap *IconsPixmap {nullptr};
cPixmap *ChanEpgImagesPixmap {nullptr};
cPixmap *DimmPixmap {nullptr};
cFont *m_FontSecs {nullptr};
const cRecording *m_Recording {nullptr};
int m_ScreenWidth {-1}, m_LastScreenWidth {-1};
int m_ScreenHeight {0};
double m_ScreenAspect {0.0};
time_t m_LastEndTimeUpdate {0};
cString m_LastCurrent {""};
// TVScraper
cRect m_TVSRect {0, 0, 0, 0};
// Dimm on pause
bool m_DimmActive {false};
time_t m_DimmStartTime {0};
int m_CurrentFrame {0};
bool m_ProgressShown {false};
bool m_ModeOnly {false};
void UpdateInfo();
void ResolutionAspectDraw();
virtual void Action();
};