]> err.no Git - mapper/commitdiff
Add more map click modes
authorKaj-Michael Lang <milang@onion.tal.org>
Mon, 16 Jul 2007 08:54:03 +0000 (11:54 +0300)
committerKaj-Michael Lang <milang@onion.tal.org>
Mon, 16 Jul 2007 08:54:03 +0000 (11:54 +0300)
src/map.c
src/map.h

index 0f96c5343d7b6a0221e11289acbc692e114cc8f7..ec1a4cec063d475647e0fe2a73d58c6191341c9d 100644 (file)
--- 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)),
index 85c26b28a1b3823bb06eeecdf13114264d81c198..523ae5d5a36d1ecafb2b8f021fb8f633292d3019 100644 (file)
--- a/src/map.h
+++ b/src/map.h
 
 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. */