LocationPageAddress Class Reference

This location page allows a street address to be entered. More...

#include <LocationPageAddress.h>

List of all members.

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


Detailed Description

This location page allows a street address to be entered.

Definition at line 46 of file LocationPageAddress.h.


Constructor & Destructor Documentation

LocationPageAddress::LocationPageAddress ( wxWindow *  parent,
MapControl *  pctlMap 
)


Member Function Documentation

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  ) 

Set the text fields to a certain address.

Definition at line 153 of file LocationPageAddress.cpp.

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.


Member Data Documentation

Street address specified by user.

Definition at line 56 of file LocationPageAddress.h.

City specified by user.

Definition at line 59 of file LocationPageAddress.h.

State specified by user.

Definition at line 62 of file LocationPageAddress.h.

std::map<wxWindow *,IAutoComplete *> LocationPageAddress::m_mapWndToAutoComplete

Definition at line 64 of file LocationPageAddress.h.

wxTextCtrl* LocationPageAddress::m_ctlStreet [private]

Street name text control.

Definition at line 69 of file LocationPageAddress.h.

wxTextCtrl* LocationPageAddress::m_ctlCity [private]

City text control.

Definition at line 72 of file LocationPageAddress.h.

wxTextCtrl* LocationPageAddress::m_ctlState [private]

State name text control.

Definition at line 75 of file LocationPageAddress.h.

MapControl* LocationPageAddress::m_pctlMap [private]

Pointer to the map control.

Definition at line 78 of file LocationPageAddress.h.

Definition at line 80 of file LocationPageAddress.h.

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.


The documentation for this class was generated from the following files:

Generated on Sun Jul 27 17:26:14 2008 for Roadnav by  doxygen 1.5.5