|
LogViewer
A modern log viewer with AI-assisted analysis (Qt 6)
|
#include <SequenceDiagramPanel.hpp>


Public Slots | |
| void | Refresh () |
| void | SetDefinitions (const std::vector< ActorDefinition > &defs) |
Public Member Functions | |
| ~SequenceDiagramPanel () override | |
| SequenceDiagramPanel (db::EventsContainer &events, EventsTableView *eventsView, QWidget *parent=nullptr) | |
Private Slots | |
| void | OnDiscoveryFinished () |
| void | OnLimitChanged (int value) |
| void | OnSceneClicked (qulonglong eventIndex) |
Private Member Functions | |
| void | BuildLayout () |
| void | RenderDiagram (const analyzer::ExchangePattern &pat, bool resetZoom) |
Private Attributes | |
| db::EventsContainer & | m_events |
| EventsTableView * | m_eventsView |
| QGraphicsScene * | m_scene {nullptr} |
| SequenceZoomView * | m_view {nullptr} |
| QSpinBox * | m_limitSpin {nullptr} |
| QLabel * | m_statusLabel {nullptr} |
| QPushButton * | m_refreshBtn {nullptr} |
| std::optional< analyzer::ExchangePattern > | m_pattern {std::nullopt} |
| QFutureWatcher< analyzer::ActorDiscoveryResult > * | m_watcher {nullptr} |
| bool | m_refreshPending {false} |
| Refresh() was called while discovery ran. | |
| std::string | m_selfActor |
| Raw value of the "self" actor (empty = none) | |
| std::map< std::string, std::string > | m_aliasMap |
| raw value → display alias | |
Sequence diagram panel.
On Refresh(), runs ActorDiscoverer::Discover on a background thread (QtConcurrent) so the UI stays responsive. Once discovery completes the exchange pattern is stored and RenderDiagram() draws the swimlane. Each arrow is clickable (double-click) to navigate to the source event.
Navigation: scroll bars / mouse wheel scroll, drag pans, Ctrl(Cmd)+wheel, trackpad pinch, the toolbar buttons and Ctrl++ / Ctrl+- / Ctrl+0 zoom. A freshly discovered diagram opens fit to width (never enlarged past 100%); changing the message limit or aliases keeps the current zoom.
|
override |
|
explicit |

|
private |


|
privateslot |


|
privateslot |


|
privateslot |


|
slot |


|
private |


|
slot |
Called whenever actor definitions change. Updates alias and self information used during rendering without re-running discovery.

|
private |
raw value → display alias
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Refresh() was called while discovery ran.
|
private |
|
private |
Raw value of the "self" actor (empty = none)
|
private |
|
private |
|
private |