summaryrefslogtreecommitdiff
path: root/displayreplay.h
diff options
context:
space:
mode:
authorkamel5 <kamel5 (at) gmx (dot) net>2018-05-07 18:33:23 +0200
committerkamel5 <kamel5 (at) gmx (dot) net>2018-05-08 17:01:09 +0200
commitdefb350bef8e0ccbd72d585440d9cf880515ae34 (patch)
treefedc375480df59a6627f7989f3cef8504bae33f2 /displayreplay.h
parent421a3c92a5c5fd248b9c52715d2df7ce1ecae97f (diff)
downloadskin-lcarsng-defb350bef8e0ccbd72d585440d9cf880515ae34.tar.gz
skin-lcarsng-defb350bef8e0ccbd72d585440d9cf880515ae34.tar.bz2
Split displaychannel displayreplay
Diffstat (limited to 'displayreplay.h')
-rw-r--r--displayreplay.h58
1 files changed, 58 insertions, 0 deletions
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 <vdr/font.h>
+#include <vdr/menu.h>
+#include <vdr/osd.h>
+#if APIVERSNUM > 20101
+#include <vdr/positioner.h>
+#endif
+#include <vdr/themes.h>
+#include <vdr/thread.h>
+#include <vdr/tools.h>
+#include <vdr/videodir.h>
+#include <sys/statvfs.h>
+#include <string>
+
+// --- 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);
+ };