LogViewer
A modern log viewer with AI-assisted analysis (Qt 6)
Loading...
Searching...
No Matches
TimelineChartPanel.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "DrillDownFilter.hpp"
4
5#include <QChartView>
6#include <QLabel>
7#include <QPushButton>
8#include <QSpinBox>
9#include <QWidget>
10
11#include <string>
12#include <vector>
13
14class QDateTime;
15
16namespace db {
17class EventsContainer;
18}
19
20namespace ui::qt {
21class EventsTableView;
22}
23
24namespace ui::qt {
25
37{
38 Q_OBJECT
39
40 public:
42 EventsTableView* eventsView,
43 QWidget* parent = nullptr);
44
45 public slots:
47 void Refresh();
48
49 private:
50 void BuildLayout();
51
54 [[nodiscard]] static std::string DetectTimestampField(
55 db::EventsContainer& events,
56 const std::vector<unsigned long>& indices);
57
60
61 QChartView* m_chartView {nullptr};
62 QSpinBox* m_bucketSpin {nullptr};
63 QPushButton* m_clearBtn {nullptr};
64 QLabel* m_statusLabel {nullptr};
65
67 std::vector<std::vector<unsigned long>> m_bucketEvents;
70};
71
72} // 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
Interactive event-timeline panel.
Definition TimelineChartPanel.hpp:37
db::EventsContainer & m_events
Definition TimelineChartPanel.hpp:58
void BuildLayout()
Definition TimelineChartPanel.cpp:40
DrillDownFilter m_bucketFilter
The bucket filter set by a click, and the filter it replaced.
Definition TimelineChartPanel.hpp:69
EventsTableView * m_eventsView
Definition TimelineChartPanel.hpp:59
std::vector< std::vector< unsigned long > > m_bucketEvents
Per-bucket event indices populated during Refresh; consumed by click handlers.
Definition TimelineChartPanel.hpp:67
QLabel * m_statusLabel
Definition TimelineChartPanel.hpp:64
QPushButton * m_clearBtn
Definition TimelineChartPanel.hpp:63
QSpinBox * m_bucketSpin
Definition TimelineChartPanel.hpp:62
void Refresh()
Rebuild the chart from the current visible row set.
Definition TimelineChartPanel.cpp:88
static std::string DetectTimestampField(db::EventsContainer &events, const std::vector< unsigned long > &indices)
Definition TimelineChartPanel.cpp:281
QChartView * m_chartView
Definition TimelineChartPanel.hpp:61
Database and data model components for the LogViewer application.
Definition EventsContainer.cpp:17
Definition ConfigEditorDialog.cpp:19