Clean up GUI panels and fix sidebar icons
Rename the Stream panel to Output throughout the app, menu, sidebar, and docs since the S3 does not support network streaming. Remove the UVC toggle section from the output panel and the recording section from the console panel, along with all controller wiring for both. Replace emoji sidebar icons for Color and Output with Unicode geometric shapes that render correctly in Qt. Wire the Help > Documentation menu action to open the GitLab repository URL. Update the GUI guide to match all panel and menu changes.
This commit is contained in:
@@ -89,8 +89,6 @@ class CameraController(QObject):
|
||||
self._client.camera_connected.connect(self._on_connected)
|
||||
self._client.camera_disconnected.connect(self._on_disconnected)
|
||||
self._client.error_occurred.connect(self._on_error)
|
||||
self._client.recording_state_changed.connect(self._console_panel.set_recording_state)
|
||||
self._client.recording_duration_changed.connect(self._console_panel.set_recording_duration)
|
||||
|
||||
self._panel.param_changed.connect(self._on_param_changed)
|
||||
self._panel.refresh_requested.connect(self.refresh_all)
|
||||
@@ -180,14 +178,6 @@ class CameraController(QObject):
|
||||
if not self._connected:
|
||||
return
|
||||
|
||||
if name == "recording-start":
|
||||
self._do_recording(True)
|
||||
return
|
||||
|
||||
if name == "recording-stop":
|
||||
self._do_recording(False)
|
||||
return
|
||||
|
||||
if name == "ai-tracking":
|
||||
self._do_ai_tracking(int(value))
|
||||
return
|
||||
@@ -262,19 +252,6 @@ class CameraController(QObject):
|
||||
|
||||
threading.Thread(target=_send, daemon=True, name=f"set-{name}").start()
|
||||
|
||||
def _do_recording(self, start: bool):
|
||||
def _run():
|
||||
if start:
|
||||
success = self._client.start_recording()
|
||||
else:
|
||||
success = self._client.stop_recording()
|
||||
|
||||
if not success:
|
||||
log.warning("Recording %s failed", "start" if start else "stop")
|
||||
self._client.recording_state_changed.emit(not start)
|
||||
|
||||
threading.Thread(target=_run, daemon=True, name="recording").start()
|
||||
|
||||
def _do_ai_tracking(self, mode: int):
|
||||
def _run():
|
||||
self._client.set_ai_tracking(mode)
|
||||
@@ -393,7 +370,7 @@ class CameraController(QObject):
|
||||
if name == "wb-mode":
|
||||
return int(value)
|
||||
|
||||
if name in ("shading", "hdr", "exposure-lock", "wb-lock", "focus-caf", "au-gain", "uvc"):
|
||||
if name in ("shading", "hdr", "exposure-lock", "wb-lock", "focus-caf", "au-gain"):
|
||||
return 1 if value else 0
|
||||
|
||||
if name == "zoom":
|
||||
|
||||
Reference in New Issue
Block a user