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