203 DECLARE_EVENT_TABLE()
228 static bool instanceFlag;
231 bool m_bShowName_save;
232 wxString m_Name_save;
233 wxString m_IconName_save;
234 int m_current_icon_Index;
237 wxString m_Description_save;
238 HyperlinkList* m_pMyLinkList;
239 bool m_bIsVisible_save;
240 bool m_bUseScaMin_save;
241 int m_iScaminVal_save;
242 int m_iScamaxVal_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_staticTextScaMax;
320 wxStaticText* m_staticTextShowNameExt;
321 wxStaticText* m_staticTextRR1;
322 wxStaticText* m_staticTextRR2;
323 wxChoice* m_RangeRingUnits;
324 wxStaticText* m_staticTextRR4;
325 wxStaticText* m_staticTextArrivalUnits;
326 wxStaticText* m_staticTextPlSpeed;
329 wxStaticText* m_staticTextPlSpeedUnits;
330 wxStdDialogButtonSizer* m_sdbSizerButtons;
331 wxTextCtrl* m_textArrivalRadius;
332 wxTextCtrl* m_textCtrlExtDescription;
333 wxTextCtrl* m_textCtrlGpx;
334 wxTextCtrl* m_textCtrlGuid;
335 wxScrolledWindow* m_scrolledWindowLinks;
336 wxHyperlinkCtrl* m_hyperlink17;
338 wxToggleButton* m_toggleBtnEdit;
339 wxButton* m_buttonAddLink;
342 wxChoice* m_comboBoxTideStation;
344 wxComboBox* m_comboBoxTideStation;
346 wxTextCtrl* m_textDescription;
347 wxTextCtrl* m_textLatitude;
348 wxTextCtrl* m_textLongitude;
350 std::unique_ptr<RoutePointNameValidator> m_name_validator;
351 wxTextCtrl* m_textScaMin;
352 wxTextCtrl* m_textScaMax;
353 wxTextCtrl* m_textWaypointRangeRingsStep;
363 wxBitmap _img_MUI_settings_svg;
364 wxButton* m_sdbSizerButtonsCancel;
365 wxButton* m_sdbSizerButtonsOK;
387 wxArrayString m_choiceTideChoices;
390 wxHyperlinkCtrl* m_pEditedLink;
392 void initialize_images();
393 void OnBitmapCombClick(wxCommandEvent& event);
394 void OnPositionCtlUpdated(wxCommandEvent& event);
395 void OnFocusEvent(wxFocusEvent& event);
396 void OnExtDescriptionClick(wxCommandEvent& event);
397 void OnDescChangedExt(wxCommandEvent& event);
398 void OnDescChangedBasic(wxCommandEvent& event);
399 void OnMarkInfoCancelClick(wxCommandEvent& event);
400 void OnMarkInfoOKClick(wxCommandEvent& event);
401 void OnShowWaypointNameSelectBasic(wxCommandEvent& event);
402 void OnShowWaypointNameSelectExt(wxCommandEvent& event);
403 void OnSelectScaMinExt(wxCommandEvent& event);
404 void OnWptRangeRingsNoChange(wxCommandEvent& event);
405 void OnCopyPasteLatLon(wxCommandEvent& event);
406 void OnWaypointRangeRingSelect(wxCommandEvent& event);
407 void m_htmlListContextMenuBtn(wxCommandEvent& event);
408 void m_htmlListContextMenu(wxMouseEvent& event);
409 void OnRightClickLatLon(wxCommandEvent& event);
410 void OnHtmlLinkClicked(wxHtmlLinkEvent& event);
411 void OnHyperLinkClick(wxHyperlinkEvent& event);
412 void OnLayoutResize(wxCommandEvent& event);
414 void On_html_link_popupmenu_Click(wxCommandEvent& event);
415 void DefautlBtnClicked(wxCommandEvent& event);
416 void OnNotebookPageChanged(wxNotebookEvent& event);
417 void OnTimeChanged(wxDateEvent& event) {
m_cbEtdPresent->SetValue(
true); }
418 void OnTideStationCombobox(wxCommandEvent& event);
419 void OnClose(wxCloseEvent& event);
420 void ShowTidesBtnClicked(wxCommandEvent& event);
421 void OnAddLink(wxCommandEvent& event);
424 MarkInfoDlg(wxWindow* parent, wxWindowID
id = wxID_ANY,
425 const wxString& title = _(
"Waypoint Properties"),
426 const wxPoint& pos = wxDefaultPosition,
427 const wxSize& size = wxSize(-1, -1),
428 long style = FRAME_WITH_LINKS_STYLE);
432 void RecalculateSize();
433 RoutePoint* GetRoutePoint() {
return m_pRoutePoint; }
434 void SetColorScheme(ColorScheme cs);
437 void SetBulkEdit(
bool bBulkEdit);
438 void UpdateHtmlList();
439 void SetDialogTitle(
const wxString& title) { SetTitle(title); }
440 bool UpdateProperties(
bool positionOnly =
false);
443 void OnActivate(wxActivateEvent& event);
445 wxSimpleHtmlListBox* GetSimpleBox() {
446 return dynamic_cast<wxSimpleHtmlListBox*
>(m_htmlList);
448 void OnHtmlCellClicked(wxHtmlCellEvent& event);