summaryrefslogtreecommitdiff
path: root/displayreplay.h
blob: 015a9f0ab2dd7bba142f79e9a65f7c18c61ac1ac (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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#ifndef __NOPACITY_DISPLAYREPLAY_H
#define __NOPACITY_DISPLAYREPLAY_H

class cNopacityDisplayReplay : public cSkinDisplayReplay , cThread{
private:
	cOsd *osd;
	bool initial;
	bool modeOnly;
	cString lastDate;
	int width;
	int height;
	int headerHeight;
	int info2Height;
	int progressBarHeight;
	int currentHeight;
	int controlsHeight;
	int footerHeight;
	int infoWidth;
	int dateWidth;
	int iconSize, iconBorder;
	int jumpX, jumpY; 
	int jumpWidth, jumpHeight;
	int FrameTime;
	int FadeTime;
	cPixmap *pixmapHeader;
	cPixmap *pixmapBackground;
	cPixmap *pixmapInfo;
	cPixmap *pixmapDate;
	cPixmap *pixmapInfo2;
	cPixmap *pixmapProgressBar;
	cPixmap *pixmapCurrent;
	cPixmap *pixmapTotal;
	cPixmap *pixmapControls;
	cPixmap *pixmapRew;
	cPixmap *pixmapRewBackground;
	cPixmap *pixmapRewSpeed;
	cPixmap *pixmapPause;
	cPixmap *pixmapPauseBackground;
	cPixmap *pixmapPlay;
	cPixmap *pixmapPlayBackground;
	cPixmap *pixmapFwd;
	cPixmap *pixmapFwdBackground;
	cPixmap *pixmapFwdSpeed;
	cPixmap *pixmapJump;
	cPixmap *pixmapFooter;
	cFont *fontReplayHeader;
	cFont *fontReplay;
	virtual void Action(void);
	void SetGeometry(void);
	void CreatePixmaps(void);
	void CreateFonts(void);
	void DrawBackground(void);
	void DrawDate(void);
	void LoadControlIcons(void);
public:
  cNopacityDisplayReplay(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