blob: 9dfe092a804c1cacfeb2a451ab20b96646cd65f4 (
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
|
/*
* iMON LCD plugin to VDR (C++)
*
* (C) 2009 Andreas Brachold <vdr07 AT deltab de>
*
* This code is distributed under the terms and conditions of the
* GNU GENERAL PUBLIC LICENSE. See the file COPYING for details.
*
*/
#ifndef __IMON_SETUP_H___
#define __IMON_SETUP_H___
#include <vdr/menuitems.h>
#define memberof(x) (sizeof(x)/sizeof(*x))
struct cIMonSetup
{
int m_nOnExit;
int m_nContrast;
int m_bDiscMode;
int m_nWidth;
int m_nHeight;
char m_szFont[256];
cIMonSetup(void);
cIMonSetup(const cIMonSetup& x);
cIMonSetup& operator = (const cIMonSetup& x);
/// Parse our own setup parameters and store their values.
bool SetupParse(const char *szName, const char *szValue);
};
class ciMonWatch;
class ciMonMenuSetup
:public cMenuSetupPage
{
cIMonSetup m_tmpSetup;
ciMonWatch* m_pDev;
cStringList fontNames;
int fontIndex;
protected:
virtual void Store(void);
virtual eOSState ProcessKey(eKeys nKey);
public:
ciMonMenuSetup(ciMonWatch* pDev);
};
/// The exported one and only Stored setup data
extern cIMonSetup theSetup;
#endif //__IMON_SETUP_H___
|