LogViewer
A modern log viewer with AI-assisted analysis (Qt 6)
Loading...
Searching...
No Matches
SequenceDiagramPanel.hpp
Go to the documentation of this file.
1#pragma once
2
5
6#include <QFutureWatcher>
7#include <QGraphicsScene>
8#include <QGraphicsView>
9#include <QLabel>
10#include <QPushButton>
11#include <QSpinBox>
12#include <QWidget>
13
14#include <map>
15#include <optional>
16#include <string>
17
18class SequenceZoomView; // defined in SequenceDiagramPanel.cpp
19
20namespace db { class EventsContainer; }
21namespace ui::qt { class EventsTableView; }
22
23namespace ui::qt
24{
25
38{
39 Q_OBJECT
40
41public:
42 ~SequenceDiagramPanel() override;
44 EventsTableView* eventsView,
45 QWidget* parent = nullptr);
46
47public slots:
48 void Refresh();
51 void SetDefinitions(const std::vector<ActorDefinition>& defs);
52
53private slots:
55 void OnLimitChanged(int value);
56 void OnSceneClicked(qulonglong eventIndex);
57
58private:
59 void BuildLayout();
60 void RenderDiagram(const analyzer::ExchangePattern& pat, bool resetZoom);
61
64
67 QSpinBox* m_limitSpin {nullptr};
68 QLabel* m_statusLabel {nullptr};
69 QPushButton* m_refreshBtn {nullptr};
70
71 std::optional<analyzer::ExchangePattern> m_pattern {std::nullopt};
72 QFutureWatcher<analyzer::ActorDiscoveryResult>* m_watcher {nullptr};
73 bool m_refreshPending {false};
74
75 // Derived from actor definitions; rebuilt on SetDefinitions().
76 std::string m_selfActor;
77 std::map<std::string, std::string> m_aliasMap;
78};
79
80} // namespace ui::qt
Definition SequenceDiagramPanel.cpp:114
High-performance, thread-safe container for managing large collections of LogEvent objects.
Definition EventsContainer.hpp:129
Definition EventsTableView.hpp:29
Definition SequenceDiagramPanel.hpp:38
std::optional< analyzer::ExchangePattern > m_pattern
Definition SequenceDiagramPanel.hpp:71
SequenceZoomView * m_view
Definition SequenceDiagramPanel.hpp:66
void SetDefinitions(const std::vector< ActorDefinition > &defs)
Definition SequenceDiagramPanel.cpp:357
QGraphicsScene * m_scene
Definition SequenceDiagramPanel.hpp:65
void RenderDiagram(const analyzer::ExchangePattern &pat, bool resetZoom)
Definition SequenceDiagramPanel.cpp:431
QPushButton * m_refreshBtn
Definition SequenceDiagramPanel.hpp:69
QLabel * m_statusLabel
Definition SequenceDiagramPanel.hpp:68
void BuildLayout()
Definition SequenceDiagramPanel.cpp:216
void OnSceneClicked(qulonglong eventIndex)
Definition SequenceDiagramPanel.cpp:615
~SequenceDiagramPanel() override
Definition SequenceDiagramPanel.cpp:307
EventsTableView * m_eventsView
Definition SequenceDiagramPanel.hpp:63
void OnLimitChanged(int value)
Definition SequenceDiagramPanel.cpp:610
void OnDiscoveryFinished()
Definition SequenceDiagramPanel.cpp:392
QFutureWatcher< analyzer::ActorDiscoveryResult > * m_watcher
Definition SequenceDiagramPanel.hpp:72
std::map< std::string, std::string > m_aliasMap
raw value → display alias
Definition SequenceDiagramPanel.hpp:77
bool m_refreshPending
Refresh() was called while discovery ran.
Definition SequenceDiagramPanel.hpp:73
QSpinBox * m_limitSpin
Definition SequenceDiagramPanel.hpp:67
std::string m_selfActor
Raw value of the "self" actor (empty = none)
Definition SequenceDiagramPanel.hpp:76
void Refresh()
Definition SequenceDiagramPanel.cpp:314
db::EventsContainer & m_events
Definition SequenceDiagramPanel.hpp:62
Database and data model components for the LogViewer application.
Definition EventsContainer.cpp:17
Definition ConfigEditorDialog.cpp:19
Describes how actor-to-actor message flow can be read from the log events.
Definition ActorDiscoverer.hpp:49