summaryrefslogtreecommitdiff
path: root/altosui/AltosConfigureUI.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-03-19 18:43:52 -0700
committerKeith Packard <keithp@keithp.com>2011-03-19 18:47:55 -0700
commite980b251e5a4d25410710a9aa89ef940e06b0d93 (patch)
tree7cc3f2f76209d92a8db5f604ffaeb1e225c54855 /altosui/AltosConfigureUI.java
parent1aeb759c48f475ffaaae787515e080440c8386c3 (diff)
altosui: Add software version to Configure AltosUI dialog
Show this somewhere so we can figure out what is installed. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosConfigureUI.java')
-rw-r--r--altosui/AltosConfigureUI.java27
1 files changed, 17 insertions, 10 deletions
diff --git a/altosui/AltosConfigureUI.java b/altosui/AltosConfigureUI.java
index ab3d950e..9a292c91 100644
--- a/altosui/AltosConfigureUI.java
+++ b/altosui/AltosConfigureUI.java
@@ -87,9 +87,16 @@ public class AltosConfigureUI
c.anchor = GridBagConstraints.CENTER;
pane.add(new JLabel ("Configure AltOS UI"), c);
- /* Voice settings */
c.gridx = 0;
c.gridy = 1;
+ c.gridwidth = 3;
+ c.fill = GridBagConstraints.NONE;
+ c.anchor = GridBagConstraints.CENTER;
+ pane.add(new JLabel (String.format("AltOS version %s", AltosVersion.version)), c);
+
+ /* Voice settings */
+ c.gridx = 0;
+ c.gridy = 2;
c.gridwidth = 1;
c.fill = GridBagConstraints.NONE;
c.anchor = GridBagConstraints.WEST;
@@ -108,7 +115,7 @@ public class AltosConfigureUI
}
});
c.gridx = 1;
- c.gridy = 1;
+ c.gridy = 2;
c.gridwidth = 1;
c.weightx = 1;
c.fill = GridBagConstraints.NONE;
@@ -116,7 +123,7 @@ public class AltosConfigureUI
pane.add(enable_voice, c);
c.gridx = 2;
- c.gridy = 1;
+ c.gridy = 2;
c.gridwidth = 1;
c.weightx = 1;
c.fill = GridBagConstraints.NONE;
@@ -131,7 +138,7 @@ public class AltosConfigureUI
/* Log directory settings */
c.gridx = 0;
- c.gridy = 2;
+ c.gridy = 3;
c.gridwidth = 1;
c.fill = GridBagConstraints.NONE;
c.anchor = GridBagConstraints.WEST;
@@ -145,7 +152,7 @@ public class AltosConfigureUI
}
});
c.gridx = 1;
- c.gridy = 2;
+ c.gridy = 3;
c.gridwidth = 2;
c.fill = GridBagConstraints.BOTH;
c.anchor = GridBagConstraints.WEST;
@@ -153,7 +160,7 @@ public class AltosConfigureUI
/* Callsign setting */
c.gridx = 0;
- c.gridy = 3;
+ c.gridy = 4;
c.gridwidth = 1;
c.fill = GridBagConstraints.NONE;
c.anchor = GridBagConstraints.WEST;
@@ -162,7 +169,7 @@ public class AltosConfigureUI
callsign_value = new JTextField(AltosPreferences.callsign());
callsign_value.getDocument().addDocumentListener(this);
c.gridx = 1;
- c.gridy = 3;
+ c.gridy = 4;
c.gridwidth = 2;
c.fill = GridBagConstraints.BOTH;
c.anchor = GridBagConstraints.WEST;
@@ -170,7 +177,7 @@ public class AltosConfigureUI
/* Serial debug setting */
c.gridx = 0;
- c.gridy = 4;
+ c.gridy = 5;
c.gridwidth = 1;
c.fill = GridBagConstraints.NONE;
c.anchor = GridBagConstraints.WEST;
@@ -186,7 +193,7 @@ public class AltosConfigureUI
});
c.gridx = 1;
- c.gridy = 4;
+ c.gridy = 5;
c.gridwidth = 3;
c.fill = GridBagConstraints.NONE;
c.anchor = GridBagConstraints.WEST;
@@ -200,7 +207,7 @@ public class AltosConfigureUI
}
});
c.gridx = 0;
- c.gridy = 5;
+ c.gridy = 6;
c.gridwidth = 3;
c.fill = GridBagConstraints.NONE;
c.anchor = GridBagConstraints.CENTER;