diff options
author | Thomas Günther <tom@toms-cafe.de> | 2007-09-25 00:29:48 +0200 |
---|---|---|
committer | Thomas Günther <tom@toms-cafe.de> | 2007-09-25 00:29:48 +0200 |
commit | db35a6286cbbebdb39396466628f2292cb63b975 (patch) | |
tree | 8dc5789274dcc1e627e83a24ddfbb466291e68d1 /setup.h | |
parent | 473eff38fb6c5ef87b218b3a66c1789e0be784e0 (diff) | |
download | vdr-plugin-spider-db35a6286cbbebdb39396466628f2292cb63b975.tar.gz vdr-plugin-spider-db35a6286cbbebdb39396466628f2292cb63b975.tar.bz2 |
Resume the last game.
Customizable width and height.
OSD error compensation (shrink width/height or reduce colors).
Added setup option to hide the top row.
Set normal variation (two decks and 10 piles) as standard, together with "shrink height" and "hide top row".
Added user-defined variations.
Improved key handling.
Diffstat (limited to 'setup.h')
-rw-r--r-- | setup.h | 23 |
1 files changed, 20 insertions, 3 deletions
@@ -17,7 +17,7 @@ * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * - * $Id: setup.h 95 2007-09-21 23:01:10Z tom $ + * $Id: setup.h 97 2007-09-24 22:29:48Z tom $ */ #ifndef VDR_SPIDER_SETUP_H @@ -36,8 +36,18 @@ namespace SpiderPlugin class SetupData { public: - typedef enum { Mini, Normal } Variations; + enum { Mini, Normal, Custom }; int variation; + int deck_count; + int pile_count; + int deal_count; + int osd_left; + int osd_top; + int osd_width; + int osd_height; + enum { ShrinkHeight, ShrinkWidth, ShrinkWidthHeight, ReduceColors }; + int osd_error_compensation; + int hide_toprow; /** Constructor */ SetupData(); @@ -52,7 +62,8 @@ namespace SpiderPlugin /** Setup menu page to adjust the setup parameters of the plugin */ class SetupPage : public cMenuSetupPage { - const char* variationTexts[2]; + const char* variationTexts[3]; + const char* compensationTexts[4]; SetupData& setup; SetupData data; @@ -61,6 +72,12 @@ namespace SpiderPlugin /** Constructor */ SetupPage(SetupData& setup); + /** Set values into the menu page */ + void Setup(); + + /** Process user events */ + virtual eOSState ProcessKey(eKeys key); + protected: /** Store the setup parameters of the plugin. */ |