#include <EventsTableView.hpp>
|
| void | JumpToTimestamp () |
| | Opens an input dialog and scrolls to the event with the nearest timestamp.
|
| |
|
| void | OnColumnMoved () |
| | Called when user drags column header to reorder.
|
| |
◆ EventsTableView()
◆ ~EventsTableView()
| ui::qt::EventsTableView::~EventsTableView |
( |
| ) |
|
|
overridedefault |
◆ AddQuickFilterActions()
| void ui::qt::EventsTableView::AddQuickFilterActions |
( |
QMenu & |
menu, |
|
|
const QModelIndex & |
cell |
|
) |
| |
Adds the quick filters for the clicked cell to menu: show only / exclude its value, a time window around its event and the conversation of its sender and receiver (see QuickFilters.hpp).
◆ AddToScenarioRequested
| void ui::qt::EventsTableView::AddToScenarioRequested |
( |
int |
actualRow | ) |
|
|
signal |
Emitted when the user chooses "Add to Scenario" from the context menu.
◆ BookmarkRequested
| void ui::qt::EventsTableView::BookmarkRequested |
( |
int |
actualRow | ) |
|
|
signal |
Emitted when the user chooses "Bookmark Event" from the context menu.
◆ CaptureSelectionBeforeReset()
| void ui::qt::EventsTableView::CaptureSelectionBeforeReset |
( |
| ) |
|
|
private |
A model reset drops the selection: remember it by event (before the reset) and select the same events again afterwards.
◆ ClearColumnFilters()
| void ui::qt::EventsTableView::ClearColumnFilters |
( |
| ) |
|
◆ ClearFilter()
| void ui::qt::EventsTableView::ClearFilter |
( |
| ) |
|
|
overridevirtual |
Clears any active filter; all events become visible via O(1) path.
Implements ui::IEventsListView.
◆ ClearTimeWindow()
| void ui::qt::EventsTableView::ClearTimeWindow |
( |
| ) |
|
◆ ConnectSelectionSignals()
| void ui::qt::EventsTableView::ConnectSelectionSignals |
( |
| ) |
|
|
private |
◆ CopySelectedRowsAsCsv()
| void ui::qt::EventsTableView::CopySelectedRowsAsCsv |
( |
| ) |
|
|
private |
◆ CopySelectedRowsAsJson()
| void ui::qt::EventsTableView::CopySelectedRowsAsJson |
( |
| ) |
|
|
private |
◆ CurrentActualRow()
| int ui::qt::EventsTableView::CurrentActualRow |
( |
| ) |
const |
◆ CurrentActualRowChanged
| void ui::qt::EventsTableView::CurrentActualRowChanged |
( |
int |
actualRow | ) |
|
|
signal |
◆ FirstVisibleActualRow()
| int ui::qt::EventsTableView::FirstVisibleActualRow |
( |
| ) |
const |
Returns the actual-container row of the first fully visible row, or -1 if the view has no model or no visible rows.
◆ GetBaseFilteredIndices()
| const std::vector< unsigned long > * ui::qt::EventsTableView::GetBaseFilteredIndices |
( |
| ) |
const |
◆ GetFilteredIndices()
| const std::vector< unsigned long > * ui::qt::EventsTableView::GetFilteredIndices |
( |
| ) |
const |
Returns nullptr if no filter is active, otherwise a pointer to the (possibly empty) filtered indices — callers must not treat a non-null empty result the same as "no filter" (see IsFilterActive()).
◆ HasColumnFilters()
| bool ui::qt::EventsTableView::HasColumnFilters |
( |
| ) |
const |
Excel-style per-column value filters (opened from the filter button in each column header). They are ANDed with each other and with every filter set through SetFilteredEvents()/ClearFilter().
◆ HasTimeWindow()
| bool ui::qt::EventsTableView::HasTimeWindow |
( |
| ) |
const |
True while the rows are narrowed by ShowTimeWindow() and nobody replaced that filter since.
◆ InitializeView()
| void ui::qt::EventsTableView::InitializeView |
( |
| ) |
|
|
private |
◆ IsFilterActive()
| bool ui::qt::EventsTableView::IsFilterActive |
( |
| ) |
const |
True if a filter is active, even if it currently matches zero events.
◆ JumpToTimestamp
| void ui::qt::EventsTableView::JumpToTimestamp |
( |
| ) |
|
|
slot |
Opens an input dialog and scrolls to the event with the nearest timestamp.
◆ MatchInfoChanged
| void ui::qt::EventsTableView::MatchInfoChanged |
( |
int |
current, |
|
|
int |
total |
|
) |
| |
|
signal |
◆ NavigateToNextMatch()
| void ui::qt::EventsTableView::NavigateToNextMatch |
( |
| ) |
|
◆ NavigateToPrevMatch()
| void ui::qt::EventsTableView::NavigateToPrevMatch |
( |
| ) |
|
◆ OnAttachedToModel()
Called when the view is attached to a model.
This method is called after the view is registered with a model. Views can use this to initialize model-specific state.
- Parameters
-
| model | The model the view was attached to (optional) |
◆ OnColumnMoved
| void ui::qt::EventsTableView::OnColumnMoved |
( |
| ) |
|
|
privateslot |
Called when user drags column header to reorder.
◆ OnCurrentIndexUpdated()
| void ui::qt::EventsTableView::OnCurrentIndexUpdated |
( |
const int |
index | ) |
|
|
overridevirtual |
Called when the current item index in the model is updated.
This method should be implemented to update the view based on the new current item index.
- Parameters
-
| index | The new current item index in the model |
Implements mvc::IView.
◆ OnDataUpdated()
| void ui::qt::EventsTableView::OnDataUpdated |
( |
| ) |
|
|
overridevirtual |
Called when the model's data is updated.
This method should be implemented to refresh the view with the latest data from the model.
Implements mvc::IView.
◆ OnDetachedFromModel()
| virtual void mvc::IView::OnDetachedFromModel |
( |
| ) |
|
|
inlinevirtualinherited |
Called when the view is detached from a model.
This method is called when the view is unregistered from a model. Views can use this to clean up model-specific state.
◆ OnSearchMatchesChanged()
| void ui::qt::EventsTableView::OnSearchMatchesChanged |
( |
| ) |
|
|
private |
Keeps the "n of m" search position on the same match after the rows change.
◆ RefreshColumns()
| void ui::qt::EventsTableView::RefreshColumns |
( |
| ) |
|
|
overridevirtual |
◆ RefreshView()
| void ui::qt::EventsTableView::RefreshView |
( |
| ) |
|
|
overridevirtual |
◆ ResizeColumnsToConfiguration()
| void ui::qt::EventsTableView::ResizeColumnsToConfiguration |
( |
| ) |
|
|
private |
◆ ResolveToActualIndex()
| int ui::qt::EventsTableView::ResolveToActualIndex |
( |
int |
modelRow | ) |
const |
Converts a model row index to the corresponding EventsContainer index (handles filtering: when filtering is active, model rows != container indices)
◆ RestoreColumnOrder()
| void ui::qt::EventsTableView::RestoreColumnOrder |
( |
| ) |
|
|
private |
◆ RestoreColumnWidths()
| void ui::qt::EventsTableView::RestoreColumnWidths |
( |
| ) |
|
|
private |
◆ RestoreSelectionAfterReset()
| void ui::qt::EventsTableView::RestoreSelectionAfterReset |
( |
| ) |
|
|
private |
◆ SaveColumnOrder()
| void ui::qt::EventsTableView::SaveColumnOrder |
( |
| ) |
const |
|
private |
◆ SaveColumnWidths()
| void ui::qt::EventsTableView::SaveColumnWidths |
( |
| ) |
const |
|
private |
◆ ScrollToActualRow()
| void ui::qt::EventsTableView::ScrollToActualRow |
( |
int |
actualRow, |
|
|
bool |
takeFocus = true |
|
) |
| |
◆ ScrollToMatchIndex()
| void ui::qt::EventsTableView::ScrollToMatchIndex |
( |
int |
matchIndex | ) |
|
|
private |
◆ SelectedActualIndices()
| std::vector< int > ui::qt::EventsTableView::SelectedActualIndices |
( |
| ) |
const |
|
private |
Returns actual event indices for all currently selected table rows.
◆ SetFilteredEvents()
| void ui::qt::EventsTableView::SetFilteredEvents |
( |
const std::vector< unsigned long > & |
filteredIndices | ) |
|
|
overridevirtual |
◆ SetSearchTerm()
| void ui::qt::EventsTableView::SetSearchTerm |
( |
const QString & |
term, |
|
|
bool |
caseSensitive |
|
) |
| |
◆ ShowColumnFilterPopup()
| void ui::qt::EventsTableView::ShowColumnFilterPopup |
( |
int |
column | ) |
|
|
private |
◆ ShowContextMenu()
| void ui::qt::EventsTableView::ShowContextMenu |
( |
const QPoint & |
pos | ) |
|
|
private |
◆ ShowTimeWindow()
| bool ui::qt::EventsTableView::ShowTimeWindow |
( |
int |
actualRow, |
|
|
int |
seconds |
|
) |
| |
Narrows the rows to the events within ±seconds of actualRow's timestamp, on top of the filter set by the rest of the application (a new window replaces the previous one). False if the event has no parseable timestamp.
◆ SyncScrollTo()
| void ui::qt::EventsTableView::SyncScrollTo |
( |
int |
actualRow | ) |
|
Scrolls the viewport so that actualRow is visible at the top without changing the current selection or stealing focus.
◆ UpdateColors()
| void ui::qt::EventsTableView::UpdateColors |
( |
| ) |
|
|
overridevirtual |
◆ m_currentMatchActual
| int ui::qt::EventsTableView::m_currentMatchActual {-1} |
|
private |
event of the current search match
◆ m_currentMatchIndex
| int ui::qt::EventsTableView::m_currentMatchIndex {-1} |
|
private |
◆ m_events
◆ m_filterHeader
◆ m_model
◆ m_resetCurrentActual
| int ui::qt::EventsTableView::m_resetCurrentActual {-1} |
|
private |
◆ m_resetGeneration
| std::uint64_t ui::qt::EventsTableView::m_resetGeneration {0} |
|
private |
◆ m_resetSelectedActual
| std::vector<int> ui::qt::EventsTableView::m_resetSelectedActual |
|
private |
◆ m_restoringSelection
| bool ui::qt::EventsTableView::m_restoringSelection {false} |
|
private |
◆ m_timeWindow
The documentation for this class was generated from the following files: