#include <LocationPageAddress.h>
Public Member Functions | |
| LocationPageAddress (wxWindow *parent, MapControl *pctlMap) | |
| bool | GetAddress (Address &address) |
| Parse the entered addresses. | |
| void | SetAddress (Address cAddress) |
| Set the text fields to a certain address. | |
| bool | MayClose (bool bRoadsOnly) |
| Indicates if the location dialog may close. | |
| void | UpdateAutoCompletionObjects (bool bRoadsOnly) |
Public Attributes | |
| wxString | m_strStreet |
| Street address specified by user. | |
| wxString | m_strCity |
| City specified by user. | |
| wxString | m_strState |
| State specified by user. | |
| std::map< wxWindow *, IAutoComplete * > | m_mapWndToAutoComplete |
Private Attributes | |
| wxTextCtrl * | m_ctlStreet |
| Street name text control. | |
| wxTextCtrl * | m_ctlCity |
| City text control. | |
| wxTextCtrl * | m_ctlState |
| State name text control. | |
| MapControl * | m_pctlMap |
| Pointer to the map control. | |
| bool | m_hasAddress |
| Address | m_cAddress |
| AutoComplete_State | m_cAutoCompleteState |
| AutoComplete_City | m_cAutoCompleteCity |
| AutoComplete_Street | m_cAutoCompleteStreet |
Definition at line 46 of file LocationPageAddress.h.
| LocationPageAddress::LocationPageAddress | ( | wxWindow * | parent, | |
| MapControl * | pctlMap | |||
| ) |
| bool LocationPageAddress::GetAddress | ( | Address & | address | ) |
Parse the entered addresses.
This function parses the address that was entered into it and returns an Address pointer. Multiple calls to GetAddress will return the same pointer since FindAddress is used.
Definition at line 140 of file LocationPageAddress.cpp.
| void LocationPageAddress::SetAddress | ( | Address | cAddress | ) |
| bool LocationPageAddress::MayClose | ( | bool | bRoadsOnly | ) |
Indicates if the location dialog may close.
Returns false if the address is invalid.
Definition at line 176 of file LocationPageAddress.cpp.
| void LocationPageAddress::UpdateAutoCompletionObjects | ( | bool | bRoadsOnly | ) |
Definition at line 265 of file LocationPageAddress.cpp.
| wxString LocationPageAddress::m_strStreet |
| wxString LocationPageAddress::m_strCity |
| wxString LocationPageAddress::m_strState |
| std::map<wxWindow *,IAutoComplete *> LocationPageAddress::m_mapWndToAutoComplete |
Definition at line 64 of file LocationPageAddress.h.
wxTextCtrl* LocationPageAddress::m_ctlStreet [private] |
wxTextCtrl* LocationPageAddress::m_ctlCity [private] |
wxTextCtrl* LocationPageAddress::m_ctlState [private] |
MapControl* LocationPageAddress::m_pctlMap [private] |
bool LocationPageAddress::m_hasAddress [private] |
Definition at line 80 of file LocationPageAddress.h.
Address LocationPageAddress::m_cAddress [private] |
Definition at line 81 of file LocationPageAddress.h.
AutoComplete_State LocationPageAddress::m_cAutoCompleteState [private] |
Definition at line 83 of file LocationPageAddress.h.
AutoComplete_City LocationPageAddress::m_cAutoCompleteCity [private] |
Definition at line 84 of file LocationPageAddress.h.
AutoComplete_Street LocationPageAddress::m_cAutoCompleteStreet [private] |
Definition at line 85 of file LocationPageAddress.h.
1.5.5