wxMapListCtrl

A list control displaying all maps in the MapDatabase.  Each map in the list is displayed with the map name, number of players the map is for, the default points to play to, and the name of the map creator.

Derived From

wxBaseListCtrl

Project

Cities3D

Include

MapListCtrl.h

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

Public

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

Constructors

wxMapListCtrl

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

The wxMapListCtrl constructor.  Creates the columns for the list control and then calls ImportMaps 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 MapDatabase and inserts the information into the list control.

Functions

ImportMaps

void ImportMaps()

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

Still volatile.
wxMapListCtrl(wxWindow *parent, 
wxWindowID id, 
const wxPoint &pos = wxDefaultPosition,
const wxSize &size = wxDefaultSize)
The wxMapListCtrl constructor.
void SortItems(wxInt32 col)
Sorts the items by the given column index.
void ImportMaps()
Reads all the maps from the MapDatabase 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.