summaryrefslogtreecommitdiff
path: root/displaychannel.h
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2013-09-29 12:03:45 +0200
committerlouis <louis.braun@gmx.de>2013-09-29 12:03:45 +0200
commitacce422dcfe6bb57818f062b3a6e2db99b4cb2d3 (patch)
tree33d129161784818b95890a656c7a802f1118bfed /displaychannel.h
parent9a0778bbdf309018a635229bd0523b3435388978 (diff)
downloadskin-nopacity-acce422dcfe6bb57818f062b3a6e2db99b4cb2d3.tar.gz
skin-nopacity-acce422dcfe6bb57818f062b3a6e2db99b4cb2d3.tar.bz2
Added Cache for images and fonts
Diffstat (limited to 'displaychannel.h')
-rw-r--r--displaychannel.h27
1 files changed, 4 insertions, 23 deletions
diff --git a/displaychannel.h b/displaychannel.h
index d4d1403..2280b46 100644
--- a/displaychannel.h
+++ b/displaychannel.h
@@ -1,7 +1,7 @@
#ifndef __NOPACITY_DISPLAYCHANNEL_H
#define __NOPACITY_DISPLAYCHANNEL_H
-enum eLogoPosition {lpNone = 0, lpLeft, lpRight};
+//enum eLogoPosition {lpNone = 0, lpLeft, lpRight};
enum eBackgroundStyle {bsTrans = 0, bsFull};
class cNopacityDisplayChannel : public cSkinDisplayChannel, cThread {
@@ -25,6 +25,7 @@ private:
bool showSignal;
const cEvent *present;
cOsd *osd;
+ cImageCache *imgCache;
cPixmap *pixmapBackgroundTop;
cPixmap *pixmapBackgroundMiddle;
cPixmap *pixmapBackgroundBottom;
@@ -45,31 +46,11 @@ private:
cPixmap *pixmapSignalLabel;
cPixmap *pixmapScreenResolution;
cPixmap *pixmapPoster;
- int top, height;
- int infoWidth;
- int infoX;
- int channelInfoWidth;
- int channelInfoHeight;
- int dateWidth;
- int progressBarHeight;
- int epgInfoHeight;
- int epgInfoLineHeight;
- int streamInfoHeight;
- int streamInfoY;
- int iconSize;
- int iconsWidth;
int signalWidth, signalHeight, signalX;
- cFont *fontHeader;
- cFont *fontDate;
- cFont *fontEPG;
- cFont *fontEPGSmall;
cFont *fontInfoline;
- cFont *fontChannelGroup;
- cFont *fontChannelGroupSmall;
virtual void Action(void);
- void SetGeometry(void);
+ void createOsd(void);
void CreatePixmaps(void);
- void CreateFonts(void);
void DrawBackground(void);
void DrawDate(void);
void DrawProgressBar(int Current, int Total);
@@ -87,7 +68,7 @@ private:
cString GetChannelSep(const cChannel *channel, bool prev);
void DrawPoster(const cEvent *event);
public:
- cNopacityDisplayChannel(bool WithInfo);
+ cNopacityDisplayChannel(cImageCache *imgCache, bool WithInfo);
virtual ~cNopacityDisplayChannel();
virtual void SetChannel(const cChannel *Channel, int Number);
virtual void SetEvents(const cEvent *Present, const cEvent *Following);