217 DECLARE_EVENT_TABLE()
242 static bool instanceFlag;
245 bool m_bShowName_save;
246 wxString m_Name_save;
247 wxString m_IconName_save;
248 int m_current_icon_Index;
251 wxString m_Description_save;
252 HyperlinkList* m_pMyLinkList;
253 bool m_bIsVisible_save;
254 bool m_bUseScaMin_save;
255 int m_iScaminVal_save;
256 bool m_bShowWaypointRangeRings_save;
257 int m_iWaypointRangeRingsNumber_save;
258 float m_fWaypointRangeRingsStep_save;
259 wxColour m_wxcWaypointRangeRingsColour_save;
260 double m_WaypointArrivalRadius_save;
261 float m_PlannedSpeed_save;
262 wxDateTime m_ArrETA_save;
263 std::map<double, const IDX_entry*> m_tss;
264 wxString m_lasttspos;
268 wxBoxSizer* bSizerBasicProperties;
269 wxBoxSizer* bSizerLinks;
270 wxButton* m_buttonOkay;
271 wxButton* m_buttonExtDescription;
272 wxButton* m_buttonLinksMenu;
273 wxBitmapButton* m_buttonShowTides;
274 wxButton* DefaultsBtn;
275 wxCheckBox* m_checkBoxScaMin;
276 wxCheckBox* m_checkBoxShowName;
277 wxCheckBox* m_checkBoxShowNameExt;
278 wxCheckBox* m_checkBoxVisible;
279 wxChoice* m_choiceWaypointRangeRingsUnits;
280 wxColourPickerCtrl* m_PickColor;
299 wxBoxSizer* bMainSizer;
301 wxFlexGridSizer* waypointradarGrid;
302 wxFlexGridSizer* waypointrrSelect;
303 wxGridBagSizer* bGB_SizerProperties;
304 wxFlexGridSizer* gbSizerInnerProperties;
305 wxNotebook* m_notebookProperties;
306 wxObject* m_contextObject;
307 wxScrolledWindow* m_panelBasicProperties;
308 wxPanel* m_panelDescription;
309 wxScrolledWindow* m_panelExtendedProperties;
310 wxSimpleHtmlListBox* m_htmlList;
311 wxSize m_defaultClientSize;
312 wxChoice* m_ChoiceWaypointRangeRingsNumber;
313 wxStaticBitmap* m_bitmapIcon;
314 wxStaticBoxSizer* sbS_Description;
315 wxStaticBoxSizer* sbSizerExtProperties;
316 wxStaticBoxSizer* sbSizerLinks;
317 wxStaticBoxSizer* sbSizerBasicProperties;
318 wxStaticBoxSizer* sbRangeRingsExtProperties;
319 wxStaticBoxSizer* sbSizerDescription;
320 wxStaticText* m_staticTextArrivalRadius;
321 wxStaticText* m_staticTextDescription;
322 wxStaticText* m_staticTextEditEnabled;
323 wxStaticText* m_staticTextGpx;
324 wxStaticText* m_staticTextGuid;
325 wxStaticText* m_staticTextTideStation;
326 wxStaticText* m_staticTextIcon;
327 wxStaticText* m_staticTextLatitude;
328 wxStaticText* m_staticTextLayer;
329 wxStaticText* m_staticTextLongitude;
330 wxStaticText* m_staticTextName;
331 wxStaticText* m_staticTextScaMin;
332 wxStaticText* m_staticTextShowNameExt;
333 wxStaticText* m_staticTextRR1;
334 wxStaticText* m_staticTextRR2;
335 wxChoice* m_RangeRingUnits;
336 wxStaticText* m_staticTextRR4;
337 wxStaticText* m_staticTextArrivalUnits;
338 wxStaticText* m_staticTextPlSpeed;
341 wxStaticText* m_staticTextPlSpeedUnits;
342 wxStdDialogButtonSizer* m_sdbSizerButtons;
343 wxTextCtrl* m_textArrivalRadius;
344 wxTextCtrl* m_textCtrlExtDescription;
345 wxTextCtrl* m_textCtrlGpx;
346 wxTextCtrl* m_textCtrlGuid;
347 wxScrolledWindow* m_scrolledWindowLinks;
348 wxHyperlinkCtrl* m_hyperlink17;
350 wxToggleButton* m_toggleBtnEdit;
351 wxButton* m_buttonAddLink;
353#ifdef __OCPN__ANDROID__
354 wxChoice* m_comboBoxTideStation;
356 wxComboBox* m_comboBoxTideStation;
358 wxTextCtrl* m_textDescription;
359 wxTextCtrl* m_textLatitude;
360 wxTextCtrl* m_textLongitude;
362 std::unique_ptr<RoutePointNameValidator> m_name_validator;
363 wxTextCtrl* m_textScaMin;
364 wxTextCtrl* m_textWaypointRangeRingsStep;
374 wxBitmap _img_MUI_settings_svg;
375 wxButton* m_sdbSizerButtonsCancel;
376 wxButton* m_sdbSizerButtonsOK;
398 wxArrayString m_choiceTideChoices;
401 wxHyperlinkCtrl* m_pEditedLink;
403 void initialize_images(
void);
404 void OnBitmapCombClick(wxCommandEvent& event);
405 void OnPositionCtlUpdated(wxCommandEvent& event);
406 void OnFocusEvent(wxFocusEvent& event);
407 void OnExtDescriptionClick(wxCommandEvent& event);
408 void OnDescChangedExt(wxCommandEvent& event);
409 void OnDescChangedBasic(wxCommandEvent& event);
410 void OnMarkInfoCancelClick(wxCommandEvent& event);
411 void OnMarkInfoOKClick(wxCommandEvent& event);
412 void OnShowWaypointNameSelectBasic(wxCommandEvent& event);
413 void OnShowWaypointNameSelectExt(wxCommandEvent& event);
414 void OnSelectScaMinExt(wxCommandEvent& event);
415 void OnWptRangeRingsNoChange(wxCommandEvent& event);
416 void OnCopyPasteLatLon(wxCommandEvent& event);
417 void OnWaypointRangeRingSelect(wxCommandEvent& event);
418 void m_htmlListContextMenuBtn(wxCommandEvent& event);
419 void m_htmlListContextMenu(wxMouseEvent& event);
420 void OnRightClickLatLon(wxCommandEvent& event);
421 void OnHtmlLinkClicked(wxHtmlLinkEvent& event);
422 void OnHyperLinkClick(wxHyperlinkEvent& event);
423 void OnLayoutResize(wxCommandEvent& event);
425 void On_html_link_popupmenu_Click(wxCommandEvent& event);
426 void DefautlBtnClicked(wxCommandEvent& event);
427 void OnNotebookPageChanged(wxNotebookEvent& event);
428 void OnTimeChanged(wxDateEvent& event) {
m_cbEtdPresent->SetValue(
true); }
429 void OnTideStationCombobox(wxCommandEvent& event);
430 void OnClose(wxCloseEvent& event);
431 void ShowTidesBtnClicked(wxCommandEvent& event);
432 void OnAddLink(wxCommandEvent& event);
435 MarkInfoDlg(wxWindow* parent, wxWindowID
id = wxID_ANY,
436 const wxString& title = _(
"Waypoint Properties"),
437 const wxPoint& pos = wxDefaultPosition,
438 const wxSize& size = wxSize(-1, -1),
439 long style = FRAME_WITH_LINKS_STYLE);
442 void InitialFocus(
void);
443 void RecalculateSize(
void);
444 RoutePoint* GetRoutePoint(
void) {
return m_pRoutePoint; }
445 void SetColorScheme(ColorScheme cs);
448 void SetBulkEdit(
bool bBulkEdit);
449 void UpdateHtmlList();
450 void SetDialogTitle(
const wxString& title) { SetTitle(title); }
451 bool UpdateProperties(
bool positionOnly =
false);
452 void ValidateMark(
void);
454 void OnActivate(wxActivateEvent& event);
456 wxSimpleHtmlListBox* GetSimpleBox() {
457 return dynamic_cast<wxSimpleHtmlListBox*
>(m_htmlList);
459 void OnHtmlCellClicked(wxHtmlCellEvent& event);