diff options
author | louis <louis.braun@gmx.de> | 2013-01-30 21:08:26 +0100 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2013-01-30 21:08:26 +0100 |
commit | 80ea9ad4e3f23773da5b2c871931117f2df41145 (patch) | |
tree | fc357473b0dd440faedf1af7669cf4c551348afb /menudetailview.h | |
parent | de9bc2df7e2418269e86abbf452d212a75cdb201 (diff) | |
download | skin-nopacity-80ea9ad4e3f23773da5b2c871931117f2df41145.tar.gz skin-nopacity-80ea9ad4e3f23773da5b2c871931117f2df41145.tar.bz2 |
Added displaying of additional EPG images in detailed EPG view
Diffstat (limited to 'menudetailview.h')
-rw-r--r-- | menudetailview.h | 33 |
1 files changed, 22 insertions, 11 deletions
diff --git a/menudetailview.h b/menudetailview.h index bd7780f..1bacda1 100644 --- a/menudetailview.h +++ b/menudetailview.h @@ -10,38 +10,41 @@ protected: int contentHeight; int contentDrawPortHeight; int border; - cTextWrapper content; - cString additionalContent; - bool additionalContentSet; cFont *font, *fontHeader, *fontHeaderLarge; cPixmap *pixmapHeader; cPixmap *pixmapLogo; cPixmap *pixmapContent; - int ReadSizeVdr(const char *strPath); - void DrawContent(void); + cTextWrapper content; + int DrawTextWrapper(cTextWrapper *wrapper, int top); public: cNopacityMenuDetailView(cOsd *osd); virtual ~cNopacityMenuDetailView(void); void SetGeometry(int width, int height, int top, int contentBorder, int headerHeight); virtual void SetFonts(void) = 0; - void SetContent(const char *textContent); - void LoadReruns(const cEvent *event); - void LoadRecordingInformation(const cRecording *recording); bool Scrollable(void) {return hasScrollbar;} double ScrollbarSize(void); double Offset(void); bool Scroll(bool Up, bool Page); + virtual void SetContent(void) = 0; + virtual void SetContentHeight(void) = 0; virtual void CreatePixmaps(void) = 0; virtual void Render(void) = 0; }; class cNopacityMenuDetailEventView : public cNopacityMenuDetailView { private: - void DrawHeader(void); const cEvent *event; + cTextWrapper reruns; + int numEPGPics; + void DrawHeader(void); + void LoadReruns(void); + int HeightEPGPics(void); + void DrawEPGPictures(int height); public: cNopacityMenuDetailEventView(cOsd *osd, const cEvent *Event); virtual ~cNopacityMenuDetailEventView(void); + void SetContent(void); + void SetContentHeight(void); void CreatePixmaps(void); void SetFonts(void); void Render(void); @@ -49,12 +52,17 @@ public: class cNopacityMenuDetailRecordingView : public cNopacityMenuDetailView { private: - void DrawHeader(void); const cRecording *recording; const cRecordingInfo *info; + cTextWrapper additionalInfo; + void DrawHeader(void); + void LoadRecordingInformation(void); + int ReadSizeVdr(const char *strPath); public: cNopacityMenuDetailRecordingView(cOsd *osd, const cRecording *Recording); virtual ~cNopacityMenuDetailRecordingView(void); + void SetContent(void); + void SetContentHeight(void); void CreatePixmaps(void); void SetFonts(void); void Render(void); @@ -62,9 +70,12 @@ public: class cNopacityMenuDetailTextView : public cNopacityMenuDetailView { private: + const char *text; public: - cNopacityMenuDetailTextView(cOsd *osd); + cNopacityMenuDetailTextView(cOsd *osd, const char *text); virtual ~cNopacityMenuDetailTextView(void); + void SetContent(void); + void SetContentHeight(void); void CreatePixmaps(void); void SetFonts(void); void Render(void); |