64 static bool getInstanceFlag() {
return instanceFlag; }
67 void OnClose(wxCloseEvent &event);
68 void OnOK(wxCommandEvent &event);
70 void SetColorScheme();
71 void RecalculateSize();
72 void UpdateRouteListCtrl();
73 void UpdateTrkListCtrl();
74 void UpdateWptListCtrl(
RoutePoint *rp_select = NULL,
75 bool b_retain_sort =
true);
76 void UpdateLayListCtrl();
77 void UpdateWptListCtrlViz();
81 void OnTabSwitch(wxNotebookEvent &event);
82 static void WptShowPropertiesDialog(
RoutePoint *wp, wxWindow *parent);
83 void TrackToRoute(
Track *track);
86 static bool instanceFlag;
92 void UpdateRteButtons();
93 void MakeAllRoutesInvisible();
95 void ZoomtoRoute(
Route *route);
96 void UpdateTrkButtons();
97 void UpdateWptButtons();
98 void UpdateLayButtons();
99 void ToggleLayerContentsOnChart(
Layer *layer);
100 void ToggleLayerContentsOnListing(
Layer *layer);
101 void ToggleLayerContentsNames(
Layer *layer);
102 void AddNewLayer(
bool isPersistent);
105 void OnRteDeleteClick(wxCommandEvent &event);
106 void OnRtePropertiesClick(wxCommandEvent &event);
107 void OnRteZoomtoClick(wxCommandEvent &event);
108 void OnRteActivateClick(wxCommandEvent &event);
109 void OnRteReverseClick(wxCommandEvent &event);
110 void OnRteExportClick(wxCommandEvent &event);
111 void OnRteResequenceClick(wxCommandEvent &event);
112 void OnRteSendToPeerClick(wxCommandEvent &event);
113 void OnRteToggleVisibility(wxMouseEvent &event);
114 void OnRteBtnLeftDown(
115 wxMouseEvent &event);
116 void OnRteDeleteAllClick(wxCommandEvent &event);
117 void OnRteSelected(wxListEvent &event);
118 void OnRteSendToGPSClick(wxCommandEvent &event);
119 void OnRteDefaultAction(wxListEvent &event);
120 void OnRteColumnClicked(wxListEvent &event);
121 void OnTrkDefaultAction(wxListEvent &event);
122 void OnTrkNewClick(wxCommandEvent &event);
123 void OnTrkPropertiesClick(wxCommandEvent &event);
124 void OnTrkDeleteClick(wxCommandEvent &event);
125 void OnTrkExportClick(wxCommandEvent &event);
126 void OnTrkRouteFromTrackClick(wxCommandEvent &event);
127 void OnTrkDeleteAllClick(wxCommandEvent &event);
128 void OnTrkSelected(wxListEvent &event);
129 void OnTrkToggleVisibility(wxMouseEvent &event);
130 void OnTrkColumnClicked(wxListEvent &event);
131 void OnTrkRightClick(wxListEvent &event);
132 void OnTrkMenuSelected(wxCommandEvent &event);
133 void OnTrkSendToPeerClick(wxCommandEvent &event);
134 void OnWptDefaultAction(wxListEvent &event);
135 void OnWptNewClick(wxCommandEvent &event);
136 void OnWptPropertiesClick(wxCommandEvent &event);
137 void OnWptZoomtoClick(wxCommandEvent &event);
138 void OnWptDeleteClick(wxCommandEvent &event);
139 void OnWptGoToClick(wxCommandEvent &event);
140 void OnWptExportClick(wxCommandEvent &event);
141 void OnWptSendToGPSClick(wxCommandEvent &event);
142 void OnWptDeleteAllClick(wxCommandEvent &event);
143 void OnWptSelected(wxListEvent &event);
144 void OnWptToggleVisibility(wxMouseEvent &event);
145 void OnWptColumnClicked(wxListEvent &event);
146 void OnWptSendToPeerClick(wxCommandEvent &event);
147 void OnLayDefaultAction(wxListEvent &event);
148 void OnLayNewClick(wxCommandEvent &event);
149 void OnPerLayNewClick(wxCommandEvent &event);
150 void OnLayPropertiesClick(wxCommandEvent &event);
151 void OnLayToggleChartClick(wxCommandEvent &event);
152 void OnLayToggleListingClick(wxCommandEvent &event);
153 void OnLayToggleNamesClick(wxCommandEvent &event);
154 void OnLayDeleteClick(wxCommandEvent &event);
155 void OnLaySelected(wxListEvent &event);
156 void OnLayToggleVisibility(wxMouseEvent &event);
157 void OnLayColumnClicked(wxListEvent &event);
158 void OnImportClick(wxCommandEvent &event);
159 void OnExportClick(wxCommandEvent &event);
160 void OnExportVizClick(wxCommandEvent &event);
161 void OnBackupClick(wxCommandEvent &event);
162 void OnFilterChanged(wxCommandEvent &event);
163 void OnKey(wxKeyEvent &ke);
164 void OnShowAllRteCBClicked(wxCommandEvent &event);
165 void OnShowAllWpCBClicked(wxCommandEvent &event);
166 void OnShowAllTrkCBClicked(wxCommandEvent &event);
167 void OnShowAllLayCBClicked(wxCommandEvent &event);
170 wxNotebook *m_pNotebook;
171 wxPanel *m_pPanelRte;
172 wxPanel *m_pPanelTrk;
173 wxPanel *m_pPanelWpt;
174 wxPanel *m_pPanelLay;
175 wxListCtrl *m_pRouteListCtrl;
176 wxListCtrl *m_pTrkListCtrl;
177 wxListCtrl *m_pWptListCtrl;
178 wxListCtrl *m_pLayListCtrl;
179 wxStaticText *m_stFilterWpt;
180 wxTextCtrl *m_tFilterWpt;
181 wxStaticText *m_stFilterRte;
182 wxTextCtrl *m_tFilterRte;
183 wxStaticText *m_stFilterTrk;
184 wxTextCtrl *m_tFilterTrk;
185 wxStaticText *m_stFilterLay;
186 wxTextCtrl *m_tFilterLay;
188 wxButton *btnRteProperties;
189 wxButton *btnRteActivate;
190 wxButton *btnRteZoomto;
191 wxButton *btnRteReverse;
192 wxButton *btnRteDelete;
193 wxButton *btnRteExport;
194 wxButton *btnRteResequence;
195 wxButton *btnRteSendToGPS;
196 wxButton *btnRteSendToPeer;
197 wxButton *btnRteDeleteAll;
199 wxButton *btnTrkProperties;
200 wxButton *btnTrkDelete;
201 wxButton *btnTrkExport;
202 wxButton *btnTrkRouteFromTrack;
203 wxButton *btnTrkSendToPeer;
204 wxButton *btnTrkDeleteAll;
206 wxButton *btnWptProperties;
207 wxButton *btnWptZoomto;
208 wxButton *btnWptDelete;
209 wxButton *btnWptGoTo;
210 wxButton *btnWptExport;
211 wxButton *btnWptSendToGPS;
212 wxButton *btnWptSendToPeer;
213 wxButton *btnWptDeleteAll;
215 wxButton *btnPerLayNew;
217 wxCheckBox *cbLayToggleChart;
218 wxCheckBox *cbLayToggleListing;
219 wxCheckBox *cbLayToggleNames;
220 wxButton *btnLayDelete;
223 wxButton *btnExportViz;
225 wxCheckBox *m_cbShowAllRte;
226 wxCheckBox *m_cbShowAllWP;
227 wxCheckBox *m_cbShowAllTrk;
228 wxCheckBox *m_cbShowAllLay;
230 bool m_bPossibleClick;
232 bool m_bNeedConfigFlush;
241 obs::Listener routes_update_listener;