From defb350bef8e0ccbd72d585440d9cf880515ae34 Mon Sep 17 00:00:00 2001 From: kamel5 Date: Mon, 7 May 2018 18:33:23 +0200 Subject: Split displaychannel displayreplay --- displayreplay.h | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 displayreplay.h (limited to 'displayreplay.h') diff --git a/displayreplay.h b/displayreplay.h new file mode 100644 index 0000000..b0c9f2a --- /dev/null +++ b/displayreplay.h @@ -0,0 +1,58 @@ +/* + * skinlcars.c: A VDR skin with Star Trek's "LCARS" layout + * + * See the main source file 'vdr.c' for copyright information and + * how to reach the author. + * + * $Id: skinlcars.c 4.1 2015/09/01 10:07:07 kls Exp $ + */ + +#include "lcarsng.h" +#include +#include +#include +#if APIVERSNUM > 20101 +#include +#endif +#include +#include +#include +#include +#include +#include + +// --- cLCARSNGDisplayReplay ----------------------------------------------- + +class cLCARSNGDisplayReplay : public cSkinDisplayReplay, cThread { +private: + cOsd *osd; + int xp00, xp01, xp02, xp03, xp04, xp05, xp06, xp07, xp08, xp09, xp10, xp11, xp12, xp13, xp14, xp15; + int yp00, yp01, yp02, yp03, yp04, yp05, yp06, yp07, yp08, yp09; + bool modeOnly; + int lineHeight; + tColor frameColor; + int lastCurrentWidth; + int lastTotalWidth; + cString lastDate; + tTrackId lastTrackId; + static cBitmap bmTeletext, bmRadio, bmAudio, bmDolbyDigital, bmEncrypted, bmRecording; + void Action(void); + void DrawDate(void); + void DrawTrack(void); + void DrawBlinkingRec(void); + bool initial; + bool lastOn; + bool On; +public: + cLCARSNGDisplayReplay(bool ModeOnly); + virtual ~cLCARSNGDisplayReplay(); + 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); + }; -- cgit v1.2.3