#include <LocationDialog.h>

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. | |
| LocationPageAddress * | m_pwndAddress |
| Location page accepting street addresses. | |
| LocationPageCoordinates * | m_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 |
Definition at line 49 of file LocationDialog.h.
| LocationDialog::LocationDialog | ( | wxWindow * | parent, | |
| MapControl * | pctlMap, | |||
| int | iFlags = ADFLAG_CANCELBUTTON, |
|||
| wxFont * | pFont = NULL | |||
| ) |
| LocationDialog::~LocationDialog | ( | ) |
| bool LocationDialog::GetAddress | ( | Address & | address | ) |
| 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] |
| void LocationDialog::OnAdd | ( | wxCommandEvent & | event | ) | [private] |
| void LocationDialog::OnUpdate | ( | wxCommandEvent & | event | ) | [private] |
| void LocationDialog::OnDelete | ( | wxCommandEvent & | event | ) | [private] |
| 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] |
| void LocationDialog::OnExportAll | ( | wxCommandEvent & | event | ) | [private] |
| wxString LocationDialog::m_strTitle |
| wxString LocationDialog::m_strName |
| wxString LocationDialog::m_strIconFilename |
Indicates if the small semitransparent label should be shown.
Definition at line 70 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] |
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] |
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] |
wxListBox* LocationDialog::m_ctlOldAddresses [private] |
wxTextCtrl* LocationDialog::m_ctlName [private] |
wxTextCtrl* LocationDialog::m_ctlIconFilename [private] |
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] |
LocationPageAddress* LocationDialog::m_pwndAddress [private] |
int LocationDialog::m_iActivePage [private] |
wxFont LocationDialog::m_fntDefault [private] |
int LocationDialog::m_iFlags [private] |
IAutoComplete* LocationDialog::m_pcAutoComplete [private] |
Definition at line 158 of file LocationDialog.h.
1.5.5