/*
        betprefs.h      (panos asetukset)

        V1.00 - 241196  Kimmo Teräväinen
        -----   ------  ----------------
        V0.10   291196  Started by modifying handprfs.h
        V0.11   121296  Now Constructors have the same parameter in
                        the both version (Windows & AmigaOS).


*/
#ifndef DC1_POKER_BETPREFS
#define DC1_POKER_BETPREFS

#include "game.h"

#ifdef _Windows

class TPrefsBetDialog: public TDialog {
  cGamePoker *game;
  TComboBox  changes,jokers;
  static const char *Numerot[];
public:
  TPrefsBetDialog(cGamePoker *ngame,TWindow *parent) :
    TDialog(parent,DIALOG_PREFSBET,0),
    changes(this,COMBO_CHANGES),
    jokers(this,COMBO_JOKERS),
    game(ngame)
  {}
  void SetupWindow();

  void ButtonOK() {
    game->SetChanges(changes.GetSelIndex()+1);
    game->SetJokers(jokers.GetSelIndex());
    CloseWindow();
  }

  DECLARE_RESPONSE_TABLE(TPrefsBetDialog);
};



#else

class TPrefsBetDialog {
  Window *parent;
  cGamePoker *game;
public:
  TPrefsBetDialog(cGamePoker *ngame,Window *Wnd) :
    parent(Wnd), game(ngame) {}

  void Execute();
};

#endif

#endif