summaryrefslogtreecommitdiff
path: root/displaychannel.h
diff options
context:
space:
mode:
authorroot <root@maschine.(none)>2012-11-27 02:11:15 +0100
committerroot <root@maschine.(none)>2012-11-27 02:11:15 +0100
commit4b51af06327270caa4f38c31f28cdfbc1baabc4e (patch)
tree2556e7eb912d5f1352866924cfe3e6f3d2dc13bb /displaychannel.h
downloadskin-nopacity-4b51af06327270caa4f38c31f28cdfbc1baabc4e.tar.gz
skin-nopacity-4b51af06327270caa4f38c31f28cdfbc1baabc4e.tar.bz2
Initial push nOpacity 0.0.3
Diffstat (limited to 'displaychannel.h')
-rw-r--r--displaychannel.h74
1 files changed, 74 insertions, 0 deletions
diff --git a/displaychannel.h b/displaychannel.h
new file mode 100644
index 0000000..9052c0e
--- /dev/null
+++ b/displaychannel.h
@@ -0,0 +1,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 \ No newline at end of file