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