playerdg.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: playerdg.h
  3. // Purpose: Forty Thieves patience game
  4. // Author: Chris Breeze
  5. // Modified by:
  6. // Created: 21/07/97
  7. // Copyright: (c) 1993-1998 Chris Breeze
  8. // Licence: wxWindows licence
  9. //---------------------------------------------------------------------------
  10. // Last modified: 22nd July 1998 - ported to wxWidgets 2.0
  11. /////////////////////////////////////////////////////////////////////////////
  12. #ifndef _PLAYERDG_H_
  13. #define _PLAYERDG_H_
  14. class PlayerSelectionDialog : public wxDialog
  15. {
  16. public:
  17. PlayerSelectionDialog(wxWindow* parent, ScoreFile* file);
  18. virtual ~PlayerSelectionDialog(){};
  19. const wxString& GetPlayersName();
  20. void ButtonCallback(wxCommandEvent& event);
  21. void SelectCallback(wxCommandEvent& event);
  22. void OnSize(wxSizeEvent& event);
  23. DECLARE_EVENT_TABLE()
  24. protected:
  25. friend void SelectCallback(wxListBox&, wxCommandEvent&);
  26. void OnCloseWindow(wxCloseEvent& event);
  27. private:
  28. ScoreFile* m_scoreFile;
  29. wxString m_player;
  30. wxButton* m_OK;
  31. wxButton* m_cancel;
  32. wxTextCtrl* m_textField;
  33. };
  34. #endif