62enum { ID_STP_CANCEL = 10000, ID_STP_OK, ID_STP_CHOICE_PEER, ID_STP_SCAN };
77 bool Create(wxWindow* parent, wxWindowID
id = SYMBOL_STP_IDNAME,
78 const wxString& caption = SYMBOL_STP_TITLE,
79 const wxString& hint = SYMBOL_STP_TITLE,
80 const wxPoint& pos = SYMBOL_STP_POSITION,
81 const wxSize& size = SYMBOL_STP_SIZE,
82 long style = SYMBOL_STP_STYLE);
83 void SetRoute(
Route* pRoute) { m_RouteList.push_back(pRoute); }
85 m_RoutePointList.push_back(pRoutePoint);
87 void SetTrack(
Track* pTrack) { m_TrackList.push_back(pTrack); }
88 void SetMessage(wxString message);
89 void SetScanOnCreate(
bool s) { m_bScanOnCreate = s; }
90 void SetScanTime(
int t) { m_scanTime = t * 2; }
93 void CreateControls([[maybe_unused]]
const wxString& hint);
95 void OnCancelClick(wxCommandEvent& event);
96 void OnSendClick([[maybe_unused]] wxCommandEvent& event);
97 void OnScanClick(wxCommandEvent& event);
98 void OnTimerAutoscan(wxTimerEvent& event);
99 void OnTimerScanTick(wxTimerEvent& event);
101 bool EnableActivateChkbox();
102 bool IsOwnAddress(
const std::string& addr)
const;
104 std::vector<Route*> m_RouteList;
105 std::vector<RoutePoint*> m_RoutePointList;
106 std::vector<Track*> m_TrackList;
107 wxComboBox* m_PeerListBox;
109 wxButton* m_CancelButton;
110 wxButton* m_SendButton;
111 wxStaticText* premtext;
112 wxButton* m_RescanButton;
113 wxCheckBox* m_activate_chkbox;
116 std::vector<std::string> m_own_ip_addresses;
118 wxTimer m_autoScanTimer;
119 wxTimer m_ScanTickTimer;
122 bool m_bScanOnCreate;