summaryrefslogtreecommitdiff
path: root/altosui/AltosConfigUI.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2014-06-11 19:51:37 -0700
committerKeith Packard <keithp@keithp.com>2014-06-11 19:51:37 -0700
commitd744e588b7504f314e39b1407152d11c031673c9 (patch)
treec0f44b0bca4fa2b9702b80b1810fac5fc02ed58b /altosui/AltosConfigUI.java
parentfcbfb3aea20e564045fc6a86f978cacabfc73226 (diff)
altosui: Add pyro firing time configuration
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosConfigUI.java')
-rw-r--r--altosui/AltosConfigUI.java16
1 files changed, 15 insertions, 1 deletions
diff --git a/altosui/AltosConfigUI.java b/altosui/AltosConfigUI.java
index ee54e31e..56d0d2a7 100644
--- a/altosui/AltosConfigUI.java
+++ b/altosui/AltosConfigUI.java
@@ -78,6 +78,7 @@ public class AltosConfigUI
JButton close;
AltosPyro[] pyros;
+ double pyro_firing_time;
ActionListener listener;
@@ -792,7 +793,7 @@ public class AltosConfigUI
if (cmd.equals("Pyro")) {
if (pyro_ui == null && pyros != null)
- pyro_ui = new AltosConfigPyroUI(this, pyros);
+ pyro_ui = new AltosConfigPyroUI(this, pyros, pyro_firing_time);
if (pyro_ui != null)
pyro_ui.make_visible();
return;
@@ -1130,6 +1131,19 @@ public class AltosConfigUI
return pyros;
}
+ public void set_pyro_firing_time(double new_pyro_firing_time) {
+ pyro_firing_time = new_pyro_firing_time;
+ pyro.setVisible(pyro_firing_time >= 0);
+ if (pyro_firing_time >= 0 && pyro_ui != null)
+ pyro_ui.set_pyro_firing_time(pyro_firing_time);
+ }
+
+ public double pyro_firing_time() throws AltosConfigDataException {
+ if (pyro_ui != null)
+ pyro_firing_time = pyro_ui.get_pyro_firing_time();
+ return pyro_firing_time;
+ }
+
public void set_aprs_interval(int new_aprs_interval) {
String s;