]> Pileus Git - aweather/blobdiff - src/plugins/gps-plugin.h
Add basic GPS track support.
[aweather] / src / plugins / gps-plugin.h
index fb04eab00e526bbfa1d8fc1da8284d43764cd0f0..6517cddfefec69bee759c53f1ac785590393832b 100644 (file)
@@ -49,6 +49,7 @@ struct gps_ui_t {
     /* control frame */
     GtkWidget *gps_follow_checkbox;
     GtkWidget *gps_track_checkbox;
+    GtkWidget *gps_clear_button;
 
     /* log frame */
     GtkWidget *gps_log_checkbox;
@@ -61,6 +62,16 @@ struct gps_ui_t {
     GtkWidget *gps_rangering_checkbox;
 };
 
+struct gps_track_t {
+       /* track storage */
+       gboolean active;        /* Display track history */
+       gdouble (**points)[3];
+       GritsLine *line;
+       guint cur_point;
+       guint num_points;
+       guint cur_group;
+};
+
 /* GPS private data */
 struct _GritsPluginGPS {
        GObject parent_instance;
@@ -78,6 +89,7 @@ struct _GritsPluginGPS {
        gboolean gps_rangering_active;  /* range rings are visible or not */
        guint gps_update_timeout_id;    /* id of timeout so we can delete it */
 
+       struct gps_track_t track;
        struct gps_ui_t ui;
 };