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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
|
#ifndef _DXR3_H_
#define _DXR3_H_
// color setting bar
static const char *SettingBar[] =
{
"[................................]",
"[|...............................]",
"[||..............................]",
"[|||.............................]",
"[||||............................]",
"[|||||...........................]",
"[||||||..........................]",
"[|||||||.........................]",
"[||||||||........................]",
"[|||||||||.......................]",
"[||||||||||......................]",
"[|||||||||||.....................]",
"[||||||||||||....................]",
"[|||||||||||||...................]",
"[||||||||||||||..................]",
"[|||||||||||||||.................]",
"[||||||||||||||||................]",
"[|||||||||||||||||...............]",
"[||||||||||||||||||..............]",
"[|||||||||||||||||||.............]",
"[||||||||||||||||||||............]",
"[|||||||||||||||||||||...........]",
"[||||||||||||||||||||||..........]",
"[|||||||||||||||||||||||.........]",
"[||||||||||||||||||||||||........]",
"[|||||||||||||||||||||||||.......]",
"[||||||||||||||||||||||||||......]",
"[|||||||||||||||||||||||||||.....]",
"[||||||||||||||||||||||||||||....]",
"[|||||||||||||||||||||||||||||...]",
"[||||||||||||||||||||||||||||||..]",
"[|||||||||||||||||||||||||||||||.]"
"[||||||||||||||||||||||||||||||||]" // 32 x |
};
// ==================================
// setup screen
class cMenuSetupDxr3 : public cMenuSetupPage
{
public:
cMenuSetupDxr3();
protected:
virtual void Store();
private:
int newUseDigitalOut;
int newDxr3Card;
int newVideoMode;
int newDebug;
int newDebugLevel;
const char *menuVideoModes[3];
const char *menuDebugModes[2];
};
// ==================================
enum eDxr3OsdItem
{
DXR3_RESET_HARDWARE,
DXR3_FORCE_LETTER_BOX,
DXR3_DIGITAL_OUT,
DXR3_ANALOG_OUT,
DXR3_AC3_OUT
};
// ==================================
enum eDxr3ColorItem
{
DXR3_BRIGHTNESS,
DXR3_CONTRAST,
DXR3_SATURATION
};
// ==================================
// osd item
class cDxr3OsdItem : public cOsdItem
{
public:
cDxr3OsdItem(const char* text, eDxr3OsdItem item) : cOsdItem(text), m_item(item) {}
// process fb input
eOSState ProcessKey(eKeys Key);
protected:
eDxr3OsdItem m_item;
};
// ==================================
// used to change color settings
class cDxr3OsdColorItem : public cMenuEditItem
{
public:
cDxr3OsdColorItem(const char* text, eDxr3ColorItem item);
virtual eOSState ProcessKey(eKeys Key);
protected:
eDxr3ColorItem m_item;
int m_value;
int m_min;
int m_max;
virtual void Set();
};
/*
// ==================================
// used to change color settings
class cDxr3OsdColorItem : public cOsdItem//cMenuEditItem
{
public:
cDxr3OsdColorItem(const char* text, eDxr3ColorItem item);
cDxr3OsdColorItem::~cDxr3OsdColorItem()
{
free(m_name);
free(m_caption);
}
eOSState ProcessKey(eKeys Key);
protected:
eDxr3ColorItem m_item;
int m_value;
int m_min;
int m_max;
char* m_caption;
char* m_name;
void Set();
void SetValue(const char *Value);
};
*/
// ==================================
// main screen
class cDxr3OsdMenu : public cOsdMenu
{
public:
cDxr3OsdMenu();
int b,c,s;
};
#endif /*_DXR3_H_*/
// Local variables:
// mode: c++
// c-file-style: "stroustrup"
// c-file-offsets: ((inline-open . 0))
// indent-tabs-mode: t
// End:
|