Unified search bar for global event search and filtering.
More...
#include <UnifiedSearchBar.hpp>
|
| void | SearchChanged (const QString &query) |
| | Emitted when search query changes.
|
| |
| void | FilterRequested (const QString &field, const QString &value) |
| | Emitted when user wants to apply as filter.
|
| |
| void | MatchCountChanged (int current, int total) |
| | Emitted when search matches change.
|
| |
Unified search bar for global event search and filtering.
Provides:
- Type-ahead search across all event fields
- Live match counter
- Recent searches history
- Filter presets for quick access
- Keyboard shortcuts (Ctrl+F)
The search bar integrates with EventsTableView to navigate and filter matching events, and can save searches for quick re-use.
◆ UnifiedSearchBar()
| ui::qt::UnifiedSearchBar::UnifiedSearchBar |
( |
QWidget * |
parent = nullptr | ) |
|
|
explicit |
◆ ~UnifiedSearchBar()
| ui::qt::UnifiedSearchBar::~UnifiedSearchBar |
( |
| ) |
|
|
default |
◆ AddToSearchHistory()
| void ui::qt::UnifiedSearchBar::AddToSearchHistory |
( |
const QString & |
query | ) |
|
|
private |
◆ ClearSearch()
| void ui::qt::UnifiedSearchBar::ClearSearch |
( |
| ) |
|
Clear search and results.
◆ CountMatches()
| int ui::qt::UnifiedSearchBar::CountMatches |
( |
const QString & |
query | ) |
|
|
private |
Count events matching the search query.
◆ CreateFilterPresets()
| void ui::qt::UnifiedSearchBar::CreateFilterPresets |
( |
| ) |
|
|
private |
◆ CreateLayout()
| void ui::qt::UnifiedSearchBar::CreateLayout |
( |
| ) |
|
|
private |
◆ FilterRequested
| void ui::qt::UnifiedSearchBar::FilterRequested |
( |
const QString & |
field, |
|
|
const QString & |
value |
|
) |
| |
|
signal |
Emitted when user wants to apply as filter.
◆ FocusSearchInput()
| void ui::qt::UnifiedSearchBar::FocusSearchInput |
( |
| ) |
|
Focus the search input (called by Ctrl+F shortcut)
◆ GetSearchQuery()
| QString ui::qt::UnifiedSearchBar::GetSearchQuery |
( |
| ) |
const |
Get the current search query.
◆ LoadSearchHistory()
| void ui::qt::UnifiedSearchBar::LoadSearchHistory |
( |
| ) |
|
|
private |
◆ MatchCountChanged
| void ui::qt::UnifiedSearchBar::MatchCountChanged |
( |
int |
current, |
|
|
int |
total |
|
) |
| |
|
signal |
Emitted when search matches change.
◆ minimumSizeHint()
| QSize ui::qt::UnifiedSearchBar::minimumSizeHint |
( |
| ) |
const |
|
override |
◆ OnClearClicked
| void ui::qt::UnifiedSearchBar::OnClearClicked |
( |
| ) |
|
|
privateslot |
◆ OnDetailsClicked
| void ui::qt::UnifiedSearchBar::OnDetailsClicked |
( |
| ) |
|
|
privateslot |
◆ OnQuickFilterClicked
| void ui::qt::UnifiedSearchBar::OnQuickFilterClicked |
( |
| ) |
|
|
privateslot |
◆ OnSearchHistoryItemClicked
| void ui::qt::UnifiedSearchBar::OnSearchHistoryItemClicked |
( |
const QString & |
text | ) |
|
|
privateslot |
◆ OnSearchReturn
| void ui::qt::UnifiedSearchBar::OnSearchReturn |
( |
| ) |
|
|
privateslot |
◆ OnSearchSuggestionClicked
| void ui::qt::UnifiedSearchBar::OnSearchSuggestionClicked |
( |
const QString & |
suggestion | ) |
|
|
privateslot |
◆ OnSearchTextChanged
| void ui::qt::UnifiedSearchBar::OnSearchTextChanged |
( |
const QString & |
text | ) |
|
|
privateslot |
◆ SaveSearchHistory()
| void ui::qt::UnifiedSearchBar::SaveSearchHistory |
( |
| ) |
|
|
private |
◆ SearchChanged
| void ui::qt::UnifiedSearchBar::SearchChanged |
( |
const QString & |
query | ) |
|
|
signal |
Emitted when search query changes.
◆ SetEventsSource()
Set the events source for searching.
◆ SetEventsView()
Set the events view for navigation.
◆ sizeHint()
| QSize ui::qt::UnifiedSearchBar::sizeHint |
( |
| ) |
const |
|
override |
◆ UpdateMatchCount()
| void ui::qt::UnifiedSearchBar::UpdateMatchCount |
( |
| ) |
|
|
private |
◆ m_clearButton
| QPushButton* ui::qt::UnifiedSearchBar::m_clearButton = nullptr |
|
private |
◆ m_completer
| QCompleter* ui::qt::UnifiedSearchBar::m_completer = nullptr |
|
private |
◆ m_events
◆ m_eventsView
◆ m_filterButton
| QPushButton* ui::qt::UnifiedSearchBar::m_filterButton = nullptr |
|
private |
◆ m_lastMatchCount
| int ui::qt::UnifiedSearchBar::m_lastMatchCount = 0 |
|
private |
◆ m_lastQuery
| QString ui::qt::UnifiedSearchBar::m_lastQuery |
|
private |
◆ m_matchCountDebounceTimer
| QTimer* ui::qt::UnifiedSearchBar::m_matchCountDebounceTimer = nullptr |
|
private |
◆ m_matchCountLabel
| QLabel* ui::qt::UnifiedSearchBar::m_matchCountLabel = nullptr |
|
private |
◆ m_searchHistory
| QStringList ui::qt::UnifiedSearchBar::m_searchHistory |
|
private |
◆ m_searchInput
| QLineEdit* ui::qt::UnifiedSearchBar::m_searchInput = nullptr |
|
private |
◆ m_settings
| std::unique_ptr<QSettings> ui::qt::UnifiedSearchBar::m_settings |
|
private |
◆ MATCH_COUNT_DEBOUNCE_MS
| constexpr int ui::qt::UnifiedSearchBar::MATCH_COUNT_DEBOUNCE_MS = 300 |
|
staticconstexprprivate |
◆ MAX_HISTORY
| constexpr int ui::qt::UnifiedSearchBar::MAX_HISTORY = 10 |
|
staticconstexprprivate |
The documentation for this class was generated from the following files: