summaryrefslogtreecommitdiff
path: root/altosui/AltosFlightUI.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-01-02 15:45:14 -0800
committerKeith Packard <keithp@keithp.com>2012-06-02 19:09:09 -0700
commit97663f922e236f4ee7bd08277ca80d419b5cd10f (patch)
tree338e6fd4125c6312dccb7d203877551db6d63090 /altosui/AltosFlightUI.java
parentc9e52287751867d9e451146ccde78109609d30d7 (diff)
altosui: Split out UI-specific preferences
Prepare to create library shared with android application. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosFlightUI.java')
-rw-r--r--altosui/AltosFlightUI.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/altosui/AltosFlightUI.java b/altosui/AltosFlightUI.java
index b2ae4858..5c6e0629 100644
--- a/altosui/AltosFlightUI.java
+++ b/altosui/AltosFlightUI.java
@@ -159,7 +159,7 @@ public class AltosFlightUI extends AltosFrame implements AltosFlightDisplay, Alt
ActionListener show_timer;
public AltosFlightUI(AltosVoice in_voice, AltosFlightReader in_reader, final int serial) {
- AltosPreferences.set_component(this);
+ AltosUIPreferences.set_component(this);
voice = in_voice;
reader = in_reader;
@@ -178,7 +178,7 @@ public class AltosFlightUI extends AltosFrame implements AltosFlightDisplay, Alt
/* Stick channel selector at top of table for telemetry monitoring */
if (serial >= 0) {
// Channel menu
- frequencies = new AltosFreqList(AltosPreferences.frequency(serial));
+ frequencies = new AltosFreqList(AltosUIPreferences.frequency(serial));
frequencies.set_product("Monitor");
frequencies.set_serial(serial);
frequencies.addActionListener(new ActionListener() {
@@ -298,7 +298,7 @@ public class AltosFlightUI extends AltosFrame implements AltosFlightDisplay, Alt
setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
- AltosPreferences.register_font_listener(this);
+ AltosUIPreferences.register_font_listener(this);
addWindowListener(new WindowAdapter() {
@Override
@@ -306,7 +306,7 @@ public class AltosFlightUI extends AltosFrame implements AltosFlightDisplay, Alt
disconnect();
setVisible(false);
dispose();
- AltosPreferences.unregister_font_listener(AltosFlightUI.this);
+ AltosUIPreferences.unregister_font_listener(AltosFlightUI.this);
if (exit_on_close)
System.exit(0);
}