blob: 3b51a1fa13ea56cc62a76e8680f0eabd7a413341 (
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
|
/*
* setup.cpp: A plugin for the Video Disk Recorder
*
* See the README file for copyright information and how to reach the author.
*
*/
#include "setup.h"
cSetupMarkAd::cSetupMarkAd(struct setup *Setup)
{
setup=Setup;
processduring=(int) setup->ProcessDuring;
whilerecording=setup->whileRecording;
whileplaying=setup->whilePlaying;
processTexts[0]=tr("after");
processTexts[1]=tr("during");
write();
}
void cSetupMarkAd::write(void)
{
Clear();
Add(new cMenuEditStraItem(tr("execution"),&processduring,2,processTexts));
if (!processduring)
{
Add(new cMenuEditBoolItem(tr("while recording"),&whilerecording));
Add(new cMenuEditBoolItem(tr("while playing"),&whileplaying));
}
Display();
}
eOSState cSetupMarkAd::ProcessKey(eKeys Key)
{
eOSState state=osUnknown;
switch (Key)
{
case kLeft:
state=cMenuSetupPage::ProcessKey(Key);
if (Current()==0) write();
break;
case kRight:
state=cMenuSetupPage::ProcessKey(Key);
if (Current()==0) write();
break;
default:
state=cMenuSetupPage::ProcessKey(Key);
break;
}
return state;
}
void cSetupMarkAd::Store(void)
{
SetupStore("Execution",processduring);
SetupStore("whileRecording",whilerecording);
SetupStore("whilePlaying",whileplaying);
setup->ProcessDuring=(bool) processduring;
setup->whileRecording=(bool) whilerecording;
setup->whilePlaying=(bool) whileplaying;
}
|