From 0fa0568c06fd770ad104b464197b3bb03123f38e Mon Sep 17 00:00:00 2001 From: Christian Kolset Date: Tue, 9 Jun 2026 20:14:54 -0600 Subject: UI: streamline Add Device dialog and serial config widget MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add Device dialog: - Replace Available Devices QGroupBox with plain devWindowTitle label to match Configuration section style — no box/border - Auto-scan on open via QTimer.singleShot(0) - Rename Scan All → Refresh Serial config widget: - Fix gap between protocol panel and Available Serial Ports: introduce _AdaptiveStack (QStackedWidget subclass) that reports only the current panel's sizeHint; set Fixed vertical size policy so the stack never expands beyond its content regardless of window size - Stretch added between Available Serial Ports and Apply & Reconnect so the button stays pinned to the bottom - Rename Channels → Signals in _GenericPanel and _SCPIPanel (Signal Queries) Config dialog (device info tab): - Rename Channels → Signals Co-Authored-By: Claude Sonnet 4.6 --- ui/config_dialog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui/config_dialog.py') diff --git a/ui/config_dialog.py b/ui/config_dialog.py index bafac24..d9bc9df 100644 --- a/ui/config_dialog.py +++ b/ui/config_dialog.py @@ -66,5 +66,5 @@ class DeviceConfigDialog(QDialog): form.addRow("Model:", _ro(info.model)) form.addRow("Version:", _ro(info.version)) form.addRow("Status:", _ro(self.device.status.value)) - form.addRow("Channels:", _ro(len(info.channels))) + form.addRow("Signals:", _ro(len(info.channels))) return w -- cgit v1.2.3