/* * config.h: 'EnigmaNG' skin for the Video Disk Recorder * * See the README file for copyright information and how to reach the author. * */ #ifndef __SKINENIGMA_CONFIG_H #define __SKINENIGMA_CONFIG_H #include "common.h" #ifdef HAVE_IMAGEMAGICK #define NUM_IMAGEEXTENSIONTEXTS 3 extern const char *imageExtensionTexts[NUM_IMAGEEXTENSIONTEXTS]; #else #define NUM_IMAGEEXTENSIONTEXTS 0 #endif #include "font.h" #include #include #ifndef MAXFONTNAME #define MAXFONTNAME 64 #endif #ifndef MAXFONTSIZE #define MAXFONTSIZE 64 #endif #define INIT_FONTS EnigmaConfig.InitFonts() struct EnigmaOsdSize { int x; int y; int w; int h; }; #define FONT_TRUETYPE 0 enum { FONT_OSDTITLE, FONT_MESSAGE, FONT_DATE, FONT_HELPKEYS, FONT_CITITLE, FONT_CISUBTITLE, FONT_CILANGUAGE, FONT_LISTITEM, FONT_INFOTIMERHEADLINE, FONT_INFOTIMERTEXT, FONT_INFOWARNHEADLINE, FONT_INFOWARNTEXT, FONT_DETAILSTITLE, FONT_DETAILSSUBTITLE, FONT_DETAILSDATE, FONT_DETAILSTEXT, FONT_REPLAYTIMES, FONT_FIXED, FONT_NUMFONTS }; struct FontInfo { int VdrId; char Name[MAXFONTNAME + 1]; int Width; int Size; int Default; }; struct FontConfig { int Id; const char *KeyId; const char *KeyName; }; extern FontConfig allFontConfig[FONT_NUMFONTS]; struct cEnigmaConfig { private: char logoDir[255]; char strImagesDir[255]; public: cEnigmaConfig(); ~cEnigmaConfig(); void SetLogoDir(const char *logodirP); char *GetLogoDir(void) { return logoDir; } void SetImagesDir(const char *dir); char *GetImagesDir(void) { return strImagesDir; } const char *GetImageExtension(void); const cFont *GetFont(int id); void SetFont(int id, const char *font); void SetFont(int id, int vdrId); void GetOsdSize(struct EnigmaOsdSize *size); int showAuxInfo; int showLogo; int showVps; int showSymbols; int showSymbolsMenu; int showSymbolsReplay; int showSymbolsMsgs; int showSymbolsAudio; int showColSymbolsDetails; int showListSymbols; int showProgressbar; int cacheSize; int useChannelId; int showInfo; int minInfoWidth; int showRemaining; int showMarker; int singleArea; int singleArea8Bpp; int showFlags; int numReruns; int useSubtitleRerun; int showTimerConflicts; int showRecSize; int showImages; int resizeImages; int showMailIcon; int imageWidth; int imageHeight; int imageExtension; int fullTitleWidth; int useTextEffects; int scrollDelay; int scrollPause; int scrollMode; int blinkPause; int scrollInfo; int scrollListItem; int scrollOther; int scrollTitle; int dynOsd; int statusLineMode; int showWssSymbols; int showStatusSymbols; int showScrollbar; int showSignalInfo; int showCatGenCon; int showCaMode; int drawRoundCorners; int channelLogoWidth; int channelLogoHeight; int signalInfoWidth; int progressBarWidth; FontInfo allFonts[FONT_NUMFONTS]; }; extern cEnigmaConfig EnigmaConfig; #endif // __SKINENIGMA_CONFIG_H // vim:et:sw=2:ts=2: