26 #ifndef _ROUTE_POINT_GUI_H
27 #define _ROUTE_POINT_GUI_H
29 #include <wx/gdicmn.h>
33 #include "model/route_point.h"
34 #include "SendToGpsDlg.h"
42 bool boverride_viz =
false);
43 void CalculateDCRect(wxDC &dc,
ChartCanvas *canvas, wxRect *prect);
44 bool IsVisibleSelectable(
ChartCanvas *canvas,
bool boverrideViz =
false);
45 wxPoint2DDouble GetDragHandlePoint(
ChartCanvas *canvas);
46 void SetPointFromDraghandlePoint(
ChartCanvas *canvas,
double lat,
double lon);
47 void SetPointFromDraghandlePoint(
ChartCanvas *canvas,
int x,
int y);
48 void PresetDragOffset(
ChartCanvas *canvas,
int x,
int y);
51 bool SendToGPS(
const wxString &com_name,
SendToGpsDlg *dialog);
52 void ReLoadIcon(
void);
53 void EnableDragHandle(
bool bEnable);
54 int GetIconImageIndex();
55 wxBitmap* GetIconBitmap() {
56 if (m_point.m_IconIsDirty) ReLoadIcon();
57 return m_point.m_pbmIcon;
62 bool use_cached_screen_coords =
false,
bool vizOverride =
false);
66 wxPoint2DDouble computeDragHandlePoint(
ChartCanvas *canvas);
Route "Send to GPS..." Dialog Definition.