|
LogViewer
A modern log viewer with AI-assisted analysis (Qt 6)
|
Docked panel showing aggregate statistics for the currently visible events. More...
#include <StatsSummaryPanel.hpp>


Public Slots | |
| void | Refresh () |
| Recompute all statistics from the current visible row set. | |
Public Member Functions | |
| StatsSummaryPanel (db::EventsContainer &events, EventsTableView *eventsView, QWidget *parent=nullptr) | |
Private Member Functions | |
| void | BuildLayout () |
| void | RefreshFormatStats (const std::vector< unsigned long > &indices) |
| void | RefreshSummaryTable (const std::vector< unsigned long > &indices) |
| void | RefreshTypeChart (const std::vector< unsigned long > &indices) |
| void | RefreshTopNTable (const std::vector< unsigned long > &indices) |
| void | RefreshFieldStats (const std::vector< unsigned long > &indices) |
| std::unique_ptr< IStatisticsStrategy > | SelectStrategy () const |
| Select the appropriate statistics strategy based on current event data. | |
| void | PopulateColumnCombo () |
| Populates the column combo from the current model header names. | |
| std::vector< unsigned long > | VisibleIndices () const |
Static Private Member Functions | |
| static std::string | DetectTimestampField (db::EventsContainer &events, const std::vector< unsigned long > &indices) |
Private Attributes | |
| db::EventsContainer & | m_events |
| EventsTableView * | m_eventsView |
| QGroupBox * | m_formatStatsGroup {nullptr} |
| Hidden for non-CAN formats. | |
| QTableWidget * | m_formatStatsTable {nullptr} |
| Format-specific rows from strategy. | |
| QTableWidget * | m_summaryTable {nullptr} |
| Key/value summary grid. | |
| QChartView * | m_typeChartView {nullptr} |
| Event-type horizontal bars. | |
| QComboBox * | m_columnCombo {nullptr} |
| Column selector for Top-N. | |
| QSpinBox * | m_topNSpin {nullptr} |
| How many top values to show. | |
| QTableWidget * | m_topNTable {nullptr} |
| Top-N value frequency table. | |
| QTableWidget * | m_fieldStatsTable {nullptr} |
| Per-field unique/fill stats. | |
Docked panel showing aggregate statistics for the currently visible events.
Four sections, all scoped to the filtered (visible) row set:
Bar charts expose hover tooltips with full label text and exact counts so that truncated axis labels never hide information.
Refreshes automatically via a modelReset connection wired up in MainWindow.
|
explicit |

|
private |


|
staticprivate |
Return the name of the first field whose values parse as timestamps, or an empty string if no such field is found.


|
private |
Populates the column combo from the current model header names.

|
slot |
Recompute all statistics from the current visible row set.

|
private |


|
private |


|
private |


|
private |


|
private |


|
private |
Select the appropriate statistics strategy based on current event data.


|
private |
Returns the indices of currently visible events. If no filter is active the full range [0, Size()) is returned.


|
private |
Column selector for Top-N.
|
private |
|
private |
|
private |
Per-field unique/fill stats.
|
private |
Hidden for non-CAN formats.
|
private |
Format-specific rows from strategy.
|
private |
Key/value summary grid.
|
private |
How many top values to show.
|
private |
Top-N value frequency table.
|
private |
Event-type horizontal bars.