From 38450798207d7bafb72fbc9a4bcdf2c8fec84653 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sun, 9 Apr 2023 20:13:57 -0700 Subject: [PATCH] telegps: Add unit setting to device configuration dialog This isn't used by TeleGPS, but is needed to make the config system work. Signed-off-by: Keith Packard --- telegps/TeleGPSConfigUI.java | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/telegps/TeleGPSConfigUI.java b/telegps/TeleGPSConfigUI.java index fa74fc19..b5d267b7 100644 --- a/telegps/TeleGPSConfigUI.java +++ b/telegps/TeleGPSConfigUI.java @@ -402,6 +402,32 @@ public class TeleGPSConfigUI set_radio_enable_tool_tip(); row++; + /* Report feet */ + c = new GridBagConstraints(); + c.gridx = 0; c.gridy = row; + c.gridwidth = 4; + c.fill = GridBagConstraints.NONE; + c.anchor = GridBagConstraints.LINE_START; + c.insets = il; + c.ipady = 5; + report_feet_label = new JLabel("Beep max height in:"); + pane.add(report_feet_label, c); + + c = new GridBagConstraints(); + c.gridx = 4; c.gridy = row; + c.gridwidth = 4; + c.fill = GridBagConstraints.HORIZONTAL; + c.weightx = 1; + c.anchor = GridBagConstraints.LINE_START; + c.insets = ir; + c.ipady = 5; + report_feet_value = new JComboBox(report_feet_values); + report_feet_value.setEditable(false); + report_feet_value.addItemListener(this); + pane.add(report_feet_value, c); + set_report_feet_tool_tip(); + row++; + /* Radio 10mW limit */ c = new GridBagConstraints(); c.gridx = 0; c.gridy = row; -- 2.30.2