OpenCPN Partial API docs
RoutePropDlg.h
1 // 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 #include "model/routeman.h"
48 
49 #ifdef __WXOSX__
50 #define DIALOG_PARENT wxFrame
51 #else
52 #define DIALOG_PARENT wxDialog
53 #endif
54 
56 
57 
58 
62 class RoutePropDlg : public DIALOG_PARENT {
63 private:
64  ObservableListener navobj_del_track_listener;
65  ObservableListener navobj_del_route_listener;
66 
67 
68 protected:
69  wxNotebook* m_ntbRteProp;
70  wxPanel* m_pnlBasic;
71  wxStaticText* m_stName;
72  wxTextCtrl* m_tcName;
73  wxStaticText* m_stFrom;
74  wxTextCtrl* m_tcFrom;
75  wxStaticText* m_stTo;
76  wxTextCtrl* m_tcTo;
77  wxStaticText* m_stDistTotal;
78  wxTextCtrl* m_tcDistance;
79  wxStaticText* m_stPlanSpeed;
80  wxTextCtrl* m_tcPlanSpeed;
81  wxStaticText* m_stEnroute;
82  wxTextCtrl* m_tcEnroute;
83  wxStaticText* m_stDeparture;
84  wxDatePickerCtrl* m_dpDepartureDate;
85 #ifdef __WXGTK__
86  TimeCtrl* m_tpDepartureTime;
87 #else
88  wxTimePickerCtrl* m_tpDepartureTime;
89 #endif
90  wxStaticText* m_stTimeZone;
91  wxChoice* m_choiceTimezone;
92  wxStaticText* m_staticTextColor;
93  wxChoice* m_choiceColor;
94  wxStaticText* m_stStyle;
95  wxChoice* m_choiceStyle;
96  wxStaticText* m_stWidth;
97  wxChoice* m_choiceWidth;
98  wxDataViewListCtrl* m_dvlcWaypoints;
99  wxDataViewColumn* m_dataViewListColumnLeg;
100  wxDataViewColumn* m_dataViewListColumnToWpt;
101  wxDataViewColumn* m_dataViewListColumnDistance;
102  wxDataViewColumn* m_dataViewListColumnBearing;
103  wxDataViewColumn* m_dataViewListColumnTotalDistance;
104  wxDataViewColumn* m_dataViewListColumnLat;
105  wxDataViewColumn* m_dataViewListColumnLon;
106  wxDataViewColumn* m_dataViewListColumnETE;
107  wxDataViewColumn* m_dataViewListColumnETA;
108  wxDataViewColumn* m_dataViewListColumnSpeed;
109  wxDataViewColumn* m_dataViewListColumnNTE;
110  wxDataViewColumn* m_dataViewListColumnDesc;
111  wxDataViewColumn* m_dataViewListColumnCourse;
112  wxDataViewColumn* m_dataViewListColumnETD;
113  wxDataViewColumn* m_dataViewListColumnEmpty;
114  wxPanel* m_pnlAdvanced;
115  wxStaticText* m_stDescription;
116  wxTextCtrl* m_tcDescription;
117  wxScrolledWindow* m_scrolledWindowLinks;
118  wxBoxSizer* bSizerLinks;
119  wxHyperlinkCtrl* m_hyperlink1;
120  wxMenu* m_menuLink;
121  wxButton* m_btnAddLink;
122  wxToggleButton* m_toggleBtnEdit;
123  wxStaticText* m_stEditEnabled;
124  wxMenu* m_menuLinks;
125  wxButton* m_btnPrint;
126  wxButton* m_btnExtend;
127  wxButton* m_btnSplit;
128  wxStdDialogButtonSizer* m_sdbSizerBtns;
129  wxButton* m_sdbSizerBtnsOK;
130  wxButton* m_sdbSizerBtnsCancel;
131 
132  // Virtual event handlers, overide them in your derived class
133  virtual void RoutePropDlgOnClose(wxCloseEvent& event) { event.Skip(); }
134  virtual void RoutePropDlgOnSize(wxSizeEvent& event) { event.Skip(); }
135  virtual void RoutePropDlgOnNotebookPageChanged(wxNotebookEvent& event) {
136  event.Skip();
137  }
138  virtual void PlanSpeedOnKillFocus(wxFocusEvent& event) { event.Skip(); }
139  virtual void PlanSpeedOnTextEnter(wxCommandEvent& event) { event.Skip(); }
140  virtual void DepartureDateOnDateChanged(wxDateEvent& event) { event.Skip(); }
141  virtual void DepartureTimeOnTimeChanged(wxDateEvent& event) { event.Skip(); }
142  virtual void TimezoneOnChoice(wxCommandEvent& event) { event.Skip(); }
143  virtual void WaypointsOnDataViewListCtrlItemContextMenu(
144  wxDataViewEvent& event) {
145  event.Skip();
146  }
147  virtual void WaypointsOnDataViewListCtrlItemEditingDone(
148  wxDataViewEvent& event) {
149  event.Skip();
150  }
151  virtual void WaypointsOnDataViewListCtrlItemValueChanged(
152  wxDataViewEvent& event) {
153  event.Skip();
154  }
155  virtual void WaypointsOnDataViewListCtrlSelectionChanged(
156  wxDataViewEvent& event) {
157  event.Skip();
158  }
159  virtual void ItemEditOnMenuSelection(wxCommandEvent& event) { event.Skip(); }
160  virtual void ItemAddOnMenuSelection(wxCommandEvent& event) { event.Skip(); }
161  virtual void ItemDeleteOnMenuSelection(wxCommandEvent& event) {
162  event.Skip();
163  }
164  virtual void AddLinkOnButtonClick(wxCommandEvent& event) { event.Skip(); }
165  virtual void BtnEditOnToggleButton(wxCommandEvent& event) { event.Skip(); }
166  virtual void PrintOnButtonClick(wxCommandEvent& event) { event.Skip(); }
167  virtual void ExtendOnButtonClick(wxCommandEvent& event) { event.Skip(); }
168  virtual void SplitOnButtonClick(wxCommandEvent& event) { event.Skip(); }
169  virtual void BtnsOnCancelButtonClick(wxCommandEvent& event) { event.Skip(); }
170  virtual void BtnsOnOKButtonClick(wxCommandEvent& event) { event.Skip(); }
171 
172 public:
173  RoutePropDlg(wxWindow* parent, wxWindowID id = wxID_ANY,
174  const wxString& title = _("Route Properties"),
175  const wxPoint& pos = wxDefaultPosition,
176  const wxSize& size = wxSize(550, 450),
177  long style = wxDEFAULT_FRAME_STYLE | wxFRAME_FLOAT_ON_PARENT |
178  wxTAB_TRAVERSAL);
179 
180  ~RoutePropDlg();
181 
182  static RoutePropDlgCtx GetDlgCtx();
183 
184  void m_hyperlink1OnContextMenu(wxMouseEvent& event) {
185  m_hyperlink1->PopupMenu(m_menuLink, event.GetPosition());
186  }
187 
188  void m_scrolledWindowLinksOnContextMenu(wxMouseEvent& event) {
189  m_scrolledWindowLinks->PopupMenu(m_menuLinks, event.GetPosition());
190  }
191 
192  void OnKeyChar(wxKeyEvent& event);
193 
194  DECLARE_EVENT_TABLE()
195 };
Keeps listening over it's lifespan, removes itself on destruction.
Definition: observable.h:133
Class RoutePropDlg.
Definition: RoutePropDlg.h:62
Callbacks for RoutePropDlg.
Definition: routeman.h:83