blob: f96b4704dc7f74f9333e6796e673163d4460cbf6 (
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
|
/*
* setup_menu.c: Setup Menu
*
* See the README file for copyright information and how to reach the author.
*
*/
#include "setup_menu.h"
#include <vdr/config.h>
#include <vdr/i18n.h>
//--- cHistorySetupMenu ------------------------------------------------------
cHistorySetupMenu::cHistorySetupMenu(void)
{
memcpy(&newconfig, &HistorySetup, sizeof(cHistorySetup));
Set();
}
void cHistorySetupMenu::Set(void)
{
Clear();
Add(new cMenuEditBoolItem(tr("Allow file delete"),
&newconfig.allow_delete));
Add(new cMenuEditIntItem(tr("Replay history size"),
&newconfig.replay_history_size), 0);
Display();
}
void cHistorySetupMenu::Store(void)
{
memcpy(&HistorySetup, &newconfig, sizeof(cHistorySetup));
SetupStore("AllowDelete", HistorySetup.allow_delete);
SetupStore("ReplayHistorySize", HistorySetup.replay_history_size);
Setup.Save();
}
eOSState cHistorySetupMenu::ProcessKey(eKeys Key)
{
eOSState state = cMenuSetupPage::ProcessKey(Key);
return state;
}
|