diff options
| author | Keith Packard <keithp@keithp.com> | 2012-01-02 15:45:14 -0800 |
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2012-01-02 15:45:14 -0800 |
| commit | 9ca6eac2d6e7cff94ec521d6397d9d3aabb1bcb9 (patch) | |
| tree | 9bb463a19e1636f04a88d251851eca6928a0ea96 /altosui/AltosFlightUI.java | |
| parent | 085625ff3992454b59583d95a3c415597c51f754 (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.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/altosui/AltosFlightUI.java b/altosui/AltosFlightUI.java index d166c9ae..5b2ca0c9 100644 --- a/altosui/AltosFlightUI.java +++ b/altosui/AltosFlightUI.java @@ -152,7 +152,7 @@ public class AltosFlightUI extends AltosFrame implements AltosFlightDisplay, Alt JComboBox telemetries; 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; @@ -171,7 +171,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() { @@ -198,7 +198,7 @@ public class AltosFlightUI extends AltosFrame implements AltosFlightDisplay, Alt telemetries = new JComboBox(); for (int i = 1; i <= Altos.ao_telemetry_max; i++) telemetries.addItem(Altos.telemetry_name(i)); - int telemetry = AltosPreferences.telemetry(serial); + int telemetry = AltosUIPreferences.telemetry(serial); if (telemetry <= Altos.ao_telemetry_off || telemetry > Altos.ao_telemetry_max) telemetry = Altos.ao_telemetry_standard; @@ -270,7 +270,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 @@ -278,7 +278,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); } |
