]> git.saurik.com Git - wxWidgets.git/blame_incremental - demos/forty/playerdg.h
using Run of base class
[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// 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
15class PlayerSelectionDialog : public wxDialog
16{
17public:
18 PlayerSelectionDialog(wxWindow* parent, ScoreFile* file);
19 virtual ~PlayerSelectionDialog(){};
20
21 const wxString& GetPlayersName();
22 void ButtonCallback(wxCommandEvent& event);
23 void SelectCallback(wxCommandEvent& event);
24 void OnSize(wxSizeEvent& event);
25
26 DECLARE_EVENT_TABLE()
27
28protected:
29 friend void SelectCallback(wxListBox&, wxCommandEvent&);
30 void OnCloseWindow(wxCloseEvent& event);
31
32private:
33 ScoreFile* m_scoreFile;
34 wxString m_player;
35 wxButton* m_OK;
36 wxButton* m_cancel;
37 wxTextCtrl* m_textField;
38};
39
40#endif