Dashboard panel showing log file overview and quick statistics.
More...
#include <DashboardPanel.hpp>
|
| static QString | FormatNumber (qint64 count) |
| | Helper to format large numbers (1234567 → "1.2M")
|
| |
| static QString | GetLevelIcon (const QString &level) |
| | Helper to get log level icon/color.
|
| |
Dashboard panel showing log file overview and quick statistics.
Displays:
- File info (name, format, size, time range; test case and verdict when the file header has them, see db::EventsContainer::GetFileMetadata())
- Event statistics (total count, breakdown by the configured type filter field — config::GetConfig().typeFilterField, e.g. "level" — shown as whatever distinct values actually occur in that column, not a fixed ERROR/WARN/INFO/DEBUG vocabulary)
- Top actors/services
- Quick action buttons (Export, Report, Bookmark)
Updates automatically when events change.
◆ DashboardPanel()
| ui::qt::DashboardPanel::DashboardPanel |
( |
QWidget * |
parent = nullptr | ) |
|
|
explicit |
◆ ~DashboardPanel()
| ui::qt::DashboardPanel::~DashboardPanel |
( |
| ) |
|
|
default |
◆ BookmarkCurrentRequested
| void ui::qt::DashboardPanel::BookmarkCurrentRequested |
( |
| ) |
|
|
signal |
◆ CreateLayout()
| void ui::qt::DashboardPanel::CreateLayout |
( |
| ) |
|
|
private |
◆ ExportRequested
| void ui::qt::DashboardPanel::ExportRequested |
( |
| ) |
|
|
signal |
◆ FormatNumber()
| QString ui::qt::DashboardPanel::FormatNumber |
( |
qint64 |
count | ) |
|
|
staticprivate |
Helper to format large numbers (1234567 → "1.2M")
◆ GenerateReportRequested
| void ui::qt::DashboardPanel::GenerateReportRequested |
( |
| ) |
|
|
signal |
◆ GetLevelIcon()
| static QString ui::qt::DashboardPanel::GetLevelIcon |
( |
const QString & |
level | ) |
|
|
staticprivate |
Helper to get log level icon/color.
◆ OnBookmarkClicked
| void ui::qt::DashboardPanel::OnBookmarkClicked |
( |
| ) |
|
|
privateslot |
◆ OnEventsChanged
| void ui::qt::DashboardPanel::OnEventsChanged |
( |
| ) |
|
|
privateslot |
◆ OnExportClicked
| void ui::qt::DashboardPanel::OnExportClicked |
( |
| ) |
|
|
privateslot |
◆ OnReportClicked
| void ui::qt::DashboardPanel::OnReportClicked |
( |
| ) |
|
|
privateslot |
◆ RecalculateStats()
| void ui::qt::DashboardPanel::RecalculateStats |
( |
| ) |
|
|
inline |
Force immediate recalculation of statistics.
◆ Refresh()
| void ui::qt::DashboardPanel::Refresh |
( |
| ) |
|
|
inline |
Refresh dashboard (called from lazy refresh cycle)
◆ SetEventsSource()
Set the events container to display stats for.
◆ SetFilePath()
| void ui::qt::DashboardPanel::SetFilePath |
( |
const QString & |
path | ) |
|
Path of the loaded log file (name, format, size and time range are shown for it).
◆ UpdateEventStats()
| void ui::qt::DashboardPanel::UpdateEventStats |
( |
| ) |
|
|
private |
◆ UpdateFileInfo()
| void ui::qt::DashboardPanel::UpdateFileInfo |
( |
| ) |
|
|
private |
◆ UpdateStats()
| void ui::qt::DashboardPanel::UpdateStats |
( |
| ) |
|
Manually trigger stats update (called automatically on events change)
◆ UpdateTopActors()
| void ui::qt::DashboardPanel::UpdateTopActors |
( |
| ) |
|
|
private |
◆ m_actorFields
| std::vector<std::string> ui::qt::DashboardPanel::m_actorFields |
|
private |
Actor columns found by discovery; re-discovered only when the log changes (size, or a clear / merge: container generation).
◆ m_actorFieldsEventCount
| std::size_t ui::qt::DashboardPanel::m_actorFieldsEventCount {0} |
|
private |
◆ m_actorFieldsGeneration
| std::uint64_t ui::qt::DashboardPanel::m_actorFieldsGeneration {0} |
|
private |
◆ m_bookmarkButton
| QPushButton* ui::qt::DashboardPanel::m_bookmarkButton = nullptr |
|
private |
◆ m_events
◆ m_exportButton
| QPushButton* ui::qt::DashboardPanel::m_exportButton = nullptr |
|
private |
◆ m_fileFormatLabel
| QLabel* ui::qt::DashboardPanel::m_fileFormatLabel = nullptr |
|
private |
◆ m_fileNameLabel
| QLabel* ui::qt::DashboardPanel::m_fileNameLabel = nullptr |
|
private |
◆ m_filePath
| QString ui::qt::DashboardPanel::m_filePath |
|
private |
◆ m_fileSizeLabel
| QLabel* ui::qt::DashboardPanel::m_fileSizeLabel = nullptr |
|
private |
◆ m_reportButton
| QPushButton* ui::qt::DashboardPanel::m_reportButton = nullptr |
|
private |
◆ m_scrollArea
| QScrollArea* ui::qt::DashboardPanel::m_scrollArea = nullptr |
|
private |
◆ m_testCaseLabel
| QLabel* ui::qt::DashboardPanel::m_testCaseLabel = nullptr |
|
private |
◆ m_testCaseTitleLabel
| QLabel* ui::qt::DashboardPanel::m_testCaseTitleLabel = nullptr |
|
private |
◆ m_timeRangeLabel
| QLabel* ui::qt::DashboardPanel::m_timeRangeLabel = nullptr |
|
private |
◆ m_topActorsLabel
| QLabel* ui::qt::DashboardPanel::m_topActorsLabel = nullptr |
|
private |
◆ m_totalEventsLabel
| QLabel* ui::qt::DashboardPanel::m_totalEventsLabel = nullptr |
|
private |
◆ m_typeBreakdownLabel
| QLabel* ui::qt::DashboardPanel::m_typeBreakdownLabel = nullptr |
|
private |
◆ m_typeBreakdownTitleLabel
| QLabel* ui::qt::DashboardPanel::m_typeBreakdownTitleLabel = nullptr |
|
private |
◆ m_verdictLabel
| QLabel* ui::qt::DashboardPanel::m_verdictLabel = nullptr |
|
private |
◆ m_verdictTitleLabel
| QLabel* ui::qt::DashboardPanel::m_verdictTitleLabel = nullptr |
|
private |
The documentation for this class was generated from the following files: