diff options
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. */ |