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