10#include <wx/artprov.h>
11#include <wx/xrc/xmlres.h>
14#include <wx/stattext.h>
18#include <wx/settings.h>
19#include <wx/textctrl.h>
21#include <wx/datectrl.h>
22#include <wx/dateevt.h>
23#include <wx/timectrl.h>
25#include <wx/wrapsizer.h>
26#include <wx/dataview.h>
32#include <wx/hyperlink.h>
35#include <wx/scrolwin.h>
36#include <wx/statbox.h>
37#include <wx/notebook.h>
43#include "time_textbox.h"
46#include "observable_evtvar.h"
60 wxNotebook* m_ntbRteProp;
62 wxStaticText* m_stName;
64 wxStaticText* m_stFrom;
68 wxStaticText* m_stDistTotal;
69 wxTextCtrl* m_tcDistance;
70 wxStaticText* m_stPlanSpeed;
71 wxTextCtrl* m_tcPlanSpeed;
72 wxStaticText* m_stEnroute;
73 wxTextCtrl* m_tcEnroute;
74 wxStaticText* m_stDeparture;
75 wxDatePickerCtrl* m_dpDepartureDate;
79 wxTimePickerCtrl* m_tpDepartureTime;
81 wxStaticText* m_stTimeZone;
82 wxChoice* m_choiceTimezone;
83 wxStaticText* m_staticTextColor;
84 wxChoice* m_choiceColor;
85 wxStaticText* m_stStyle;
86 wxChoice* m_choiceStyle;
87 wxStaticText* m_stWidth;
88 wxChoice* m_choiceWidth;
89 wxDataViewListCtrl* m_dvlcWaypoints;
90 wxDataViewColumn* m_dataViewListColumnLeg;
91 wxDataViewColumn* m_dataViewListColumnToWpt;
92 wxDataViewColumn* m_dataViewListColumnDistance;
93 wxDataViewColumn* m_dataViewListColumnBearing;
94 wxDataViewColumn* m_dataViewListColumnTotalDistance;
95 wxDataViewColumn* m_dataViewListColumnLat;
96 wxDataViewColumn* m_dataViewListColumnLon;
97 wxDataViewColumn* m_dataViewListColumnETE;
98 wxDataViewColumn* m_dataViewListColumnETA;
99 wxDataViewColumn* m_dataViewListColumnSpeed;
100 wxDataViewColumn* m_dataViewListColumnNTE;
101 wxDataViewColumn* m_dataViewListColumnDesc;
102 wxDataViewColumn* m_dataViewListColumnCourse;
103 wxDataViewColumn* m_dataViewListColumnETD;
104 wxDataViewColumn* m_dataViewListColumnEmpty;
105 wxPanel* m_pnlAdvanced;
106 wxStaticText* m_stDescription;
107 wxTextCtrl* m_tcDescription;
108 wxScrolledWindow* m_scrolledWindowLinks;
109 wxBoxSizer* bSizerLinks;
110 wxHyperlinkCtrl* m_hyperlink1;
112 wxButton* m_btnAddLink;
113 wxToggleButton* m_toggleBtnEdit;
114 wxStaticText* m_stEditEnabled;
116 wxButton* m_btnPrint;
117 wxButton* m_btnExtend;
118 wxButton* m_btnSplit;
119 wxStdDialogButtonSizer* m_sdbSizerBtns;
120 wxButton* m_sdbSizerBtnsOK;
121 wxButton* m_sdbSizerBtnsCancel;
124 virtual void RoutePropDlgOnClose(wxCloseEvent& event) {
event.Skip(); }
125 virtual void RoutePropDlgOnSize(wxSizeEvent& event) {
event.Skip(); }
126 virtual void RoutePropDlgOnNotebookPageChanged(wxNotebookEvent& event) {
129 virtual void PlanSpeedOnKillFocus(wxFocusEvent& event) {
event.Skip(); }
130 virtual void PlanSpeedOnTextEnter(wxCommandEvent& event) {
event.Skip(); }
131 virtual void DepartureDateOnDateChanged(wxDateEvent& event) {
event.Skip(); }
132 virtual void DepartureTimeOnTimeChanged(wxDateEvent& event) {
event.Skip(); }
133 virtual void TimezoneOnChoice(wxCommandEvent& event) {
event.Skip(); }
134 virtual void WaypointsOnDataViewListCtrlItemContextMenu(
135 wxDataViewEvent& event) {
138 virtual void WaypointsOnDataViewListCtrlItemEditingDone(
139 wxDataViewEvent& event) {
142 virtual void WaypointsOnDataViewListCtrlItemValueChanged(
143 wxDataViewEvent& event) {
146 virtual void WaypointsOnDataViewListCtrlSelectionChanged(
147 wxDataViewEvent& event) {
150 virtual void ItemEditOnMenuSelection(wxCommandEvent& event) {
event.Skip(); }
151 virtual void ItemAddOnMenuSelection(wxCommandEvent& event) {
event.Skip(); }
152 virtual void ItemDeleteOnMenuSelection(wxCommandEvent& event) {
155 virtual void AddLinkOnButtonClick(wxCommandEvent& event) {
event.Skip(); }
156 virtual void BtnEditOnToggleButton(wxCommandEvent& event) {
event.Skip(); }
157 virtual void PrintOnButtonClick(wxCommandEvent& event) {
event.Skip(); }
158 virtual void ExtendOnButtonClick(wxCommandEvent& event) {
event.Skip(); }
159 virtual void SplitOnButtonClick(wxCommandEvent& event) {
event.Skip(); }
160 virtual void BtnsOnCancelButtonClick(wxCommandEvent& event) {
event.Skip(); }
161 virtual void BtnsOnOKButtonClick(wxCommandEvent& event) {
event.Skip(); }
164 RoutePropDlg(wxWindow* parent, wxWindowID
id = wxID_ANY,
165 const wxString& title = _(
"Route Properties"),
166 const wxPoint& pos = wxDefaultPosition,
167 const wxSize& size = wxSize(550, 450),
168 long style = wxDEFAULT_FRAME_STYLE | wxFRAME_FLOAT_ON_PARENT |
173 void m_hyperlink1OnContextMenu(wxMouseEvent& event) {
174 m_hyperlink1->PopupMenu(m_menuLink, event.GetPosition());
177 void m_scrolledWindowLinksOnContextMenu(wxMouseEvent& event) {
178 m_scrolledWindowLinks->PopupMenu(m_menuLinks, event.GetPosition());
181 void OnKeyChar(wxKeyEvent& event);
183 DECLARE_EVENT_TABLE()
Keeps listening over it's lifespan, removes itself on destruction.