projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
doc: Add 1.9.5 release notes
[fw/altos]
/
altosui
/
AltosIgniteUI.java
diff --git
a/altosui/AltosIgniteUI.java
b/altosui/AltosIgniteUI.java
index ce714f7baa661cf6cfa16ba3e3b1ac92d6644c6c..8256722a513269405ece3db08e16b5c7d8c0a5ca 100644
(file)
--- a/
altosui/AltosIgniteUI.java
+++ b/
altosui/AltosIgniteUI.java
@@
-3,7
+3,8
@@
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
@@
-24,8
+25,8
@@
import java.io.*;
import java.text.*;
import java.util.*;
import java.util.concurrent.*;
import java.text.*;
import java.util.*;
import java.util.concurrent.*;
-import org.altusmetrum.altoslib_
9
.*;
-import org.altusmetrum.altosuilib_
9
.*;
+import org.altusmetrum.altoslib_
14
.*;
+import org.altusmetrum.altosuilib_
14
.*;
public class AltosIgniteUI
extends AltosUIDialog
public class AltosIgniteUI
extends AltosUIDialog
@@
-64,7
+65,7
@@
public class AltosIgniteUI
}
Igniter(AltosIgniteUI ui, String label, String name, int y) {
}
Igniter(AltosIgniteUI ui, String label, String name, int y) {
- Container pane = get
Content
Pane();
+ Container pane = get
Scrollable
Pane();
GridBagConstraints c = new GridBagConstraints();
Insets i = new Insets(4,4,4,4);
GridBagConstraints c = new GridBagConstraints();
Insets i = new Insets(4,4,4,4);
@@
-212,6
+213,8
@@
public class AltosIgniteUI
fired();
} else if (reply.startsWith("npyro")) {
npyro = Integer.parseInt(reply.substring(6));
fired();
} else if (reply.startsWith("npyro")) {
npyro = Integer.parseInt(reply.substring(6));
+ if (npyro == AltosLib.MISSING)
+ npyro = 0;
make_ui();
}
}
make_ui();
}
}
@@
-254,15
+257,11
@@
public class AltosIgniteUI
boolean getting_status = false;
boolean getting_status = false;
- boolean visible = false;
-
void set_ignite_status() {
getting_status = false;
poll_remaining = 2;
void set_ignite_status() {
getting_status = false;
poll_remaining = 2;
- if (!visible) {
- visible = true;
+ if (!isVisible())
setVisible(true);
setVisible(true);
- }
}
void poll_ignite_status() {
}
void poll_ignite_status() {
@@
-389,7
+388,7
@@
public class AltosIgniteUI
private void make_ui() {
group = new ButtonGroup();
private void make_ui() {
group = new ButtonGroup();
- Container pane = get
Content
Pane();
+ Container pane = get
Scrollable
Pane();
GridBagConstraints c = new GridBagConstraints();
Insets i = new Insets(4,4,4,4);
GridBagConstraints c = new GridBagConstraints();
Insets i = new Insets(4,4,4,4);