From 4bbf05be3b9cfe0c5506201159a771411bfa3049 Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Mon, 16 Jul 2007 11:54:03 +0300 Subject: [PATCH] Add more map click modes --- src/map.c | 4 ++++ src/map.h | 8 ++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/map.c b/src/map.c index 0f96c53..ec1a4ce 100644 --- a/src/map.c +++ b/src/map.c @@ -1427,6 +1427,10 @@ gboolean map_cb_button_release(GtkWidget * widget, GdkEventButton * event) 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)), diff --git a/src/map.h b/src/map.h index 85c26b2..523ae5d 100644 --- a/src/map.h +++ b/src/map.h @@ -23,8 +23,12 @@ 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. */ -- 2.39.5