summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
e747156)
Products without a flight state don't need ascent/descent/landed tabs.
Signed-off-by: Keith Packard <keithp@keithp.com>
+ public String getName() {
+ return "Ascent";
+ }
+
public AltosAscent() {
layout = new GridBagLayout();
public AltosAscent() {
layout = new GridBagLayout();
+ public String getName() {
+ return "Descent";
+ }
+
public AltosDescent() {
layout = new GridBagLayout();
public AltosDescent() {
layout = new GridBagLayout();
AltosSiteMap sitemap;
boolean has_map;
boolean has_companion;
AltosSiteMap sitemap;
boolean has_map;
boolean has_companion;
private AltosFlightStatus flightStatus;
private AltosInfoTable flightInfo;
private AltosFlightStatus flightStatus;
private AltosInfoTable flightInfo;
JComponent tab = which_tab(state);
try {
pad.show(state, crc_errors);
JComponent tab = which_tab(state);
try {
pad.show(state, crc_errors);
+
+ if (state.state != Altos.ao_flight_startup) {
+ if (!has_state) {
+ pane.setTitleAt(0, "Launch Pad");
+ pane.add(ascent, 1);
+ pane.add(descent, 2);
+ pane.add(landed, 3);
+ has_state = true;
+ }
+ }
+
ascent.show(state, crc_errors);
descent.show(state, crc_errors);
landed.show(state, crc_errors);
ascent.show(state, crc_errors);
descent.show(state, crc_errors);
landed.show(state, crc_errors);
if (tab != cur_tab) {
if (cur_tab == pane.getSelectedComponent()) {
pane.setSelectedComponent(tab);
if (tab != cur_tab) {
if (cur_tab == pane.getSelectedComponent()) {
pane.setSelectedComponent(tab);
pane = new JTabbedPane();
pad = new AltosPad();
pane = new JTabbedPane();
pad = new AltosPad();
- pane.add("Launch Pad", pad);
+ pane.add("Status", pad);
ascent = new AltosAscent();
ascent = new AltosAscent();
- pane.add("Ascent", ascent);
-
descent = new AltosDescent();
descent = new AltosDescent();
- pane.add("Descent", descent);
-
landed = new AltosLanded(reader);
landed = new AltosLanded(reader);
- pane.add("Landed", landed);
flightInfo = new AltosInfoTable();
pane.add("Table", new JScrollPane(flightInfo));
companion = new AltosCompanionInfo();
has_companion = false;
flightInfo = new AltosInfoTable();
pane.add("Table", new JScrollPane(flightInfo));
companion = new AltosCompanionInfo();
has_companion = false;
sitemap = new AltosSiteMap();
has_map = false;
sitemap = new AltosSiteMap();
has_map = false;
+ public String getName() {
+ return "Landed";
+ }
+
public AltosLanded(AltosFlightReader in_reader) {
layout = new GridBagLayout();
public AltosLanded(AltosFlightReader in_reader) {
layout = new GridBagLayout();