Tag-Filter hinzugefügt

This commit is contained in:
2026-06-09 09:04:59 +02:00
parent cc102c93eb
commit 2181f254d2
40 changed files with 4161 additions and 74 deletions

View File

@@ -1,17 +1,16 @@
#pragma once
#include <QWidget>
#include <QGroupBox>
#include <QLabel>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QDateTime>
#include <QList>
#include <QPair>
#include <QPushButton>
#include <QTableWidget>
#include <QStringList>
// TagPanel displays the most recent data associated with a single tag (e.g. [WDG]).
// Values are parsed as key=value pairs, or shown as a raw string if no '=' is found.
// Example input line: [WDG] uptime=1234 temp=42.1 load=0.8
// TagPanel displays the most recent data for a single tag (e.g. [WDG]).
// Key=value pairs are shown in a table that updates in-place.
// A "Copy" button copies the current values to the clipboard.
// No timestamp is shown here timestamps belong in the Raw view.
class TagPanel : public QGroupBox
{
Q_OBJECT
@@ -24,14 +23,16 @@ public:
public slots:
void update(const QString &value);
private slots:
void copyToClipboard();
private:
void parseKeyValue(const QString &value);
void showRaw(const QString &value);
void ensureRow(const QString &key);
QString m_tag;
QTableWidget *m_table = nullptr;
QLabel *m_rawLabel = nullptr;
QLabel *m_timestampLabel = nullptr;
QStringList m_keys; // ordered list for row lookup
QTableWidget *m_table = nullptr;
QLabel *m_rawLabel = nullptr;
QStringList m_keys;
};