LogViewer
A modern log viewer with AI-assisted analysis (Qt 6)
Loading...
Searching...
No Matches
ui::qt::SearchBar Class Reference

Compact browser-style inline search bar for the events table. More...

#include <SearchBar.hpp>

Inheritance diagram for ui::qt::SearchBar:
Inheritance graph
Collaboration diagram for ui::qt::SearchBar:
Collaboration graph

Signals

void SearchChanged (const QString &term, bool caseSensitive)
 
void NavigatePrev ()
 
void NavigateNext ()
 
void Closed ()
 

Public Member Functions

 SearchBar (QWidget *parent=nullptr)
 
void SetMatchInfo (int current, int total)
 Update the "current / total" match counter label.
 
void FocusInput ()
 Show the bar and focus the input field.
 
void CloseBar ()
 Clear the text and hide the bar.
 

Private Slots

void HandleTextChanged (const QString &text)
 
void HandleCaseToggled ()
 

Private Attributes

QLineEdit * m_edit {nullptr}
 
QLabel * m_matchLabel {nullptr}
 
QPushButton * m_prevBtn {nullptr}
 
QPushButton * m_nextBtn {nullptr}
 
QToolButton * m_caseBtn {nullptr}
 
QPushButton * m_closeBtn {nullptr}
 

Detailed Description

Compact browser-style inline search bar for the events table.

Hidden by default. Show with FocusInput() (typically triggered by Ctrl+F). Emits SearchChanged whenever the text or case-sensitivity flag changes. The owner is responsible for calling SetMatchInfo() to update the counter.

Constructor & Destructor Documentation

◆ SearchBar()

ui::qt::SearchBar::SearchBar ( QWidget *  parent = nullptr)
explicit
Here is the call graph for this function:

Member Function Documentation

◆ CloseBar()

void ui::qt::SearchBar::CloseBar ( )

Clear the text and hide the bar.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Closed

void ui::qt::SearchBar::Closed ( )
signal
Here is the caller graph for this function:

◆ FocusInput()

void ui::qt::SearchBar::FocusInput ( )

Show the bar and focus the input field.

◆ HandleCaseToggled

void ui::qt::SearchBar::HandleCaseToggled ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ HandleTextChanged

void ui::qt::SearchBar::HandleTextChanged ( const QString &  text)
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ NavigateNext

void ui::qt::SearchBar::NavigateNext ( )
signal
Here is the caller graph for this function:

◆ NavigatePrev

void ui::qt::SearchBar::NavigatePrev ( )
signal
Here is the caller graph for this function:

◆ SearchChanged

void ui::qt::SearchBar::SearchChanged ( const QString &  term,
bool  caseSensitive 
)
signal
Here is the caller graph for this function:

◆ SetMatchInfo()

void ui::qt::SearchBar::SetMatchInfo ( int  current,
int  total 
)

Update the "current / total" match counter label.

Here is the call graph for this function:

Member Data Documentation

◆ m_caseBtn

QToolButton* ui::qt::SearchBar::m_caseBtn {nullptr}
private

◆ m_closeBtn

QPushButton* ui::qt::SearchBar::m_closeBtn {nullptr}
private

◆ m_edit

QLineEdit* ui::qt::SearchBar::m_edit {nullptr}
private

◆ m_matchLabel

QLabel* ui::qt::SearchBar::m_matchLabel {nullptr}
private

◆ m_nextBtn

QPushButton* ui::qt::SearchBar::m_nextBtn {nullptr}
private

◆ m_prevBtn

QPushButton* ui::qt::SearchBar::m_prevBtn {nullptr}
private

The documentation for this class was generated from the following files: