altosui: Add map preloading GUI
[fw/altos] / altosui / AltosUI.java
index 6a24d8a996899f915d98d8f9587834d0a892d5a3..d8c8d61ce6794f8b6b4d8717c839bd2bc77dd916 100644 (file)
@@ -180,6 +180,13 @@ public class AltosUI extends JFrame {
                                }
                        });
 
+               b = addButton(1, 2, "Load Maps");
+               b.addActionListener(new ActionListener() {
+                               public void actionPerformed(ActionEvent e) {
+                                       LoadMaps();
+                               }
+                       });
+
                setTitle("AltOS");
 
                pane.doLayout();
@@ -238,6 +245,10 @@ public class AltosUI extends JFrame {
                new AltosScanUI(AltosUI.this);
        }
 
+       void LoadMaps() {
+               new AltosSiteMapPreload(AltosUI.this);
+       }
+
        /*
         * Replay a flight from telemetry data
         */