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