altosui: Hook up the launch controller UI from the main button box
authorKeith Packard <keithp@keithp.com>
Tue, 2 Aug 2011 05:45:43 +0000 (22:45 -0700)
committerKeith Packard <keithp@keithp.com>
Sat, 27 Aug 2011 19:45:36 +0000 (12:45 -0700)
Provide a button to start the launch controller UI.

Signed-off-by: Keith Packard <keithp@keithp.com>
altosui/AltosUI.java

index 27c41838e12ea15189d50bf65d4501f2619d9ddb..8399b7c8440e101a1d271c5c00ed4542fe0b6786 100644 (file)
@@ -210,6 +210,13 @@ public class AltosUI extends JFrame {
                        });
                b.setToolTipText("Check flight readiness of altimeter in idle mode");
 
+               b = addButton(2, 2, "Launch Controller");
+               b.addActionListener(new ActionListener() {
+                               public void actionPerformed(ActionEvent e) {
+                                       LaunchController();
+                               }
+                       });
+
                setTitle("AltOS");
 
                pane.doLayout();
@@ -272,6 +279,10 @@ public class AltosUI extends JFrame {
                new AltosSiteMapPreload(AltosUI.this);
        }
 
+       void LaunchController() {
+               new AltosLaunchUI(AltosUI.this);
+       }
+
        /*
         * Replay a flight from telemetry data
         */