LocationDialog Class Reference
[Roadnav Dialog Classes]

Address selection dialog box. More...

#include <LocationDialog.h>

Collaboration diagram for LocationDialog:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LocationDialog (wxWindow *parent, MapControl *pctlMap, int iFlags=ADFLAG_CANCELBUTTON, wxFont *pFont=NULL)
 ~LocationDialog ()
 LocationDialog destructor - delete m_Timer.
bool GetAddress (Address &address)
 Obtain the entered address.
int ShowModal ()
 This function initializes the prior addresses box, sets the title, and shows the dialog modally.

Public Attributes

wxString m_strTitle
 specify the window title in this variable
wxString m_strName
 Optional waypoint name.
wxString m_strIconFilename
 Icon filename.
bool m_bShowCalloutBox
 Indicates if the callout box should be shown.
bool m_bShowSmallLabel
 Indicates if the small semitransparent label should be shown.
bool m_bVisible
 Indicates if the entire waypoint should be shown.
bool m_bScaleIcon
 Indicates if the icon should be scaled based on the zoom level.
bool m_bRoadsOnly

Private Member Functions

void UpdateData ()
 Update the member variables with the contents of the controls for this dialog, and the notebook pages.
void PopulateListBox ()
 Populate the list box with any markers available.
bool MayClose ()
 Returns if the dialog can close.
void OnTimer (wxTimerEvent &event)
 100ms timer - tracks which wxTextCtrl has focus in m_pwndFocused
void OnKeyboard (wxCommandEvent &event)
 Keyboard button pressed - activate onscreen keyboard (KeyboardDialog).
void OnOldAddress (wxCommandEvent &event)
 Selection changed in old address listing.
void OnOldAddressDoubleClick (wxCommandEvent &event)
 List box entry double clicked - center map on that marker.
void OnOk (wxCommandEvent &event)
 Ok pressed - Saves the edit controls to member variables.
void OnCancel (wxCommandEvent &event)
 Cancel pressed.
void OnAdd (wxCommandEvent &event)
 Add current address as a marker.
void OnUpdate (wxCommandEvent &event)
 Update selected marker with current address.
void OnDelete (wxCommandEvent &event)
 Delete selected marker.
void OnIconBrowse (wxCommandEvent &event)
 Browse button pressed.
void OnExport (wxCommandEvent &event)
 Export current address to scripting file.
void OnExportAll (wxCommandEvent &event)
 Export all waypoints to scripting file.

Private Attributes

wxButton * m_btnKeyboard
 Button to trigger onscreen keyboard.
wxButton * m_btnExport
wxButton * m_btnExportAll
wxTextCtrl * m_pwndFocused
 Pointer to last focused wxTextCtrl.
wxTimer * m_Timer
 100ms timer used to track which wxTextCtrl has focus
wxNotebook * m_pctlNotebook
 wxNotebook containing the various location pages
wxListBox * m_ctlOldAddresses
 List box containing previously entered addresses.
wxTextCtrl * m_ctlName
 Waypoint name text control.
wxTextCtrl * m_ctlIconFilename
 Icon filename.
wxCheckBox * m_ctlShowCalloutBox
 Checkbox indicating if the callout box should be visible.
wxCheckBox * m_ctlShowSmallLabel
 Checkbox indicating if the small semitransparent label should be visible.
wxCheckBox * m_ctlVisible
 Checkbox indicating if the entire waypoint is visible.
wxCheckBox * m_ctlScaleIcon
 Checkbox indicating if the waypoint's icon should be scaled based on the zoom level.
MapControl * m_pctlMap
 Map control to get markers from.
LocationPageAddressm_pwndAddress
 Location page accepting street addresses.
LocationPageCoordinatesm_pwndCoordinates
 Location page accepting GPS coordinates.
int m_iActivePage
 Active page number.
wxFont m_fntDefault
 Default font used in this dialog.
int m_iFlags
 Flags for this dialog.
IAutoComplete * m_pcAutoComplete


Detailed Description

Address selection dialog box.

Definition at line 49 of file LocationDialog.h.


Constructor & Destructor Documentation

LocationDialog::LocationDialog ( wxWindow *  parent,
MapControl *  pctlMap,
int  iFlags = ADFLAG_CANCELBUTTON,
wxFont *  pFont = NULL 
)

LocationDialog::~LocationDialog (  ) 

LocationDialog destructor - delete m_Timer.

Definition at line 337 of file LocationDialog.cpp.


Member Function Documentation

bool LocationDialog::GetAddress ( Address &  address  ) 

Obtain the entered address.

Definition at line 682 of file LocationDialog.cpp.

int LocationDialog::ShowModal (  ) 

This function initializes the prior addresses box, sets the title, and shows the dialog modally.

Definition at line 370 of file LocationDialog.cpp.

void LocationDialog::UpdateData (  )  [private]

Update the member variables with the contents of the controls for this dialog, and the notebook pages.

Definition at line 414 of file LocationDialog.cpp.

void LocationDialog::PopulateListBox (  )  [private]

Populate the list box with any markers available.

Definition at line 347 of file LocationDialog.cpp.

bool LocationDialog::MayClose (  )  [private]

Returns if the dialog can close.

Generally returns false if an invalid address has been put in.

Definition at line 772 of file LocationDialog.cpp.

void LocationDialog::OnTimer ( wxTimerEvent &  event  )  [private]

100ms timer - tracks which wxTextCtrl has focus in m_pwndFocused

Definition at line 741 of file LocationDialog.cpp.

void LocationDialog::OnKeyboard ( wxCommandEvent &  event  )  [private]

Keyboard button pressed - activate onscreen keyboard (KeyboardDialog).

Definition at line 705 of file LocationDialog.cpp.

void LocationDialog::OnOldAddress ( wxCommandEvent &  event  )  [private]

Selection changed in old address listing.

This function populates the edit controls with the address selected in the old address listing.

Definition at line 632 of file LocationDialog.cpp.

void LocationDialog::OnOldAddressDoubleClick ( wxCommandEvent &  event  )  [private]

List box entry double clicked - center map on that marker.

Definition at line 661 of file LocationDialog.cpp.

void LocationDialog::OnOk ( wxCommandEvent &  event  )  [private]

Ok pressed - Saves the edit controls to member variables.

Definition at line 384 of file LocationDialog.cpp.

void LocationDialog::OnCancel ( wxCommandEvent &  event  )  [private]

Cancel pressed.

Definition at line 402 of file LocationDialog.cpp.

void LocationDialog::OnAdd ( wxCommandEvent &  event  )  [private]

Add current address as a marker.

Definition at line 429 of file LocationDialog.cpp.

void LocationDialog::OnUpdate ( wxCommandEvent &  event  )  [private]

Update selected marker with current address.

Definition at line 470 of file LocationDialog.cpp.

void LocationDialog::OnDelete ( wxCommandEvent &  event  )  [private]

Delete selected marker.

Definition at line 486 of file LocationDialog.cpp.

void LocationDialog::OnIconBrowse ( wxCommandEvent &  event  )  [private]

Browse button pressed.

Lets a bitmap be used to indicate a marker's location.

Definition at line 600 of file LocationDialog.cpp.

void LocationDialog::OnExport ( wxCommandEvent &  event  )  [private]

Export current address to scripting file.

Definition at line 517 of file LocationDialog.cpp.

void LocationDialog::OnExportAll ( wxCommandEvent &  event  )  [private]

Export all waypoints to scripting file.

Definition at line 559 of file LocationDialog.cpp.


Member Data Documentation

specify the window title in this variable

Definition at line 58 of file LocationDialog.h.

Optional waypoint name.

Definition at line 61 of file LocationDialog.h.

Icon filename.

Definition at line 64 of file LocationDialog.h.

Indicates if the callout box should be shown.

Definition at line 67 of file LocationDialog.h.

Indicates if the small semitransparent label should be shown.

Definition at line 70 of file LocationDialog.h.

Indicates if the entire waypoint should be shown.

Definition at line 73 of file LocationDialog.h.

Indicates if the icon should be scaled based on the zoom level.

Definition at line 76 of file LocationDialog.h.

Definition at line 78 of file LocationDialog.h.

wxButton* LocationDialog::m_btnKeyboard [private]

Button to trigger onscreen keyboard.

Definition at line 102 of file LocationDialog.h.

wxButton* LocationDialog::m_btnExport [private]

Definition at line 105 of file LocationDialog.h.

wxButton* LocationDialog::m_btnExportAll [private]

Definition at line 107 of file LocationDialog.h.

wxTextCtrl* LocationDialog::m_pwndFocused [private]

Pointer to last focused wxTextCtrl.

Definition at line 111 of file LocationDialog.h.

wxTimer* LocationDialog::m_Timer [private]

100ms timer used to track which wxTextCtrl has focus

Definition at line 114 of file LocationDialog.h.

wxNotebook* LocationDialog::m_pctlNotebook [private]

wxNotebook containing the various location pages

Definition at line 117 of file LocationDialog.h.

wxListBox* LocationDialog::m_ctlOldAddresses [private]

List box containing previously entered addresses.

Definition at line 120 of file LocationDialog.h.

wxTextCtrl* LocationDialog::m_ctlName [private]

Waypoint name text control.

Definition at line 123 of file LocationDialog.h.

wxTextCtrl* LocationDialog::m_ctlIconFilename [private]

Icon filename.

Definition at line 126 of file LocationDialog.h.

wxCheckBox* LocationDialog::m_ctlShowCalloutBox [private]

Checkbox indicating if the callout box should be visible.

Definition at line 129 of file LocationDialog.h.

wxCheckBox* LocationDialog::m_ctlShowSmallLabel [private]

Checkbox indicating if the small semitransparent label should be visible.

Definition at line 132 of file LocationDialog.h.

wxCheckBox* LocationDialog::m_ctlVisible [private]

Checkbox indicating if the entire waypoint is visible.

Definition at line 135 of file LocationDialog.h.

wxCheckBox* LocationDialog::m_ctlScaleIcon [private]

Checkbox indicating if the waypoint's icon should be scaled based on the zoom level.

Definition at line 138 of file LocationDialog.h.

MapControl* LocationDialog::m_pctlMap [private]

Map control to get markers from.

Definition at line 141 of file LocationDialog.h.

Location page accepting street addresses.

Definition at line 144 of file LocationDialog.h.

Location page accepting GPS coordinates.

Definition at line 147 of file LocationDialog.h.

Active page number.

Definition at line 150 of file LocationDialog.h.

wxFont LocationDialog::m_fntDefault [private]

Default font used in this dialog.

Definition at line 153 of file LocationDialog.h.

int LocationDialog::m_iFlags [private]

Flags for this dialog.

Definition at line 156 of file LocationDialog.h.

IAutoComplete* LocationDialog::m_pcAutoComplete [private]

Definition at line 158 of file LocationDialog.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