From db35a6286cbbebdb39396466628f2292cb63b975 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Thomas=20G=C3=BCnther?= <tom@toms-cafe.de>
Date: Tue, 25 Sep 2007 00:29:48 +0200
Subject: 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.

---
 setup.h | 23 ++++++++++++++++++++---
 1 file changed, 20 insertions(+), 3 deletions(-)

(limited to 'setup.h')

diff --git a/setup.h b/setup.h
index 0f3bf2b..f8ad3e9 100644
--- a/setup.h
+++ b/setup.h
@@ -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. */
-- 
cgit v1.2.3