diff options
author | andreas <andreas@deltab.de> | 2009-05-22 11:38:22 +0200 |
---|---|---|
committer | andreas <andreas@deltab.de> | 2009-05-22 11:38:22 +0200 |
commit | 54e2650e953c0725e5d14509f79cdd203d7d4db4 (patch) | |
tree | b1d55fe1977e032ad1b3f73a7502745454601463 /setup.h | |
download | vdr-plugin-imonlcd-54e2650e953c0725e5d14509f79cdd203d7d4db4.tar.gz vdr-plugin-imonlcd-54e2650e953c0725e5d14509f79cdd203d7d4db4.tar.bz2 |
initial import
Diffstat (limited to 'setup.h')
-rw-r--r-- | setup.h | 56 |
1 files changed, 56 insertions, 0 deletions
@@ -0,0 +1,56 @@ +/* + * 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___ |