wxGameListCtrl

A list control displaying all games in the GameDatabase.

Derived From

wxBaseListCtrl

Project

Cities3D

Include

GameListCtrl.h

Summary
A list control displaying all games in the GameDatabase.
The wxGameListCtrl constructor.
Sorts the items by the given column index.
Reads all the maps from the GameDatabase and inserts the information into the list control.

Public

Summary
The wxGameListCtrl constructor.
Sorts the items by the given column index.

Constructors

wxGameListCtrl

wxGameListCtrl(wxWindow *parent, 
wxWindowID id, 
const wxPoint &pos = wxDefaultPosition,
const wxSize &size = wxDefaultSize)

The wxGameListCtrl constructor.  Creates the columns for the list control and then calls ImportGames to populate the control.

Parameters

parentThe parent window.
idThe message handling ID.  Should be a unique (to the parent window) ID, if the parent window wants to receive messages from the control.
posThe list control position in window coordinates.
sizeThe list control size.

Functions

SortItems

void SortItems(wxInt32 col)

Sorts the items by the given column index.  If the column is immediately clicked again, the sort order is reversed.

Parameters

colThe column index to sort by.

Private

Summary
Reads all the maps from the GameDatabase and inserts the information into the list control.

Functions

ImportGames

void ImportGames()

Reads all the maps from the GameDatabase and inserts the information into the list control.

Still volatile.
wxGameListCtrl(wxWindow *parent, 
wxWindowID id, 
const wxPoint &pos = wxDefaultPosition,
const wxSize &size = wxDefaultSize)
The wxGameListCtrl constructor.
void SortItems(wxInt32 col)
Sorts the items by the given column index.
void ImportGames()
Reads all the maps from the GameDatabase and inserts the information into the list control.
A basic list control.
Cities3D is a cross-platform implementation of the board game Settlers of Catan with all expansions, including Seafarers, and Cities & Knights.