25 #ifndef __SENDTOGPSDLG_H__
26 #define __SENDTOGPSDLG_H__
28 #include <wx/wxprec.h>
33 #include <wx/dialog.h>
36 #define ID_STGDIALOG 10005
37 #define SYMBOL_STG_STYLE \
38 wxCAPTION | wxRESIZE_BORDER | wxSYSTEM_MENU | wxCLOSE_BOX | \
39 wxFRAME_FLOAT_ON_PARENT
40 #define SYMBOL_STG_TITLE _("Send to GPS")
41 #define SYMBOL_STG_IDNAME ID_STGDIALOG
42 #define SYMBOL_STG_SIZE wxSize(500, 500)
43 #define SYMBOL_STG_POSITION wxDefaultPosition
57 SendToGpsDlg(wxWindow* parent, wxWindowID
id,
const wxString& caption,
58 const wxString& hint,
const wxPoint& pos,
const wxSize& size,
62 bool Create(wxWindow* parent, wxWindowID
id = SYMBOL_STG_IDNAME,
63 const wxString& caption = SYMBOL_STG_TITLE,
64 const wxString& hint = SYMBOL_STG_TITLE,
65 const wxPoint& pos = SYMBOL_STG_POSITION,
66 const wxSize& size = SYMBOL_STG_SIZE,
67 long style = SYMBOL_STG_STYLE);
68 void SetRoute(
Route* pRoute) { m_pRoute = pRoute; }
69 void SetWaypoint(
RoutePoint* pRoutePoint) { m_pRoutePoint = pRoutePoint; }
70 wxGauge* GetProgressGauge() {
return m_pgauge; }
71 void SetMessage(wxString message);
74 void CreateControls(
const wxString& hint);
76 void OnCancelClick(wxCommandEvent& event);
77 void OnSendClick(wxCommandEvent& event);
81 wxComboBox* m_itemCommListBox;
83 wxButton* m_CancelButton;
84 wxButton* m_SendButton;
85 wxStaticText* premtext;
Route "Send to GPS..." Dialog Definition.