202 DECLARE_EVENT_TABLE()
227 static bool instanceFlag;
230 bool m_bShowName_save;
231 wxString m_Name_save;
232 wxString m_IconName_save;
233 int m_current_icon_Index;
236 wxString m_Description_save;
237 HyperlinkList* m_pMyLinkList;
238 bool m_bIsVisible_save;
239 bool m_bUseScaMin_save;
240 int m_iScaminVal_save;
241 int m_iScamaxVal_save;
242 bool m_bShowWaypointRangeRings_save;
243 int m_iWaypointRangeRingsNumber_save;
244 float m_fWaypointRangeRingsStep_save;
245 wxColour m_wxcWaypointRangeRingsColour_save;
246 double m_WaypointArrivalRadius_save;
247 float m_PlannedSpeed_save;
248 wxDateTime m_ArrETA_save;
249 std::map<double, const IDX_entry*> m_tss;
250 wxString m_lasttspos;
254 wxBoxSizer* bSizerBasicProperties;
255 wxBoxSizer* bSizerLinks;
256 wxButton* m_buttonOkay;
257 wxButton* m_buttonExtDescription;
258 wxButton* m_buttonLinksMenu;
259 wxBitmapButton* m_buttonShowTides;
260 wxButton* DefaultsBtn;
261 wxCheckBox* m_checkBoxScaMin;
262 wxCheckBox* m_checkBoxShowName;
263 wxCheckBox* m_checkBoxShowNameExt;
264 wxCheckBox* m_checkBoxVisible;
265 wxChoice* m_choiceWaypointRangeRingsUnits;
266 wxColourPickerCtrl* m_PickColor;
285 wxBoxSizer* bMainSizer;
287 wxFlexGridSizer* waypointradarGrid;
288 wxFlexGridSizer* waypointrrSelect;
289 wxGridBagSizer* bGB_SizerProperties;
290 wxFlexGridSizer* gbSizerInnerProperties;
291 wxNotebook* m_notebookProperties;
292 wxObject* m_contextObject;
293 wxScrolledWindow* m_panelBasicProperties;
294 wxPanel* m_panelDescription;
295 wxScrolledWindow* m_panelExtendedProperties;
296 wxSimpleHtmlListBox* m_htmlList;
297 wxSize m_defaultClientSize;
298 wxChoice* m_ChoiceWaypointRangeRingsNumber;
299 wxStaticBitmap* m_bitmapIcon;
300 wxStaticBoxSizer* sbS_Description;
301 wxStaticBoxSizer* sbSizerExtProperties;
302 wxStaticBoxSizer* sbSizerLinks;
303 wxStaticBoxSizer* sbSizerBasicProperties;
304 wxStaticBoxSizer* sbRangeRingsExtProperties;
305 wxStaticBoxSizer* sbSizerDescription;
306 wxStaticText* m_staticTextArrivalRadius;
307 wxStaticText* m_staticTextDescription;
308 wxStaticText* m_staticTextEditEnabled;
309 wxStaticText* m_staticTextGpx;
310 wxStaticText* m_staticTextGuid;
311 wxStaticText* m_staticTextTideStation;
312 wxStaticText* m_staticTextIcon;
313 wxStaticText* m_staticTextLatitude;
314 wxStaticText* m_staticTextLayer;
315 wxStaticText* m_staticTextLongitude;
316 wxStaticText* m_staticTextName;
317 wxStaticText* m_staticTextScaMin;
318 wxStaticText* m_staticTextScaMax;
319 wxStaticText* m_staticTextShowNameExt;
320 wxStaticText* m_staticTextRR1;
321 wxStaticText* m_staticTextRR2;
322 wxChoice* m_RangeRingUnits;
323 wxStaticText* m_staticTextRR4;
324 wxStaticText* m_staticTextArrivalUnits;
325 wxStaticText* m_staticTextPlSpeed;
328 wxStaticText* m_staticTextPlSpeedUnits;
329 wxStdDialogButtonSizer* m_sdbSizerButtons;
330 wxTextCtrl* m_textArrivalRadius;
331 wxTextCtrl* m_textCtrlExtDescription;
332 wxTextCtrl* m_textCtrlGpx;
333 wxTextCtrl* m_textCtrlGuid;
334 wxScrolledWindow* m_scrolledWindowLinks;
335 wxHyperlinkCtrl* m_hyperlink17;
337 wxToggleButton* m_toggleBtnEdit;
338 wxButton* m_buttonAddLink;
341 wxChoice* m_comboBoxTideStation;
343 wxComboBox* m_comboBoxTideStation;
345 wxTextCtrl* m_textDescription;
346 wxTextCtrl* m_textLatitude;
347 wxTextCtrl* m_textLongitude;
349 std::unique_ptr<RoutePointNameValidator> m_name_validator;
350 wxTextCtrl* m_textScaMin;
351 wxTextCtrl* m_textScaMax;
352 wxTextCtrl* m_textWaypointRangeRingsStep;
362 wxBitmap _img_MUI_settings_svg;
363 wxButton* m_sdbSizerButtonsCancel;
364 wxButton* m_sdbSizerButtonsOK;
386 wxArrayString m_choiceTideChoices;
389 wxHyperlinkCtrl* m_pEditedLink;
391 void initialize_images();
392 void OnBitmapCombClick(wxCommandEvent& event);
393 void OnPositionCtlUpdated(wxCommandEvent& event);
394 void OnFocusEvent(wxFocusEvent& event);
395 void OnExtDescriptionClick(wxCommandEvent& event);
396 void OnDescChangedExt(wxCommandEvent& event);
397 void OnDescChangedBasic(wxCommandEvent& event);
398 void OnMarkInfoCancelClick(wxCommandEvent& event);
399 void OnMarkInfoOKClick(wxCommandEvent& event);
400 void OnShowWaypointNameSelectBasic(wxCommandEvent& event);
401 void OnShowWaypointNameSelectExt(wxCommandEvent& event);
402 void OnSelectScaMinExt(wxCommandEvent& event);
403 void OnWptRangeRingsNoChange(wxCommandEvent& event);
404 void OnCopyPasteLatLon(wxCommandEvent& event);
405 void OnWaypointRangeRingSelect(wxCommandEvent& event);
406 void m_htmlListContextMenuBtn(wxCommandEvent& event);
407 void m_htmlListContextMenu(wxMouseEvent& event);
408 void OnRightClickLatLon(wxCommandEvent& event);
409 void OnHtmlLinkClicked(wxHtmlLinkEvent& event);
410 void OnHyperLinkClick(wxHyperlinkEvent& event);
411 void OnLayoutResize(wxCommandEvent& event);
413 void On_html_link_popupmenu_Click(wxCommandEvent& event);
414 void DefautlBtnClicked(wxCommandEvent& event);
415 void OnNotebookPageChanged(wxNotebookEvent& event);
416 void OnTimeChanged(wxDateEvent& event) {
m_cbEtdPresent->SetValue(
true); }
417 void OnTideStationCombobox(wxCommandEvent& event);
418 void OnClose(wxCloseEvent& event);
419 void ShowTidesBtnClicked(wxCommandEvent& event);
420 void OnAddLink(wxCommandEvent& event);
423 MarkInfoDlg(wxWindow* parent, wxWindowID
id = wxID_ANY,
424 const wxString& title = _(
"Waypoint Properties"),
425 const wxPoint& pos = wxDefaultPosition,
426 const wxSize& size = wxSize(-1, -1),
427 long style = FRAME_WITH_LINKS_STYLE);
431 void RecalculateSize();
432 RoutePoint* GetRoutePoint() {
return m_pRoutePoint; }
433 void SetColorScheme(ColorScheme cs);
436 void SetBulkEdit(
bool bBulkEdit);
437 void UpdateHtmlList();
438 void SetDialogTitle(
const wxString& title) { SetTitle(title); }
439 bool UpdateProperties(
bool positionOnly =
false);
442 void OnActivate(wxActivateEvent& event);
444 wxSimpleHtmlListBox* GetSimpleBox() {
445 return dynamic_cast<wxSimpleHtmlListBox*
>(m_htmlList);
447 void OnHtmlCellClicked(wxHtmlCellEvent& event);