X-Git-Url: https://git.street.me.uk/andy/viking.git/blobdiff_plain/e4afc73a345f54f278134db0a9641394411410be..80471a6a905e00bf80ad04fa2061f88ea81f15cb:/src/viktrwlayer.h diff --git a/src/viktrwlayer.h b/src/viktrwlayer.h index 7210a91a..28514c87 100644 --- a/src/viktrwlayer.h +++ b/src/viktrwlayer.h @@ -22,6 +22,11 @@ #ifndef _VIKING_TRWLAYER_H #define _VIKING_TRWLAYER_H +#include "viklayer.h" +#include "vikviewport.h" +#include "vikwaypoint.h" +#include "viktrack.h" + #define VIK_TRW_LAYER_TYPE (vik_trw_layer_get_type ()) #define VIK_TRW_LAYER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VIK_TRW_LAYER_TYPE, VikTrwLayer)) #define VIK_TRW_LAYER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VIK_TRW_LAYER_TYPE, VikTrwLayerClass)) @@ -39,8 +44,13 @@ GType vik_trw_layer_get_type (); typedef struct _VikTrwLayer VikTrwLayer; -/* TODO 0.0.8: _none_ of this should be here... interfaces, remember... */ +/* These are meant for use in file loaders (gpspoint.c, gpx.c, etc). + * These copy the name, so you should free it if necessary. */ +void vik_trw_layer_filein_add_waypoint ( VikTrwLayer *vtl, gchar *name, VikWaypoint *wp ); +void vik_trw_layer_filein_add_track ( VikTrwLayer *vtl, gchar *name, VikTrack *tr ); + +/* TODO 0.0.8: _none_ of this should be here... interfaces, remember... */ VikTrwLayer *vik_trw_layer_new ( gint drawmode ); void vik_trw_layer_draw ( VikTrwLayer *l, gpointer data ); void vik_trw_layer_free ( VikTrwLayer *trwlayer ); @@ -54,7 +64,6 @@ VikWaypoint *vik_trw_layer_get_waypoint ( VikTrwLayer *vtl, gchar *name ); VikTrack *vik_trw_layer_get_track ( VikTrwLayer *vtl, gchar *name ); gboolean vik_trw_layer_delete_waypoint ( VikTrwLayer *vtl, const gchar *wp_name ); gboolean vik_trw_layer_delete_track ( VikTrwLayer *vtl, const gchar *trk_name ); -void vik_trw_layer_move_iter ( VikTrwLayer *vtl_src, VikTrwLayer *vtl_dest, GtkTreeIter *src_item_iter, GtkTreeIter *dest_iter ); const gchar *vik_trw_layer_sublayer_rename_request ( VikTrwLayer *l, const gchar *newname, gpointer vlp, gint subtype, gpointer sublayer, GtkTreeIter *iter ); gboolean vik_trw_layer_sublayer_toggle_visible ( VikTrwLayer *l, gint subtype, gpointer sublayer ); @@ -69,5 +78,8 @@ gboolean vik_trw_layer_new_waypoint ( VikTrwLayer *vtl, GtkWindow *w, const VikC VikCoordMode vik_trw_layer_get_coord_mode ( VikTrwLayer *vtl ); +void vik_trw_layer_delete_all_waypoints ( VikTrwLayer *vtl ); +void vik_trw_layer_delete_all_tracks ( VikTrwLayer *vtl ); +void trw_layer_cancel_tps_of_track ( VikTrwLayer *vtl, const gchar *trk_name ); #endif