1998-07-24 15:43:32 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: playerdg.h
|
|
|
|
// Purpose: Forty Thieves patience game
|
|
|
|
// Author: Chris Breeze
|
|
|
|
// Modified by:
|
|
|
|
// Created: 21/07/97
|
|
|
|
// Copyright: (c) 1993-1998 Chris Breeze
|
2004-06-02 05:14:59 -04:00
|
|
|
// Licence: wxWindows licence
|
1998-07-24 15:43:32 -04:00
|
|
|
//---------------------------------------------------------------------------
|
2004-05-25 07:20:37 -04:00
|
|
|
// Last modified: 22nd July 1998 - ported to wxWidgets 2.0
|
1998-07-24 15:43:32 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef _PLAYERDG_H_
|
|
|
|
#define _PLAYERDG_H_
|
|
|
|
|
|
|
|
class PlayerSelectionDialog : public wxDialog
|
|
|
|
{
|
|
|
|
public:
|
2004-06-02 05:14:59 -04:00
|
|
|
PlayerSelectionDialog(wxWindow* parent, ScoreFile* file);
|
2004-10-05 11:38:40 -04:00
|
|
|
virtual ~PlayerSelectionDialog(){};
|
1998-07-24 15:43:32 -04:00
|
|
|
|
2004-06-02 05:14:59 -04:00
|
|
|
const wxString& GetPlayersName();
|
|
|
|
void ButtonCallback(wxCommandEvent& event);
|
|
|
|
void SelectCallback(wxCommandEvent& event);
|
|
|
|
void OnSize(wxSizeEvent& event);
|
1998-07-24 15:43:32 -04:00
|
|
|
|
2015-04-23 07:49:01 -04:00
|
|
|
wxDECLARE_EVENT_TABLE();
|
1998-07-24 15:43:32 -04:00
|
|
|
|
|
|
|
protected:
|
2004-06-02 05:14:59 -04:00
|
|
|
friend void SelectCallback(wxListBox&, wxCommandEvent&);
|
|
|
|
void OnCloseWindow(wxCloseEvent& event);
|
1998-07-24 15:43:32 -04:00
|
|
|
|
|
|
|
private:
|
2004-06-02 05:14:59 -04:00
|
|
|
ScoreFile* m_scoreFile;
|
|
|
|
wxString m_player;
|
|
|
|
wxButton* m_OK;
|
|
|
|
wxButton* m_cancel;
|
|
|
|
wxTextCtrl* m_textField;
|
1998-07-24 15:43:32 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|