diff options
author | Tobias Grimm <tobias@e-tobi.loc> | 2008-12-02 21:00:33 +0100 |
---|---|---|
committer | Tobias Grimm <tobias@e-tobi.loc> | 2008-12-02 21:00:33 +0100 |
commit | b451fdb5a36c0f749d63d53165cdf4e84a8f476a (patch) | |
tree | aa3b6548ea52ef133028098c8fbaebbe47ed8a5d /setup.h | |
download | vdr-plugin-osdteletext-b451fdb5a36c0f749d63d53165cdf4e84a8f476a.tar.gz vdr-plugin-osdteletext-b451fdb5a36c0f749d63d53165cdf4e84a8f476a.tar.bz2 |
Initial commit of version 0.5.1v0.5.1release/v0.5.1
Diffstat (limited to 'setup.h')
-rw-r--r-- | setup.h | 65 |
1 files changed, 65 insertions, 0 deletions
@@ -0,0 +1,65 @@ +/*************************************************************************** + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + ***************************************************************************/ + + +#ifndef __SETUP_H +#define __SETUP_H + + +//There are two places to be kept in sync with these enums: +//TeletextBrowser::TranslateKey and +//the constants in cPluginTeletextosd::initTexts +enum eTeletextAction { Zoom, HalfPage, SwitchChannel, + DarkScreen, /*SuspendReceiving,*/ LastAction }; //and 100-899 => jump to page + +enum ActionKeys { +ActionKeyRed, +ActionKeyGreen, +ActionKeyYellow, +ActionKeyBlue, +ActionKeyPlay, +//ActionKeyPause, +ActionKeyStop, +//ActionKeyRecord, +ActionKeyFastFwd, +ActionKeyFastRew, + +LastActionKey +}; + +/* +kRed +kGreen +kYellow +kBlue +kPlay +kPause +kStop +kRecord +kFastFwd*/ + +//Default values are set in menu.c, setup menu, parsing and storing can be found in osdteletext.c +class TeletextSetup { +public: + TeletextSetup(); + int mapKeyToAction[10]; //4 color keys + kPlay, kPause etc. + unsigned int configuredClrBackground; + int showClock; + int suspendReceiving; + int autoUpdatePage; + int OSDheight; + int OSDwidth; + int OSDHAlign; + int OSDVAlign; + int inactivityTimeout; +}; + +extern TeletextSetup ttSetup; + +#endif |