wxOpenGameDialog

Dialog that allows users to open a saved game.

Derived From

wxBaseDialog

Project

Cities3D

Include

OpenGameDialog.h

Summary
Dialog that allows users to open a saved game.
The wxOpenGameDialog constructor.
Handles the OK button click event.
The wxWidgets event table declaration.
Handles the OK button click event.
Handles a double-click in the wxGameListCtrl.
Sorts the wxGameListCtrl by the clicked-on column.
The flag that states whether the Game to open is in the incomplete database or not.
The index in the MapDatabase of the Game to open.

Public

Summary
The wxOpenGameDialog constructor.
Handles the OK button click event.
The wxWidgets event table declaration.

Constructors

wxSelectMapDialog

The wxOpenGameDialog constructor.

Parameters

parentThe parent window.

Functions

Ok

Handles the OK button click event.

Variables

DECLARE_EVENT_TABLE

The wxWidgets event table declaration.

Private

Summary
Handles the OK button click event.
Handles a double-click in the wxGameListCtrl.
Sorts the wxGameListCtrl by the clicked-on column.
The flag that states whether the Game to open is in the incomplete database or not.
The index in the MapDatabase of the Game to open.

Virtual Functions

Ok

virtual void Ok()

Handles the OK button click event.

Event Message Handling

OnGameDoubleClick

void OnGameDoubleClick(wxListEvent &event)

Handles a double-click in the wxGameListCtrl.  Immediately calls Ok to exit the dialog.  Shortcut instead of having to select a game and click the OK button.

Parameters

eventThe list selection event.

OnGameColumnClick

void OnGameColumnClick(wxListEvent &event)

Sorts the wxGameListCtrl by the clicked-on column.

Parameters

eventThe list selection event.

Variables

mIncomplete

bool mIncomplete

The flag that states whether the Game to open is in the incomplete database or not.

mIndex

wxInt32 mIndex

The index in the MapDatabase of the Game to open.

virtual void Ok()
Handles the OK button click event.
void OnGameDoubleClick(wxListEvent &event)
Handles a double-click in the wxGameListCtrl.
A list control displaying all games in the GameDatabase.
void OnGameColumnClick(wxListEvent &event)
Sorts the wxGameListCtrl by the clicked-on column.
bool mIncomplete
The flag that states whether the Game to open is in the incomplete database or not.
Still volatile.
wxInt32 mIndex
The index in the MapDatabase of the Game to open.
Still volatile.
A common base class for dialog boxes.
Cities3D is a cross-platform implementation of the board game Settlers of Catan with all expansions, including Seafarers, and Cities & Knights.