summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorAndreas Mair <amair.sob@googlemail.com>2007-04-02 11:38:08 +0200
committerAndreas Mair <amair.sob@googlemail.com>2007-04-02 11:38:08 +0200
commitc562d549bc6274265991eec634f99b1e311323df (patch)
tree2f4f23396e60f381cb2899ef7be87c1b54dc153c /config.c
parentde39678a54ab87364a3c8c5e3b058d313451db5b (diff)
downloadvdr-plugin-skinenigmang-0.0.4.tar.gz
vdr-plugin-skinenigmang-0.0.4.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 'config.c')
-rw-r--r--config.c28
1 files changed, 27 insertions, 1 deletions
diff --git a/config.c b/config.c
index 80fe905..ef1ab4f 100644
--- a/config.c
+++ b/config.c
@@ -9,15 +9,22 @@
#include "common.h"
#include "config.h"
+#ifdef HAVE_IMAGEMAGICK
+const char *imageExtensionTexts[NUM_IMAGEEXTENSIONTEXTS] = { "xpm", "jpg", "png" };
+#endif
+
cEnigmaConfig EnigmaConfig;
cEnigmaConfig::cEnigmaConfig() : showAuxInfo(1), showLogo(1), showVps(1), showSymbols(1),
showListSymbols(1), showProgressbar(1), cacheSize(50),
useChannelId(0), showInfo(1), showRemaining(0), showMarker(1),
singleArea(1), singleArea8Bpp(1), showFlags(1), numReruns(5),
- useSubtitleRerun(1), showTimerConflicts(1)
+ useSubtitleRerun(1), showTimerConflicts(1), showRecSize(2),
+ showImages(1), resizeImages(0), showMailIcon(0),
+ imageWidth(120), imageHeight(120), imageExtension(0), fullTitleWidth(0)
{
memset(logoDir, 0, sizeof(logoDir));
+ memset(strImagesDir, 0, sizeof(strImagesDir));
}
cEnigmaConfig::~cEnigmaConfig()
@@ -32,3 +39,22 @@ void cEnigmaConfig::SetLogoDir(const char *logodirP)
strncpy(logoDir, logodirP, sizeof(logoDir));
}
}
+
+void cEnigmaConfig::SetImagesDir(const char *dir)
+{
+ if (dir)
+ {
+ debug("cEnigmaConfig::SetImagesDir(%s)\n", dir);
+ strncpy(strImagesDir, dir, sizeof(strImagesDir));
+ }
+}
+
+const char *cEnigmaConfig::GetImageExtension(void)
+{
+#ifdef HAVE_IMAGEMAGICK
+ return (0 <= imageExtension && imageExtension < NUM_IMAGEEXTENSIONTEXTS) ? imageExtensionTexts[imageExtension] : imageExtensionTexts[0];
+#else
+ return "xpm";
+#endif
+}
+