case MAP_MODE_DRAW_ROUTE:
map_draw_route(event->x, event->y);
break;
+ case MAP_MODE_SET_ROUTE_FROM:
+ case MAP_MODE_SET_ROUTE_POINT:
+ case MAP_MODE_SET_ROUTE_TO:
+ break;
}
map_center_unit(x2unit((gint) (event->x + 0.5)),
typedef enum {
MAP_MODE_NORMAL=0,
- MAP_MODE_DRAW_TRACK=1,
- MAP_MODE_DRAW_ROUTE=2
+ MAP_MODE_DRAW_TRACK,
+ MAP_MODE_DRAW_ROUTE,
+ MAP_MODE_SET_ROUTE_FROM,
+ MAP_MODE_SET_ROUTE_POINT,
+ MAP_MODE_SET_ROUTE_TO,
+ MAP_MODES
} MapMode;
/** VARIABLES FOR MAINTAINING STATE OF THE CURRENT VIEW. */