summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2014-06-13 21:25:41 -0700
committerKeith Packard <keithp@keithp.com>2014-06-13 21:25:41 -0700
commit92895c87bc3d97bf4990f1feda0bd8b07da4c405 (patch)
treec6e54b23680f02c16afe9b21d9b73693a7acf666
parentfb2d0c1ef98d9df3f64fb756d78392ce63a73435 (diff)
telegps: Shuffle menu entries around
I think this makes them a bit more logical Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--telegps/TeleGPS.java22
1 files changed, 11 insertions, 11 deletions
diff --git a/telegps/TeleGPS.java b/telegps/TeleGPS.java
index 307b5610..eddb47d8 100644
--- a/telegps/TeleGPS.java
+++ b/telegps/TeleGPS.java
@@ -76,42 +76,42 @@ public class TeleGPS
/* File menu */
final static String new_command = "new";
- final static String preferences_command = "preferences";
+ final static String graph_command = "graph";
+ final static String export_command = "export";
final static String load_maps_command = "loadmaps";
+ final static String preferences_command = "preferences";
final static String close_command = "close";
final static String exit_command = "exit";
static final String[][] file_menu_entries = new String[][] {
{ "New Window", new_command },
- { "Preferences", preferences_command },
+ { "Graph Data", graph_command },
+ { "Export Data", export_command },
{ "Load Maps", load_maps_command },
+ { "Preferences", preferences_command },
{ "Close", close_command },
{ "Exit", exit_command },
};
/* Monitor menu */
- final static String monitor_command = "monitor";
+ final static String connect_command = "connect";
final static String disconnect_command = "disconnect";
final static String scan_command = "scan";
static final String[][] monitor_menu_entries = new String[][] {
- { "Monitor Device", monitor_command },
+ { "Connect Device", connect_command },
{ "Disconnect", disconnect_command },
{ "Scan Channels", scan_command },
};
/* Device menu */
final static String download_command = "download";
- final static String export_command = "export";
- final static String graph_command = "graph";
final static String configure_command = "configure";
final static String flash_command = "flash";
static final String[][] device_menu_entries = new String[][] {
{ "Download Data", download_command },
{ "Configure Device", configure_command },
- { "Export Data", export_command },
- { "Graph Data", graph_command },
{ "Flash Device", flash_command },
};
@@ -213,7 +213,7 @@ public class TeleGPS
}
}
- void monitor() {
+ void connect() {
AltosDevice device = AltosDeviceUIDialog.show(this,
AltosLib.product_basestation);
if (device == null)
@@ -286,8 +286,8 @@ public class TeleGPS
System.exit(0);
/* Monitor menu */
- if (monitor_command.equals(ev.getActionCommand())) {
- monitor();
+ if (connect_command.equals(ev.getActionCommand())) {
+ connect();
return;
}
if (disconnect_command.equals(ev.getActionCommand())) {