diff options
author | Maniac <maniac> | 2011-05-10 20:46:03 +0200 |
---|---|---|
committer | Maniac <maniac> | 2011-05-10 20:46:03 +0200 |
commit | 032f825e6adc49ea52e45410bf98c90ae6fd27ec (patch) | |
tree | 2fc7e5a9bf65f720fc31f3072b16ab37007eafd1 /config.c | |
download | vdr-plugin-skinpearlhd-0.0.1.tar.gz vdr-plugin-skinpearlhd-0.0.1.tar.bz2 |
initial import0.0.1
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/config.c b/config.c new file mode 100644 index 0000000..ef1ff81 --- /dev/null +++ b/config.c @@ -0,0 +1,58 @@ +#include "config.h" + +cSkinPearlHDConfig PearlHDConfig; + +cTheme Theme; + +// --- cSkinPearlHDConfig ---------------------------------------------------------- +cSkinPearlHDConfig::cSkinPearlHDConfig(void) +{ + ChannelLogoPos = 0; + ChannelLogoFormat = 0; + CryptSymbols = 0; + oClockText = 1; + RecShowClock = 1; + DisplayEpgImages = 0; + EpgImagesFormat = 1; + MenuPaddingWidth = 240; + MenuPaddingHeight = 135; + LineHeight = 50; + ChannelInfoPadding = 240; + RecTitleInfoHead = 0; + RecTitleInfo = 0; + *EpgImagesDir = NULL; + EpgDirSet = false; +} + +cSkinPearlHDConfig::~cSkinPearlHDConfig() +{ +} + +bool cSkinPearlHDConfig::SetupParse(const char *Name, const char *Value) +{ + if (strcmp(Name, "ChannelLogoPos") == 0) ChannelLogoPos = atoi(Value); + else if (strcmp(Name, "ChannelLogoFormat") == 0) ChannelLogoFormat = atoi(Value); + else if (strcmp(Name, "ButtonRedText") == 0) strncpy(ButtonRedText, Value, 20); + else if (strcmp(Name, "ButtonGreenText") == 0) strncpy(ButtonGreenText, Value, 20); + else if (strcmp(Name, "ButtonYellowText") == 0) strncpy(ButtonYellowText, Value, 20); + else if (strcmp(Name, "ButtonBlueText") == 0) strncpy(ButtonBlueText, Value, 20); + else if (strcmp(Name, "CryptSymbols") == 0) CryptSymbols = atoi(Value); + else if (strcmp(Name, "oClockText") == 0) oClockText = atoi(Value); + else if (strcmp(Name, "RecShowClock") == 0) RecShowClock = atoi(Value); + else if (strcmp(Name, "DisplayEpgImages") == 0) DisplayEpgImages = atoi(Value); + else if (strcmp(Name, "EpgImagesFormat") == 0) EpgImagesFormat = atoi(Value); + else if (strcmp(Name, "MenuPaddingWidth") == 0) MenuPaddingWidth = atoi(Value); + else if (strcmp(Name, "MenuPaddingHeight") == 0) MenuPaddingHeight = atoi(Value); + else if (strcmp(Name, "LineHeight") == 0) LineHeight = atoi(Value); + else if (strcmp(Name, "ChannelInfoPadding") == 0) ChannelInfoPadding = atoi(Value); + else if (strcmp(Name, "RecTitleInfoHead") == 0) RecTitleInfoHead = atoi(Value); + else if (strcmp(Name, "RecTitleInfo") == 0) RecTitleInfo = atoi(Value); + else return false; + return true; +} + + void cSkinPearlHDConfig::SetEpgImagesDir(const char *Dir) + { + strncpy(EpgImagesDir, Dir, 100); + EpgDirSet = true; + } |