diff options
author | Andreas Mair <amair.sob@googlemail.com> | 2007-04-02 11:38:08 +0200 |
---|---|---|
committer | Andreas Mair <amair.sob@googlemail.com> | 2007-04-02 11:38:08 +0200 |
commit | c562d549bc6274265991eec634f99b1e311323df (patch) | |
tree | 2f4f23396e60f381cb2899ef7be87c1b54dc153c /logo.h | |
parent | de39678a54ab87364a3c8c5e3b058d313451db5b (diff) | |
download | vdr-plugin-skinenigmang-c562d549bc6274265991eec634f99b1e311323df.tar.gz vdr-plugin-skinenigmang-c562d549bc6274265991eec634f99b1e311323df.tar.bz2 |
2007-04-02: Version 0.0.4v0.0.4
- Changed text color in themes for green and yellow buttons.
- Fixed false colors problem after theme changes.
- Updated Finnish translation. (Submitted by Rolf Ahrenberg)
- Updated French translation. (Submitted by pat @vdr-portal.de)
- Do not overwrite status messages in mainmenu with list items.
- New setup option that replaces SKINENIGMA_FULL_CHANNELINFO_TITLE define.
- Disable logos/symbols/flags if 4bpp single area is configured in setup. (Will eventually replace SKINENIGMA_NO_MENULOGO define)
- Added support for mailbox plugin; shows mail symbol in channel info (Based on patch by triple955 @vdr-portal.de).
- Introduced new HAVE_IMAGEMAGICK define to enable non-xpm images in event's and recording's details.
- Fixed "blinking" date in channel info (Reported by several people).
- Changed background for recording symbol in channel info to white (Suggested by gromit @vdr-portal.de).
- Long channel group names are no longer drawn at the right side of the date (Reported by several people).
- New setup option for displaying a recording's size and use size.vdr (Suggested by vejoun @vdr-portal.de).
- Show stop time of running timers in info area in main menu. (Suggested by viking @vdr-portal.de)
- Updated Russian translation. (Submitted by neptunvasja @vdr-portal.de)
- New defines "ListProgressBarGap" & "ListProgressBarBorder" to customize the progressbar in lists:
* "ListProgressBarGap" sets the gap above/below the progressbar (relative to the font's height).
* "ListProgressBarBorder" sets the border's width.
- Added fallback to "classic" skin if any of the OSD menus fails to open.
- Fix possible NULL pointer accesses.
- Fixed compiler error with certain gcc versions.
- Minor bugfixes and graphical changes.
Diffstat (limited to 'logo.h')
-rw-r--r-- | logo.h | 29 |
1 files changed, 27 insertions, 2 deletions
@@ -10,22 +10,47 @@ #include <map> #include <string> +#include <vdr/channels.h> +#include <vdr/epg.h> +#include <vdr/recording.h> #include <vdr/osd.h> +#ifdef HAVE_IMAGEMAGICK +#include "bitmap.h" +#endif + +// size of channel logos #define ChannelLogoWidth 80 #define ChannelLogoHeight 80 +// size of icons, e.g. icons top right in the main menu... +#define IconWidth 80 +#define IconHeight 80 +// size of symbols, e.g. the flags +#define SymbolWidth 27 +#define SymbolHeight 18 class cEnigmaLogoCache { private: + bool fImageRequested; unsigned int cacheSizeM; cBitmap *bitmapM; +#ifdef HAVE_IMAGEMAGICK + cOSDImageBitmap image; + cBitmap *bmpImage; +#endif std::map<std::string, cBitmap*> cacheMapM; - bool LoadXpm(const char *fileNameP); + bool LoadImage(const char *fileNameP, int w, int h, int c); + bool LoadXpm(const char *fileNameP, int w, int h); + bool Load(const char *fileNameP, int w, int h); public: cEnigmaLogoCache(unsigned int cacheSizeP); ~cEnigmaLogoCache(); bool Resize(unsigned int cacheSizeP); - bool Load(const char *fileNameP); + bool LoadEventImage(const cEvent *Event, int w, int h, int c); + bool LoadRecordingImage(const cRecording *Recording, int w, int h, int c); + bool LoadChannelLogo(const cChannel *Channel); + bool LoadSymbol(const char *fileNameP); + bool LoadIcon(const char *fileNameP); cBitmap& Get(void); bool Flush(void); }; |