25#ifndef __SENDTOPEERDLG_H__
26#define __SENDTOPEERDLG_H__
36#define ID_STPDIALOG 10006
37#define SYMBOL_STP_STYLE \
38 wxCAPTION | wxRESIZE_BORDER | wxSYSTEM_MENU | wxCLOSE_BOX | \
39 wxFRAME_FLOAT_ON_PARENT
40#define SYMBOL_STP_TITLE _("Send to Peer")
41#define SYMBOL_STP_IDNAME ID_STPDIALOG
42#define SYMBOL_STP_SIZE wxSize(500, 500)
43#define SYMBOL_STP_POSITION wxDefaultPosition
45enum { ID_STP_CANCEL = 10000, ID_STP_OK, ID_STP_CHOICE_PEER, ID_STP_SCAN };
60 SendToPeerDlg(wxWindow* parent, wxWindowID
id,
const wxString& caption,
61 const wxString& hint,
const wxPoint& pos,
const wxSize& size,
65 bool Create(wxWindow* parent, wxWindowID
id = SYMBOL_STP_IDNAME,
66 const wxString& caption = SYMBOL_STP_TITLE,
67 const wxString& hint = SYMBOL_STP_TITLE,
68 const wxPoint& pos = SYMBOL_STP_POSITION,
69 const wxSize& size = SYMBOL_STP_SIZE,
70 long style = SYMBOL_STP_STYLE);
71 void SetRoute(
Route* pRoute) { m_RouteList.push_back(pRoute); }
72 void SetWaypoint(
RoutePoint* pRoutePoint) { m_RoutePointList.push_back(pRoutePoint); }
73 void SetTrack(
Track* pTrack) { m_TrackList.push_back(pTrack); }
74 wxGauge* GetProgressGauge() {
return m_pgauge; }
75 void SetMessage(wxString message);
76 void SetScanOnCreate(
bool s){ m_bScanOnCreate = s;}
77 void SetScanTime(
int t){ m_scanTime = t;}
80 void CreateControls(
const wxString& hint);
82 void OnCancelClick(wxCommandEvent& event);
83 void OnSendClick(wxCommandEvent& event);
84 void OnScanClick(wxCommandEvent& event);
85 void OnTimerAutoscan(wxTimerEvent &event);
86 void OnTimerScanTick(wxTimerEvent &event);
89 std::vector<Route*> m_RouteList;
90 std::vector<RoutePoint*> m_RoutePointList;
91 std::vector<Track*> m_TrackList;
92 wxComboBox* m_PeerListBox;
94 wxButton* m_CancelButton;
95 wxButton* m_SendButton;
96 wxStaticText* premtext;
97 wxButton *m_RescanButton;
99 wxTimer m_autoScanTimer;
100 wxTimer m_ScanTickTimer;
103 bool m_bScanOnCreate;
Route "Send to Peer..." Dialog Definition.