From b968a310699595ff139278440ae278aebf112c1f Mon Sep 17 00:00:00 2001 From: lordjaxom Date: Mon, 31 May 2004 19:56:56 +0000 Subject: - "Background" may be initialized with a color now - fixed channel name/number display - added parameter type (to store logo's filetype) - "Timebar", "Progressbar" and "Volumebar": Background is only drawn if bg is specified - fixed timebar (was running backwards) - renamed "Progressbar" to "Replaybar" for more consistency - renamed "Logo" to "ChannelLogo" - introduced items "Language" (for audio language texts or symbols) and "Image" (foreground images) - adopted SKINS document (SKINS.de is not up-to-date yet) - introduced item "MenuTitle" - introduced items "MenuRed", "MenuGreen", "MenuYellow" and "MenuBlue" - activated message items for display in menu - introcuded parameter "arc" and item "Slope" - fixed possible segfault in Item=Message - implemented items "SymbolReplaying" and "SymbolRadio" - added "text" parameter for all text like Items (explanation follows) - added "SymbolPlay", "SymbolPause", "SymbolFastFwd", "SymbolFastRew", "SymbolSlowFwd", "SymbolSlowRew" items. --- common.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'common.h') diff --git a/common.h b/common.h index e8d01bd..aea0452 100644 --- a/common.h +++ b/common.h @@ -1,14 +1,20 @@ /* - * $Id: common.h,v 1.1.1.1 2004/05/23 00:08:03 lordjaxom Exp $ + * $Id: common.h,v 1.4 2004/05/31 19:54:12 lordjaxom Exp $ */ #ifndef VDR_TEXT2SKIN_COMMON_H #define VDR_TEXT2SKIN_COMMON_H +#include + class cText2SkinItem; +#define precond(x) if ((x)) { esyslog("ERROR: text2skin: "#x " not given"); return; } + const char *SkinPath(void); -const cFont *SkinFont(cText2SkinItem *Item); void DrawTextTransparent(cOsd *Osd, int x, int y, const char *s, tColor ColorFg, tColor ColorBg, const cFont *Font, int Width, int Height, int Alignment); +const char *ChannelNumber(const cChannel *Channel, int Number); +const char *ChannelName(const cChannel *Channel, int Number); +string ItemText(cText2SkinItem *Item, const string &Content); #endif // VDR_TEXT2SKIN_COMMON_H -- cgit v1.2.3