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
66
67
68
69
70
71
72
73
74
|
#ifndef __NOPACITY_DISPLAYCHANNEL_H
#define __NOPACITY_DISPLAYCHANNEL_H
class cNopacityDisplayChannel : public cSkinDisplayChannel, cThread {
private:
int FrameTime;
int FadeTime;
bool withInfo;
bool initial;
bool groupSep;
bool channelChange;
cString lastDate;
int lastSeen;
time_t lastSignalDisplay;
int lastSignalStrength;
int lastSignalQuality;
int lastScreenWidth;
int currentLast;
bool showSignal;
const cEvent *present;
cOsd *osd;
cPixmap *pixmapBackgroundTop;
cPixmap *pixmapBackgroundMiddle;
cPixmap *pixmapBackgroundBottom;
cPixmap *pixmapChannelInfo;
cPixmap *pixmapDate;
cPixmap *pixmapLogo;
cPixmap *pixmapProgressBar;
cPixmap *pixmapEPGInfo;
cPixmap *pixmapStreamInfo;
cPixmap *pixmapSignalStrength;
cPixmap *pixmapSignalQuality;
cPixmap *pixmapSignalMeter;
cPixmap *pixmapSignalLabel;
cPixmap *pixmapScreenResolution;
int height;
int infoWidth;
int infoX;
int channelInfoWidth;
int channelInfoHeight;
int dateWidth;
int progressBarHeight;
int epgInfoHeight;
int epgInfoLineHeight;
int streamInfoHeight;
int streamInfoY;
int signalWidth, signalHeight, signalX;
cFont *fontHeader;
cFont *fontDate;
cFont *fontEPG;
cFont *fontEPGSmall;
cFont *fontInfoline;
virtual void Action(void);
void SetGeometry(void);
void CreatePixmaps(void);
void CreateFonts(void);
void DrawBackground(void);
void DrawDate(void);
void DrawProgressBar(int Current, int Total);
tColor DrawProgressbarBackground(int left, int top, int width, int height);
void DrawIcons(const cChannel *channel);
void DrawScreenResolution(void);
void DrawSignalMeter(void);
void DrawSignal(void);
static cBitmap bmTeletext, bmRadio, bmAudio, bmDolbyDigital, bmEncrypted, bmRecording;
public:
cNopacityDisplayChannel(bool WithInfo);
virtual ~cNopacityDisplayChannel();
virtual void SetChannel(const cChannel *Channel, int Number);
virtual void SetEvents(const cEvent *Present, const cEvent *Following);
virtual void SetMessage(eMessageType Type, const char *Text);
virtual void Flush(void);
};
#endif //__NOPACITY_DISPLAYCHANNEL_H
|