Dialog that allows map selection and Cities & Knights rules to be turned on.
SelectMapDialog.h
Dialog that allows map selection and Cities & Knights rules to be turned on. | |
The wxSelectMapDialog constructor. | |
Returns whether the user has turned on Cities & Knights rules. | |
Returns the MapDatabase index of the selected map. | |
The wxWidgets event table declaration. | |
Handles the OK button click event. | |
Handles a selection in the wxMapTextCtrl. | |
Handles a double-click in the wxMapTextCtrl. | |
Sorts the wxMapListCtrl by the clicked-on column. | |
Whether the user has turned on Cities & Knights rules. | |
The index in the MapDatabase of the selected map. |
The wxSelectMapDialog constructor. | |
Returns whether the user has turned on Cities & Knights rules. | |
Returns the MapDatabase index of the selected map. | |
The wxWidgets event table declaration. |
|
The wxSelectMapDialog constructor. If a map is currently loaded, selects the map in the wxMapTextCtrl. Sets the Cities & Knights wxBaseCheckBox to the given value. Disables the OK button.
| parent | The parent window. |
| ck | Whether Cities & Knights rules are being played. |
| index | The index of the current selected map. May be -1 if no map is selected. |
| wxInt32 GetIndex() const |
Returns the MapDatabase index of the selected map.
The MapDatabase index of the selected map.
Handles the OK button click event. | |
Handles a selection in the wxMapTextCtrl. | |
Handles a double-click in the wxMapTextCtrl. | |
Sorts the wxMapListCtrl by the clicked-on column. | |
Whether the user has turned on Cities & Knights rules. | |
The index in the MapDatabase of the selected map. |
|
Handles a selection in the wxMapTextCtrl. Enables the OK button if a map is selected, disables it if not.
| event | The list selection event. |
|
Handles a double-click in the wxMapTextCtrl. Immediately calls Ok to exit the dialog. Shortcut instead of having to select a map and click the OK button.
| event | The list selection event. |
|
Sorts the wxMapListCtrl by the clicked-on column.
| event | The list selection event. |
| wxInt32 mIndex |
The index in the MapDatabase of the selected map.
|
| bool GetCK() const |
| wxInt32 GetIndex() const |
| virtual void Ok() |
|
|
|
| bool mCK |
| wxInt32 mIndex |