gboolean
menu_cb_route_distnext(GtkAction *action)
{
-path_show_distance_to_next(_route);
+path_show_distance_to_next_waypoint(_route);
return TRUE;
}
}
break;
case CUSTOM_ACTION_ROUTE_DISTNEXT:
- path_show_distance_to_next(_route);
+ path_show_distance_to_next_waypoint(_route);
break;
case CUSTOM_ACTION_ROUTE_DISTLAST:
path_show_distance_to_last(_route);
*/
/**
- * Contains extra path functions.
+ * Contains extra path functions, specific to mapper.
*/
#include <config.h>
* next waypoint.
*/
gboolean
-route_show_distance_to(Path *route, Point *point)
+path_show_distance_to(Path *route, Point *point)
{
gchar buffer[80];
gdouble lat, lon;
}
/**
- * route_show_distance_to_next_waypoint:
+ * path_show_distance_to_next_waypoint:
+ *
+ * Display distance to next waypoint in given route
*
*/
void
-route_show_distance_to_next_waypoint(Path *route)
+path_show_distance_to_next_waypoint(Path *route)
{
g_return_if_fail(route);
-if (!route_show_distance_to(route, NULL))
+if (!path_show_distance_to(route, NULL))
MACRO_BANNER_SHOW_INFO(_window, _("There is no next waypoint."));
}
/**
- * route_show_distance_to_last:
+ * path_show_distance_to_last:
+ *
+ * Show distance to last point in given route
*
*/
void
-route_show_distance_to_last(Path *route)
+path_show_distance_to_last(Path *route)
{
g_return_if_fail(route);
gboolean path_insert_mark_ask(Path *track);
void route_autoroute_check(Path *route);
-gboolean route_show_distance_to(Path *route, Point *point);
-void route_show_distance_to_last(Path *route);
-void route_show_distance_to_next(Path *route);
+
+gboolean path_show_distance_to(Path *route, Point *point);
+void path_show_distance_to_last(Path *route);
+void path_show_distance_to_next(Path *route);
gboolean track_save(Path *track);
gboolean track_open(Path *track);