Dialog that allows users to add or edit players.
AddPlayerDialog.h
Dialog that allows users to add or edit players. | |
The wxAddPlayerDialog constructor. | |
Returns the local Player data being edited. | |
Handles the OK button click event. | |
The index in the PlayerDatabase of the player being edited. |
The wxAddPlayerDialog constructor. | |
Returns the local Player data being edited. |
|
The wxAddPlayerDialog constructor. Initializes the local Player information. If the given index is nonnegative, the local Player information is initialized with the data for that index in the PlayerDatabase. Otherwise, it is initialized to a default constructed Player.
| parent | The parent window. |
| index | The index in the PlayerDatabase of the Player being edited, or -1 if it is a new Player. |
Handles the OK button click event. | |
The index in the PlayerDatabase of the player being edited. |
| virtual void Ok() |
Handles the OK button click event. Updates the local Player data with all information from the dialog window. Adds the Player to the PlayerDatabase if it is a new player, or updates the existing Player in the PlayerDatabase. Then calls the base class Ok handler to exit the dialog.
| wxInt32 mIndex |
The index in the PlayerDatabase of the player being edited. May be -1 if it is a new player.
|
| const Player &GetPlayer() |
| virtual void Ok() |
| wxInt32 mIndex |