summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorkamel5 <vdr.kamel5 (at) gmx (dot) net>2019-08-17 14:55:52 +0200
committerkamel5 <vdr.kamel5 (at) gmx (dot) net>2020-03-24 15:18:07 +0100
commitd991048cfc487a5f01014f141a66d3cb92276c90 (patch)
treed00e187da05bc414f64f1d77824a432fdc2752c3 /config.c
parentddae08e88f0d63814ad4fa43f9437c046d8a8488 (diff)
downloadskin-lcarsng-d991048cfc487a5f01014f141a66d3cb92276c90.tar.gz
skin-lcarsng-d991048cfc487a5f01014f141a66d3cb92276c90.tar.bz2
Add setupmenue
Diffstat (limited to 'config.c')
-rw-r--r--config.c63
1 files changed, 63 insertions, 0 deletions
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 <vdr/plugin.h>
+#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;
+}