OpenCPN Partial API docs
Loading...
Searching...
No Matches
RoutePropDlg.h
1
2// C++ code generated with wxFormBuilder (version Oct 26 2018)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
8#pragma once
9
10#include <wx/artprov.h>
11#include <wx/xrc/xmlres.h>
12#include <wx/intl.h>
13#include <wx/string.h>
14#include <wx/stattext.h>
15#include <wx/gdicmn.h>
16#include <wx/font.h>
17#include <wx/colour.h>
18#include <wx/settings.h>
19#include <wx/textctrl.h>
20#include <wx/sizer.h>
21#include <wx/datectrl.h>
22#include <wx/dateevt.h>
23#include <wx/timectrl.h>
24#include <wx/choice.h>
25#include <wx/wrapsizer.h>
26#include <wx/dataview.h>
27#include <wx/panel.h>
28#include <wx/bitmap.h>
29#include <wx/image.h>
30#include <wx/icon.h>
31#include <wx/menu.h>
32#include <wx/hyperlink.h>
33#include <wx/button.h>
34#include <wx/tglbtn.h>
35#include <wx/scrolwin.h>
36#include <wx/statbox.h>
37#include <wx/notebook.h>
38#include <wx/frame.h>
39
40#ifdef __WXGTK__
41// wxTimePickerCtrl is completely broken in Gnome based desktop environments as
42// of wxGTK 3.0
43#include "time_textbox.h"
44#endif
45
46#include "observable_evtvar.h"
47
49
53class RoutePropDlg : public wxFrame {
54private:
55 ObservableListener navobj_del_track_listener;
56 ObservableListener navobj_del_route_listener;
57
58
59protected:
60 wxNotebook* m_ntbRteProp;
61 wxPanel* m_pnlBasic;
62 wxStaticText* m_stName;
63 wxTextCtrl* m_tcName;
64 wxStaticText* m_stFrom;
65 wxTextCtrl* m_tcFrom;
66 wxStaticText* m_stTo;
67 wxTextCtrl* m_tcTo;
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;
76#ifdef __WXGTK__
77 TimeCtrl* m_tpDepartureTime;
78#else
79 wxTimePickerCtrl* m_tpDepartureTime;
80#endif
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;
111 wxMenu* m_menuLink;
112 wxButton* m_btnAddLink;
113 wxToggleButton* m_toggleBtnEdit;
114 wxStaticText* m_stEditEnabled;
115 wxMenu* m_menuLinks;
116 wxButton* m_btnPrint;
117 wxButton* m_btnExtend;
118 wxButton* m_btnSplit;
119 wxStdDialogButtonSizer* m_sdbSizerBtns;
120 wxButton* m_sdbSizerBtnsOK;
121 wxButton* m_sdbSizerBtnsCancel;
122
123 // Virtual event handlers, overide them in your derived class
124 virtual void RoutePropDlgOnClose(wxCloseEvent& event) { event.Skip(); }
125 virtual void RoutePropDlgOnSize(wxSizeEvent& event) { event.Skip(); }
126 virtual void RoutePropDlgOnNotebookPageChanged(wxNotebookEvent& event) {
127 event.Skip();
128 }
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) {
136 event.Skip();
137 }
138 virtual void WaypointsOnDataViewListCtrlItemEditingDone(
139 wxDataViewEvent& event) {
140 event.Skip();
141 }
142 virtual void WaypointsOnDataViewListCtrlItemValueChanged(
143 wxDataViewEvent& event) {
144 event.Skip();
145 }
146 virtual void WaypointsOnDataViewListCtrlSelectionChanged(
147 wxDataViewEvent& event) {
148 event.Skip();
149 }
150 virtual void ItemEditOnMenuSelection(wxCommandEvent& event) { event.Skip(); }
151 virtual void ItemAddOnMenuSelection(wxCommandEvent& event) { event.Skip(); }
152 virtual void ItemDeleteOnMenuSelection(wxCommandEvent& event) {
153 event.Skip();
154 }
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(); }
162
163public:
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 |
169 wxTAB_TRAVERSAL);
170
172
173 void m_hyperlink1OnContextMenu(wxMouseEvent& event) {
174 m_hyperlink1->PopupMenu(m_menuLink, event.GetPosition());
175 }
176
177 void m_scrolledWindowLinksOnContextMenu(wxMouseEvent& event) {
178 m_scrolledWindowLinks->PopupMenu(m_menuLinks, event.GetPosition());
179 }
180
181 void OnKeyChar(wxKeyEvent& event);
182
183 DECLARE_EVENT_TABLE()
184};
Keeps listening over it's lifespan, removes itself on destruction.
Definition: observable.h:143
Class RoutePropDlg.
Definition: RoutePropDlg.h:53