summaryrefslogtreecommitdiff
path: root/altosui/AltosUI.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-08-02 17:41:53 -0700
committerKeith Packard <keithp@keithp.com>2011-08-02 18:03:37 -0700
commit11a2bb8e28df7ed87542f2ee726f877971f5d52a (patch)
tree96be4771790576383c143213649b3eebc10e9697 /altosui/AltosUI.java
parent3cc2eed6cdafe788a8617ab45c6664077e76411e (diff)
altosui: Add idle monitor dialog
This monitors a telemetrum device in idle mode, either directly or through a teledongle, allowing the GPS status and batteries to be monitored without resorting to placing the device in pad mode. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosUI.java')
-rw-r--r--altosui/AltosUI.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/altosui/AltosUI.java b/altosui/AltosUI.java
index d8c8d61c..9b724fd7 100644
--- a/altosui/AltosUI.java
+++ b/altosui/AltosUI.java
@@ -187,6 +187,13 @@ public class AltosUI extends JFrame {
}
});
+ b = addButton(2, 2, "Monitor Idle");
+ b.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ IdleMonitor();
+ }
+ });
+
setTitle("AltOS");
pane.doLayout();
@@ -300,6 +307,13 @@ public class AltosUI extends JFrame {
new AltosConfigureUI(AltosUI.this, voice);
}
+ private void IdleMonitor() {
+ try {
+ new AltosIdleMonitorUI(this);
+ } catch (Exception e) {
+ }
+ }
+
static AltosRecordIterable open_logfile(String filename) {
File file = new File (filename);
try {