95 static bool instanceFlag;
97 TrackPropDlg(wxWindow* parent, wxWindowID
id,
const wxString& title,
98 const wxPoint& pos,
const wxSize& size,
long style);
101 Track* m_pExtendTrack;
110 bool IsThisTrackExtendable();
111 bool SaveChanges(
void);
113 HyperlinkList* m_pMyLinkList;
114 void OnHyperLinkClick(wxHyperlinkEvent& event);
115 wxHyperlinkCtrl* m_pEditedLink;
116 void PopupMenuHandler(wxCommandEvent& event);
117 void OnActivate(wxActivateEvent& event);
120 wxNotebook* m_notebook1;
121 wxScrolledWindow* m_panelBasic;
122 wxStaticText* m_stName;
124 wxStaticText* m_stFrom;
126 wxStaticText* m_stTo;
128 wxCheckBox* m_cbShow;
129 wxStaticText* m_stColor;
131 wxStaticText* m_stStyle;
133 wxStaticText* m_stWidth;
135 wxStaticText* m_stTotDistance;
136 wxTextCtrl* m_tTotDistance;
137 wxStaticText* m_stAvgSpeed;
138 wxTextCtrl* m_tAvgSpeed;
139 wxStaticText* m_stTimeEnroute;
140 wxTextCtrl* m_tTimeEnroute;
141 wxStaticText* m_stShowTime;
142 wxRadioButton* m_rbShowTimeUTC;
155 wxScrolledWindow* m_panelAdvanced;
156 wxStaticText* m_stDescription;
157 wxTextCtrl* m_tDescription;
158 wxScrolledWindow* m_scrolledWindowLinks;
159 wxHyperlinkCtrl* m_hyperlink1;
161 wxButton* m_buttonAddLink;
162 wxToggleButton* m_toggleBtnEdit;
163 wxStaticText* m_staticTextEditEnabled;
164 wxStdDialogButtonSizer* m_sdbBtmBtnsSizer;
165 wxButton* m_sdbBtmBtnsSizerOK;
166 wxButton* m_sdbBtmBtnsSizerCancel;
167 wxStaticBoxSizer* sbSizerLinks;
168 wxBoxSizer* bSizerLinks;
170 wxButton* m_sdbBtmBtnsSizerPrint;
171 wxButton* m_sdbBtmBtnsSizerSplit;
172 wxButton* m_sdbBtmBtnsSizerExtend;
173 wxButton* m_sdbBtmBtnsSizerToRoute;
174 wxButton* m_sdbBtmBtnsSizerExport;
176 wxMenuItem* m_menuItemEdit;
177 wxMenuItem* m_menuItemAdd;
178 wxMenuItem* m_menuItemDelete;
180 wxScrolledWindow* itemDialog1;
184 void OnCancelBtnClick(wxCommandEvent& event);
185 void OnOKBtnClick(wxCommandEvent& event);
186 void OnPrintBtnClick(wxCommandEvent& event);
187 void OnSplitBtnClick(wxCommandEvent& event);
188 void OnExtendBtnClick(wxCommandEvent& event);
189 void OnToRouteBtnClick(wxCommandEvent& event);
190 void OnExportBtnClick(wxCommandEvent& event);
191 void OnTrackPropCopyTxtClick(wxCommandEvent& event);
192 void OnTrackPropListClick(wxListEvent& event);
193 void OnTrackPropRightClick(wxListEvent& event);
194 void OnTrackPropMenuSelected(wxCommandEvent& event);
196 void OnEditLink(wxCommandEvent& event);
197 void OnAddLink(wxCommandEvent& event);
198 void OnEditLinkToggle(wxCommandEvent& event);
199 void OnShowTimeTZ(wxCommandEvent& event);
200 void CreateControls(
void);
201 void CreateControlsCompact(
void);
205 wxWindow* parent, wxWindowID
id = wxID_ANY,
206 const wxString& title = _(
"Track properties"),
207 const wxPoint& pos = wxDefaultPosition,
208 const wxSize& size = wxSize(680, 440),
209 long style = FRAME_WITH_LINKS_STYLE);
210 static bool getInstanceFlag() {
return instanceFlag; }
213 void m_hyperlink1OnContextMenu(wxMouseEvent& event) {
214 m_hyperlink1->PopupMenu(m_menuLink, event.GetPosition());
217 void SetTrackAndUpdate(
Track* pt);
219 void InitializeList();
220 Track* GetTrack() {
return m_pTrack; }
222 void RecalculateSize(
void);
226 void m_hyperlinkContextMenu(wxMouseEvent& event);