LogViewer
A modern log viewer with AI-assisted analysis (Qt 6)
Loading...
Searching...
No Matches
TraceViewerPanel.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "DrillDownFilter.hpp"
4
5#include <QComboBox>
6#include <QLabel>
7#include <QLineEdit>
8#include <QPushButton>
9#include <QTreeWidget>
10#include <QWidget>
11
12#include <map>
13#include <string>
14#include <unordered_map>
15#include <vector>
16
17namespace db {
18class EventsContainer;
19}
20
21namespace ui::qt {
22class EventsTableView;
23}
24
25namespace ui::qt {
26
43{
44 Q_OBJECT
45
46 public:
48 EventsTableView* eventsView,
49 QWidget* parent = nullptr);
50
51 public slots:
53 void Refresh();
54
55 private:
56 void BuildLayout();
57
59 void PopulateFieldCombo();
60
62 void RebuildTree(const QString& field);
63
65 void FilterTree(const QString& text);
66
69
70 QLineEdit* m_searchEdit {nullptr};
71 QComboBox* m_fieldCombo {nullptr};
72 QTreeWidget* m_tree {nullptr};
73 QPushButton* m_clearBtn {nullptr};
74 QLabel* m_statusLabel {nullptr};
75
77 std::map<std::string, std::vector<unsigned long>> m_traceEvents;
81 std::vector<unsigned long> m_shownIndices;
82};
83
84} // namespace ui::qt
High-performance, thread-safe container for managing large collections of LogEvent objects.
Definition EventsContainer.hpp:129
Definition DrillDownFilter.hpp:20
Definition EventsTableView.hpp:29
Correlation / trace viewer panel.
Definition TraceViewerPanel.hpp:43
void BuildLayout()
Definition TraceViewerPanel.cpp:79
QLineEdit * m_searchEdit
Definition TraceViewerPanel.hpp:70
void Refresh()
Rebuild the correlation table from the current visible row set.
Definition TraceViewerPanel.cpp:179
QTreeWidget * m_tree
Definition TraceViewerPanel.hpp:72
QLabel * m_statusLabel
Definition TraceViewerPanel.hpp:74
void RebuildTree(const QString &field)
Rebuild the tree for the given correlation field.
Definition TraceViewerPanel.cpp:221
EventsTableView * m_eventsView
Definition TraceViewerPanel.hpp:68
QComboBox * m_fieldCombo
Definition TraceViewerPanel.hpp:71
std::map< std::string, std::vector< unsigned long > > m_traceEvents
Maps trace-ID key → event indices (top-level items).
Definition TraceViewerPanel.hpp:77
db::EventsContainer & m_events
Definition TraceViewerPanel.hpp:67
void PopulateFieldCombo()
Populate the field combo from the first N events' field names.
Definition TraceViewerPanel.cpp:201
std::vector< unsigned long > m_shownIndices
The events the tree was last built from.
Definition TraceViewerPanel.hpp:81
void FilterTree(const QString &text)
Show/hide tree items that do (not) contain text.
Definition TraceViewerPanel.cpp:462
DrillDownFilter m_traceFilter
The trace filter set by a double-click, and the filter it replaced.
Definition TraceViewerPanel.hpp:79
QPushButton * m_clearBtn
Definition TraceViewerPanel.hpp:73
Database and data model components for the LogViewer application.
Definition EventsContainer.cpp:17
Definition ConfigEditorDialog.cpp:19