#include <LocationPageCoordinates.h>
Public Member Functions | |
| LocationPageCoordinates (wxWindow *parent) | |
| bool | GetAddress (Address &address) |
| Parse the entered addresses. | |
| void | SetAddress (Address cAddress) |
| Update the address in the dialog with the address provided in the cAddress argument. | |
| bool | MayClose (bool bRoadsOnly) |
| Indicates if the location dialog may close. | |
Private Attributes | |
| wxString | m_strCoordinates |
| Contains the entered coordinates in string form. | |
| wxTextCtrl * | m_ctlCoordinates |
| Text control containing the coordinates. | |
| bool | m_hasAddress |
| Address | m_cAddress |
Definition at line 40 of file LocationPageCoordinates.h.
| LocationPageCoordinates::LocationPageCoordinates | ( | wxWindow * | parent | ) |
| bool LocationPageCoordinates::GetAddress | ( | Address & | address | ) |
Parse the entered addresses.
This function parses the address that was entered into it and returns a Address pointer. Multiple calls to GetAddress will return the same pointer since FindAddress is used.
The address returned may not be a valid address, but will always have valid coordinates stored in them.
Definition at line 109 of file LocationPageCoordinates.cpp.
| void LocationPageCoordinates::SetAddress | ( | Address | cAddress | ) |
Update the address in the dialog with the address provided in the cAddress argument.
Definition at line 123 of file LocationPageCoordinates.cpp.
| bool LocationPageCoordinates::MayClose | ( | bool | bRoadsOnly | ) |
Indicates if the location dialog may close.
Definition at line 134 of file LocationPageCoordinates.cpp.
wxString LocationPageCoordinates::m_strCoordinates [private] |
Contains the entered coordinates in string form.
Definition at line 50 of file LocationPageCoordinates.h.
wxTextCtrl* LocationPageCoordinates::m_ctlCoordinates [private] |
bool LocationPageCoordinates::m_hasAddress [private] |
Definition at line 55 of file LocationPageCoordinates.h.
Address LocationPageCoordinates::m_cAddress [private] |
Definition at line 56 of file LocationPageCoordinates.h.
1.5.5