summaryrefslogtreecommitdiff
path: root/telegps/TeleGPS.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2014-05-28 21:56:52 -0700
committerKeith Packard <keithp@keithp.com>2014-05-28 22:02:32 -0700
commit3871b9ac036e3adfa1da089245fc7973b268c921 (patch)
treef84cee06faaf7574e81836292b67ac702b69cc1b /telegps/TeleGPS.java
parent4cec35564324f909dcddeb7c0d83a2daa8223042 (diff)
telegps: Add 'Info' tab
This contains a summary of the tracking info, including position, speed and course. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'telegps/TeleGPS.java')
-rw-r--r--telegps/TeleGPS.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/telegps/TeleGPS.java b/telegps/TeleGPS.java
index ad46fbdd..1bb505e0 100644
--- a/telegps/TeleGPS.java
+++ b/telegps/TeleGPS.java
@@ -53,6 +53,7 @@ public class TeleGPS extends AltosUIFrame implements AltosFlightDisplay, AltosFo
JTabbedPane pane;
AltosSiteMap sitemap;
+ TeleGPSInfo gps_info;
boolean has_map;
JMenuBar menu_bar;
@@ -115,10 +116,12 @@ public class TeleGPS extends AltosUIFrame implements AltosFlightDisplay, AltosFo
public void reset() {
sitemap.reset();
+ gps_info.reset();
}
public void set_font() {
sitemap.set_font();
+ gps_info.set_font();
}
public void font_size_changed(int font_size) {
@@ -135,6 +138,7 @@ public class TeleGPS extends AltosUIFrame implements AltosFlightDisplay, AltosFo
state = new AltosState();
sitemap.show(state, listener_state);
+ gps_info.show(state, listener_state);
telegps_status.show(state, listener_state);
}
@@ -225,6 +229,12 @@ public class TeleGPS extends AltosUIFrame implements AltosFlightDisplay, AltosFo
}
void export() {
+ AltosDataChooser chooser;
+ chooser = new AltosDataChooser(this);
+ AltosStateIterable states = chooser.runDialog();
+ if (states == null)
+ return;
+ new AltosCSVUI(this, states, chooser.file());
}
void graph() {
@@ -394,6 +404,9 @@ public class TeleGPS extends AltosUIFrame implements AltosFlightDisplay, AltosFo
sitemap = new AltosSiteMap();
pane.add("Site Map", sitemap);
+ gps_info = new TeleGPSInfo();
+ pane.add("Info", gps_info);
+
setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
AltosUIPreferences.register_font_listener(this);