summaryrefslogtreecommitdiff
path: root/ui/windows
diff options
context:
space:
mode:
authorChristian Kolset <christian.kolset@gmail.com>2026-06-03 14:50:32 -0600
committerChristian Kolset <christian.kolset@gmail.com>2026-06-03 14:50:32 -0600
commit93e7d0ecdc090fd4f0231b13933fc0fa095a1f22 (patch)
tree1b3d441b53b0513c5d134d3785624b33c5d6b5f0 /ui/windows
parent00be36b73e68aa851328b43391afd060818d7f4b (diff)
Make Devices, Channels, Plot windows maximizable
Remove Qt.WindowType.Tool flag — it suppresses the maximize button. Window now has standard chrome with minimize/maximize/close. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'ui/windows')
-rw-r--r--ui/windows/channels_window.py2
-rw-r--r--ui/windows/devices_window.py2
-rw-r--r--ui/windows/plot_window.py8
3 files changed, 6 insertions, 6 deletions
diff --git a/ui/windows/channels_window.py b/ui/windows/channels_window.py
index 9a90670..01b798c 100644
--- a/ui/windows/channels_window.py
+++ b/ui/windows/channels_window.py
@@ -933,7 +933,7 @@ class ChannelsWindow(QWidget):
def __init__(self, registry: DeviceRegistry,
processor: SignalProcessor, parent=None):
- super().__init__(parent, Qt.WindowType.Window | Qt.WindowType.Tool)
+ super().__init__(parent, Qt.WindowType.Window)
self.registry = registry
self.processor = processor
diff --git a/ui/windows/devices_window.py b/ui/windows/devices_window.py
index f942552..5919938 100644
--- a/ui/windows/devices_window.py
+++ b/ui/windows/devices_window.py
@@ -256,7 +256,7 @@ class DevicesWindow(QWidget):
closed = pyqtSignal()
def __init__(self, registry: DeviceRegistry, engine: AcquisitionEngine, parent=None):
- super().__init__(parent, Qt.WindowType.Window | Qt.WindowType.Tool)
+ super().__init__(parent, Qt.WindowType.Window)
self.registry = registry
self.engine = engine
self._rows: dict = {}
diff --git a/ui/windows/plot_window.py b/ui/windows/plot_window.py
index 9a13781..0207af1 100644
--- a/ui/windows/plot_window.py
+++ b/ui/windows/plot_window.py
@@ -212,7 +212,7 @@ class PaneBlock(QFrame):
self._x_cb.addItem(f"{dev.info.device_id}/{ch.channel_id} ({ch.name})",
userData=f"{dev.info.device_id}/{ch.channel_id}")
for dc in self.processor.get_derived():
- self._x_cb.addItem(f"[derived] {dc.channel_id}",
+ self._x_cb.addItem(f"[virtual] {dc.channel_id}",
userData=f"derived/{dc.channel_id}")
# Select current
for i in range(self._x_cb.count()):
@@ -264,7 +264,7 @@ class PaneBlock(QFrame):
pick_row = QHBoxLayout()
self._picker = self._make_picker(); pick_row.addWidget(self._picker,1)
- ab = QPushButton("+ Add Signal"); ab.setObjectName("addTraceBtn")
+ ab = QPushButton("+ Add Channel"); ab.setObjectName("addTraceBtn")
ab.clicked.connect(self._on_add); pick_row.addWidget(ab)
self._tlay.addLayout(pick_row)
outer.addWidget(tr_w)
@@ -278,7 +278,7 @@ class PaneBlock(QFrame):
cb.addItem(f"{dev.info.device_id} / {ch.channel_id} ({ch.name})",
userData=(dev.info.device_id, ch.channel_id, ch.name, ch.color))
for dc in self.processor.get_derived():
- cb.addItem(f"[derived] {dc.channel_id} ({dc.name})",
+ cb.addItem(f"[virtual] {dc.channel_id} ({dc.name})",
userData=("derived", dc.channel_id, dc.name, dc.color))
return cb
@@ -314,7 +314,7 @@ class PlotWindow(QWidget):
def __init__(self, registry: DeviceRegistry, processor: SignalProcessor,
current: Optional[LayoutConfig] = None, parent=None):
- super().__init__(parent, Qt.WindowType.Window | Qt.WindowType.Tool)
+ super().__init__(parent, Qt.WindowType.Window)
self.registry = registry
self.processor = processor
self.cfg = deepcopy(current) if current \