Sound hinzugefügt und UI aufgeräumt

This commit is contained in:
2026-09-27 02:04:23 +02:00
parent b92d58d812
commit bc564c5371
7 changed files with 341 additions and 68 deletions

View File

@@ -7,10 +7,10 @@
#include <QTabWidget>
#include <QStatusBar>
#include <QToolBar>
#include <QMenuBar>
#include <QMenu>
#include <QLabel>
#include <QAction>
#include <QSpinBox>
#include <QCheckBox>
#include <QSet>
#include "serialworker.h"
@@ -46,11 +46,13 @@ private slots:
void showFormatReference();
void configureTagFilter();
void configureScreenshotDir();
void configureReconnectInterval();
void showAbout();
private:
void setupUi();
void setupToolBar();
void setupMenuBar();
void setupStatusBar();
void clearAllViews();
void doShutdown();
@@ -71,8 +73,8 @@ private:
QLabel *m_stateLabel = nullptr;
QLabel *m_reconnectLabel = nullptr;
QCheckBox *m_autoReconnectCb = nullptr;
QSpinBox *m_reconnectIntervalSb = nullptr;
QAction *m_autoReconnectAction = nullptr;
int m_reconnectIntervalMs = 2000;
QAction *m_connectAction = nullptr;
QAction *m_disconnectAction = nullptr;
@@ -85,5 +87,14 @@ private:
SerialConfig m_lastConfig;
QSet<QString> m_suppressedTags; // tags hidden from Raw view
QString m_screenshotDir; // target folder for [SCREENSHOT] tag captures
// Remembered folders for the *manual* "Screenshot"/"Record" toolbar
// buttons in VideoWidget (distinct from m_screenshotDir above, which is
// only for the firmware-triggered [SCREENSHOT] tag) - so the save
// dialogs reopen wherever the user last saved to instead of always
// resetting to Pictures/Videos.
QString m_lastManualScreenshotDir;
QString m_lastVideoDir;
bool m_shutdownDone = false;
};