summaryrefslogtreecommitdiff
path: root/config.c
blob: 1321f88ac4a32f995733ff5333a0ff8d38664ac7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#include <vdr/plugin.h>
#include "config.h"

cLCARSNGConfig Config;

cLCARSNGConfig::cLCARSNGConfig(void)
{
  Margin = 2;
  displInfoMenuEPG = 0;
  displInfoMenuTimer = 0;
  displInfoMenuRec = 0;
  waitTimeFadein = 1000;
  waitTimeScroll = 1000;
  fadeinTime = 300;
  scrollPixel = 2;
  framesPerSecond = 25;
  mcUndefinedScaled = efullscreen;
  mcUnknownScaled = efullscreen;
  mcMainScaled = efullscreen;
  mcScheduleScaled = efullscreen;
  mcScheduleNowScaled = efullscreen;
  mcScheduleNextScaled = efullscreen;
  mcChannelScaled = efullscreen;
  mcChannelEditScaled = efullscreen;
  mcTimerScaled = efullscreen;
  mcTimerEditScaled = efullscreen;
  mcRecordingScaled = efullscreen;
  mcRecordingInfoScaled = efullscreen;
  mcRecordingEditScaled = efullscreen;
  mcPluginScaled = efullscreen;
  mcPluginSetupScaled = efullscreen;
  mcSetupScaled = efullscreen;
  mcSetupOsdScaled = efullscreen;
  mcSetupEpgScaled = efullscreen;
  mcSetupDvbScaled = efullscreen;
  mcSetupLnbScaled = efullscreen;
  mcSetupCamScaled = efullscreen;
  mcSetupRecordScaled = efullscreen;
  mcSetupReplayScaled = efullscreen;
  mcSetupMiscScaled = efullscreen;
  mcSetupPluginsScaled = efullscreen;
  mcCommandScaled = efullscreen;
  mcEventScaled = efullscreen;
  mcTextScaled = efullscreen;
  mcFolderScaled = efullscreen;
  mcCamScaled = efullscreen;
  mcDefaultScaled = efullscreen;
}

bool cLCARSNGConfig::SetupParse(const char *Name, const char *Value)
{
  if      (!strcasecmp(Name, "Margin"))          Margin             = atoi(Value);
  else if (!strcasecmp(Name, "DisplInfoMenuEPG"))   displInfoMenuEPG   = atoi(Value);
  else if (!strcasecmp(Name, "DisplInfoMenuTimer")) displInfoMenuTimer = atoi(Value);
  else if (!strcasecmp(Name, "DisplInfoMenuRec"))   displInfoMenuRec   = atoi(Value);
  else if (!strcasecmp(Name, "WaitTimeFadein"))     waitTimeFadein     = atoi(Value);
  else if (!strcasecmp(Name, "WaitTimeScroll"))     waitTimeScroll     = atoi(Value);
  else if (!strcasecmp(Name, "FadeInTime"))         fadeinTime         = atoi(Value);
  else if (!strcasecmp(Name, "ScrollPixel"))        scrollPixel        = atoi(Value);
  else if (!strcasecmp(Name, "FramesPerSecond"))    framesPerSecond    = 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 if (!strcasecmp(Name, "DefaultMenue"))    mcDefaultScaled    = atoi(Value);
  else
     return false;
  return true;
}