From d991048cfc487a5f01014f141a66d3cb92276c90 Mon Sep 17 00:00:00 2001 From: kamel5 Date: Sat, 17 Aug 2019 14:55:52 +0200 Subject: Add setupmenue --- config.c | 63 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 config.c (limited to 'config.c') diff --git a/config.c b/config.c new file mode 100644 index 0000000..3497303 --- /dev/null +++ b/config.c @@ -0,0 +1,63 @@ +/* + * See the README file for copyright information and how to reach the author. + */ + +#include +#include "config.h" + +cLCARSNGConfig Config; + +cLCARSNGConfig::cLCARSNGConfig(void) +{ + Margin = 2; +// mcUndefined = -1, +// mcUnknown = 0, + mcMainScaled = false; + mcScheduleScaled = false; +// mcScheduleNow, +// mcScheduleNext, + mcChannelScaled = false; +// mcChannelEdit, + mcTimerScaled = false; +// mcTimerEdit, + mcRecordingScaled = false; +// mcRecordingInfo, +// mcRecordingEdit, + mcPluginScaled = false; +// mcPluginSetup, + mcSetupScaled = false; +// mcSetupOsd, +// mcSetupEpg, +// mcSetupDvb, +// mcSetupLnb, +// mcSetupCam, +// mcSetupRecord, +// mcSetupReplay, +// mcSetupMisc, +// mcSetupPlugins, + mcCommandScaled = false; + mcEventScaled = false; + mcTextScaled = false; + mcFolderScaled = false; + mcCamScaled = false; +} + +bool cLCARSNGConfig::SetupParse(const char *Name, const char *Value) +{ + if (!strcasecmp(Name, "Margin")) Margin = atoi(Value); + else if (!strcasecmp(Name, "MainMenue")) mcMainScaled = atoi(Value); + else if (!strcasecmp(Name, "ScheduleMenue")) mcScheduleScaled = atoi(Value); + else if (!strcasecmp(Name, "ChannelMenue")) mcChannelScaled = atoi(Value); + else if (!strcasecmp(Name, "TimerMenue")) mcTimerScaled = atoi(Value); + else if (!strcasecmp(Name, "RecordingMenue")) mcRecordingScaled = atoi(Value); + else if (!strcasecmp(Name, "PluginMenue")) mcPluginScaled = atoi(Value); + else if (!strcasecmp(Name, "SetupMenue")) mcSetupScaled = atoi(Value); + else if (!strcasecmp(Name, "CommandMenue")) mcCommandScaled = atoi(Value); + else if (!strcasecmp(Name, "EventMenue")) mcEventScaled = atoi(Value); + else if (!strcasecmp(Name, "TextMenue")) mcTextScaled = atoi(Value); + else if (!strcasecmp(Name, "FolderMenue")) mcFolderScaled = atoi(Value); + else if (!strcasecmp(Name, "CamMenue")) mcCamScaled = atoi(Value); + else + return false; + return true; +} -- cgit v1.2.3