projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of git://git.gag.com/fw/altos
[fw/altos]
/
ao-tools
/
altosui
/
AltosUI.java
diff --git
a/ao-tools/altosui/AltosUI.java
b/ao-tools/altosui/AltosUI.java
index 1adeeccfee47ae35ce9c2256ba49654356adc427..e130de58d703470f61845d3852ccc9b89389370b 100644
(file)
--- a/
ao-tools/altosui/AltosUI.java
+++ b/
ao-tools/altosui/AltosUI.java
@@
-490,6
+490,13
@@
public class AltosUI extends JFrame {
new AltosCSVUI(AltosUI.this);
}
new AltosCSVUI(AltosUI.this);
}
+ /* Load a flight log CSV file and display a pretty graph.
+ */
+
+ private void GraphData() {
+ new AltosGraphUI(AltosUI.this);
+ }
+
/* Create the AltosUI menus
*/
private void createMenu() {
/* Create the AltosUI menus
*/
private void createMenu() {
@@
-536,6
+543,14
@@
public class AltosUI extends JFrame {
});
menu.add(item);
});
menu.add(item);
+ item = new JMenuItem("Graph Data",KeyEvent.VK_F);
+ item.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ GraphData();
+ }
+ });
+ menu.add(item);
+
item = new JMenuItem("Quit",KeyEvent.VK_Q);
item.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_Q,
ActionEvent.CTRL_MASK));
item = new JMenuItem("Quit",KeyEvent.VK_Q);
item.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_Q,
ActionEvent.CTRL_MASK));
@@
-718,4
+733,4
@@
public class AltosUI extends JFrame {
altosui.setVisible(true);
}
}
altosui.setVisible(true);
}
}
-}
\ No newline at end of file
+}