25#ifndef _ROUTEPROPDLGIMPL_H_
26#define _ROUTEPROPDLGIMPL_H_
28#include "RoutePropDlg.h"
30#include <wx/dataview.h>
31#include <wx/dvrenderers.h>
32#include "ocpn_types.h"
33#include "color_types.h"
35#include "LinkPropDlg.h"
42 void SetRouteAndUpdate(
Route* pR,
bool only_points = FALSE);
43 Route* GetRoute(
void) {
return m_pRoute; }
44 void SetEnroutePoint(
RoutePoint* rp) {
return; }
46 void SetColorScheme(ColorScheme cs);
47 void RecalculateSize(
void);
48 static bool getInstanceFlag();
51 void RoutePropDlgOnClose(wxCloseEvent& event) {
57 void RoutePropDlgOnSize(wxSizeEvent& event) {
event.Skip(); }
58 void RoutePropDlgOnNotebookPageChanged(wxNotebookEvent& event) {
61 void PlanSpeedOnKillFocus(wxFocusEvent& event);
62 void PlanSpeedOnTextEnter(wxCommandEvent& event);
63 void DepartureDateOnDateChanged(wxDateEvent& event);
64 void DepartureTimeOnTimeChanged(wxDateEvent& event);
65 void TimezoneOnChoice(wxCommandEvent& event);
66 void WaypointsOnDataViewListCtrlItemContextMenu(wxDataViewEvent& event);
67 void WaypointsOnDataViewListCtrlItemEditingDone(wxDataViewEvent& event);
68 void WaypointsOnDataViewListCtrlItemValueChanged(wxDataViewEvent& event);
69 void WaypointsOnDataViewListCtrlSelectionChanged(wxDataViewEvent& event);
70 void PrintOnButtonClick(wxCommandEvent& event);
71 void ExtendOnButtonClick(wxCommandEvent& event);
72 void SplitOnButtonClick(wxCommandEvent& event);
73 void BtnsOnCancelButtonClick(wxCommandEvent& event) {
78 void BtnsOnOKButtonClick(wxCommandEvent& event);
79 void OnRoutePropMenuSelected(wxCommandEvent& event);
80 void OnRoutepropCopyTxtClick(wxCommandEvent& event);
81 void ItemEditOnMenuSelection(wxCommandEvent& event);
82 void ItemAddOnMenuSelection(wxCommandEvent& event);
84 void AddLinkOnButtonClick(wxCommandEvent& event);
85 void BtnEditOnToggleButton(wxCommandEvent& event);
86 void OnHyperlinkClick(wxHyperlinkEvent& event);
87 void HyperlinkContextMenu(wxMouseEvent& event);
88 void m_scrolledWindowLinksOnContextMenu(wxMouseEvent& event);
90 wxDateTime GetDepartureTS();
94 void OnActivate(wxActivateEvent& event);
97 const wxString& title = _(
"Route Properties"),
98 const wxPoint& pos = wxDefaultPosition,
99 const wxSize& size = wxSize(550, 450),
100 long style = FRAME_WITH_LINKS_STYLE );
103 static bool instanceFlag;
111 Route* m_pExtendRoute;
117 wxDataViewColumn* etd_col;
119 wxHyperlinkCtrl* m_pEditedLink;
121 bool IsThisRouteExtendable();
122 wxDateTime toUsrDateTime(
const wxDateTime ts,
const int format,
123 const double lon = INFINITY - INFINITY);
124 wxDateTime fromUsrDateTime(
const wxDateTime ts,
const int format,
125 const double lon = INFINITY - INFINITY);
126 wxString MakeTideInfo(wxString stationName,
double lat,
double lon,
void ItemDeleteOnMenuSelection(wxCommandEvent &event)