gboolean
menu_cb_track_insert_break(GtkAction *action)
{
-path_insert_break(_track);
+path_add_break(_track);
path_tree_view_update_store(track_tree_view, _track);
return TRUE;
}
gboolean
menu_cb_track_insert_mark(GtkAction *action)
{
-if (path_insert_mark(_track)) {
+if (path_insert_mark_ask(_track))
path_tree_view_update_store(track_tree_view, _track);
-}
return TRUE;
}
/*
- * This file is part of mapper
+ * This file is part of Mapper
*
* Copyright (C) 2007-2008 Kaj-Michael Lang
*
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+
+/**
+ * Contains extra path functions.
+ */
+
#include <config.h>
#include <libgnomevfs/gnome-vfs.h>
}
/**
- *
+ * path_show_distance_from:
*
*/
void
}
/**
+ * route_show_distance_to:
+ *
* Show the distance from the current GPS location to the given point,
* following the route. If point is NULL, then the distance is shown to the
* next waypoint.
return TRUE;
}
+/**
+ * route_show_distance_to_next_waypoint:
+ *
+ */
void
route_show_distance_to_next_waypoint(Path *route)
{
MACRO_BANNER_SHOW_INFO(_window, _("There is no next waypoint."));
}
+/**
+ * route_show_distance_to_last:
+ *
+ */
void
route_show_distance_to_last(Path *route)
{
*
*/
gboolean
-track_insert_mark(Path *track)
+path_insert_mark_ask(Path *track)
{
gchar tmp1[16], tmp2[16], *p_latlon;
GtkWidget *dialog;
gboolean route_clear(Path *route);
gboolean path_clear_ask(Path *path, const gchar *msg);
+gboolean path_insert_mark_ask(Path *track);
void route_autoroute_check(Path *route);
gboolean route_show_distance_to(Path *route, Point *point);