204 DECLARE_EVENT_TABLE()
229 static bool instanceFlag;
232 bool m_bShowName_save;
233 wxString m_Name_save;
234 wxString m_IconName_save;
235 int m_current_icon_Index;
238 wxString m_Description_save;
239 HyperlinkList* m_pMyLinkList;
240 bool m_bIsVisible_save;
241 bool m_bUseScaMin_save;
242 int m_iScaminVal_save;
243 bool m_bShowWaypointRangeRings_save;
244 int m_iWaypointRangeRingsNumber_save;
245 float m_fWaypointRangeRingsStep_save;
246 wxColour m_wxcWaypointRangeRingsColour_save;
247 double m_WaypointArrivalRadius_save;
248 float m_PlannedSpeed_save;
249 wxDateTime m_ArrETA_save;
250 std::map<double, const IDX_entry*> m_tss;
251 wxString m_lasttspos;
255 wxBoxSizer* bSizerBasicProperties;
256 wxBoxSizer* bSizerLinks;
257 wxButton* m_buttonOkay;
258 wxButton* m_buttonExtDescription;
259 wxButton* m_buttonLinksMenu;
260 wxBitmapButton* m_buttonShowTides;
261 wxButton* DefaultsBtn;
262 wxCheckBox* m_checkBoxScaMin;
263 wxCheckBox* m_checkBoxShowName;
264 wxCheckBox* m_checkBoxShowNameExt;
265 wxCheckBox* m_checkBoxVisible;
266 wxChoice* m_choiceWaypointRangeRingsUnits;
267 wxColourPickerCtrl* m_PickColor;
286 wxBoxSizer* bMainSizer;
288 wxFlexGridSizer* waypointradarGrid;
289 wxFlexGridSizer* waypointrrSelect;
290 wxGridBagSizer* bGB_SizerProperties;
291 wxFlexGridSizer* gbSizerInnerProperties;
292 wxNotebook* m_notebookProperties;
293 wxObject* m_contextObject;
294 wxScrolledWindow* m_panelBasicProperties;
295 wxPanel* m_panelDescription;
296 wxScrolledWindow* m_panelExtendedProperties;
297 wxSimpleHtmlListBox* m_htmlList;
298 wxSize m_defaultClientSize;
299 wxChoice* m_ChoiceWaypointRangeRingsNumber;
300 wxStaticBitmap* m_bitmapIcon;
301 wxStaticBoxSizer* sbS_Description;
302 wxStaticBoxSizer* sbSizerExtProperties;
303 wxStaticBoxSizer* sbSizerLinks;
304 wxStaticBoxSizer* sbSizerBasicProperties;
305 wxStaticBoxSizer* sbRangeRingsExtProperties;
306 wxStaticBoxSizer* sbSizerDescription;
307 wxStaticText* m_staticTextArrivalRadius;
308 wxStaticText* m_staticTextDescription;
309 wxStaticText* m_staticTextEditEnabled;
310 wxStaticText* m_staticTextGpx;
311 wxStaticText* m_staticTextGuid;
312 wxStaticText* m_staticTextTideStation;
313 wxStaticText* m_staticTextIcon;
314 wxStaticText* m_staticTextLatitude;
315 wxStaticText* m_staticTextLayer;
316 wxStaticText* m_staticTextLongitude;
317 wxStaticText* m_staticTextName;
318 wxStaticText* m_staticTextScaMin;
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_textWaypointRangeRingsStep;
361 wxBitmap _img_MUI_settings_svg;
362 wxButton* m_sdbSizerButtonsCancel;
363 wxButton* m_sdbSizerButtonsOK;
385 wxArrayString m_choiceTideChoices;
388 wxHyperlinkCtrl* m_pEditedLink;
390 void initialize_images();
391 void OnBitmapCombClick(wxCommandEvent& event);
392 void OnPositionCtlUpdated(wxCommandEvent& event);
393 void OnFocusEvent(wxFocusEvent& event);
394 void OnExtDescriptionClick(wxCommandEvent& event);
395 void OnDescChangedExt(wxCommandEvent& event);
396 void OnDescChangedBasic(wxCommandEvent& event);
397 void OnMarkInfoCancelClick(wxCommandEvent& event);
398 void OnMarkInfoOKClick(wxCommandEvent& event);
399 void OnShowWaypointNameSelectBasic(wxCommandEvent& event);
400 void OnShowWaypointNameSelectExt(wxCommandEvent& event);
401 void OnSelectScaMinExt(wxCommandEvent& event);
402 void OnWptRangeRingsNoChange(wxCommandEvent& event);
403 void OnCopyPasteLatLon(wxCommandEvent& event);
404 void OnWaypointRangeRingSelect(wxCommandEvent& event);
405 void m_htmlListContextMenuBtn(wxCommandEvent& event);
406 void m_htmlListContextMenu(wxMouseEvent& event);
407 void OnRightClickLatLon(wxCommandEvent& event);
408 void OnHtmlLinkClicked(wxHtmlLinkEvent& event);
409 void OnHyperLinkClick(wxHyperlinkEvent& event);
410 void OnLayoutResize(wxCommandEvent& event);
412 void On_html_link_popupmenu_Click(wxCommandEvent& event);
413 void DefautlBtnClicked(wxCommandEvent& event);
414 void OnNotebookPageChanged(wxNotebookEvent& event);
415 void OnTimeChanged(wxDateEvent& event) {
m_cbEtdPresent->SetValue(
true); }
416 void OnTideStationCombobox(wxCommandEvent& event);
417 void OnClose(wxCloseEvent& event);
418 void ShowTidesBtnClicked(wxCommandEvent& event);
419 void OnAddLink(wxCommandEvent& event);
422 MarkInfoDlg(wxWindow* parent, wxWindowID
id = wxID_ANY,
423 const wxString& title = _(
"Waypoint Properties"),
424 const wxPoint& pos = wxDefaultPosition,
425 const wxSize& size = wxSize(-1, -1),
426 long style = FRAME_WITH_LINKS_STYLE);
430 void RecalculateSize();
431 RoutePoint* GetRoutePoint() {
return m_pRoutePoint; }
432 void SetColorScheme(ColorScheme cs);
435 void SetBulkEdit(
bool bBulkEdit);
436 void UpdateHtmlList();
437 void SetDialogTitle(
const wxString& title) { SetTitle(title); }
438 bool UpdateProperties(
bool positionOnly =
false);
441 void OnActivate(wxActivateEvent& event);
443 wxSimpleHtmlListBox* GetSimpleBox() {
444 return dynamic_cast<wxSimpleHtmlListBox*
>(m_htmlList);
446 void OnHtmlCellClicked(wxHtmlCellEvent& event);