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

Toolkit-agnostic contract exposing the handful of main-window interactions needed by the presenter logic. More...

#include <IMainWindowView.hpp>

Inheritance diagram for ui::IMainWindowView:
Inheritance graph
Collaboration diagram for ui::IMainWindowView:
Collaboration graph

Public Member Functions

virtual ~IMainWindowView ()=default
 
virtual std::string ReadSearchQuery () const =0
 
virtual std::string CurrentStatusText () const =0
 
virtual void UpdateStatusText (const std::string &text)=0
 Updates the status-bar message.
 
virtual void SetSearchControlsEnabled (bool enabled)=0
 Enables/disables the search controls to avoid re-entrancy.
 
virtual void ToggleProgressVisibility (bool visible)=0
 Shows or hides the embedded progress indicator.
 
virtual void ConfigureProgressRange (int range)=0
 Adjusts the progress indicator's range.
 
virtual void UpdateProgressValue (int value)=0
 Updates the progress indicator's current value.
 
virtual void ProcessPendingEvents ()=0
 Gives the UI thread a chance to process pending events.
 
virtual void RefreshLayout ()=0
 Requests a full window refresh/layout recalculation.
 
virtual std::string AskString (const std::string &title, const std::string &prompt, const std::string &defaultValue, bool &ok)=0
 Shows a modal input dialog.
 
virtual void UpdateFilterStatus (int totalEvents, int filteredCount, int activeFilterCount, const std::string &filterDetails)=0
 Updates the filter status bar with filter information.
 

Detailed Description

Toolkit-agnostic contract exposing the handful of main-window interactions needed by the presenter logic.

Constructor & Destructor Documentation

◆ ~IMainWindowView()

virtual ui::IMainWindowView::~IMainWindowView ( )
virtualdefault

Member Function Documentation

◆ AskString()

virtual std::string ui::IMainWindowView::AskString ( const std::string &  title,
const std::string &  prompt,
const std::string &  defaultValue,
bool &  ok 
)
pure virtual

Shows a modal input dialog.

Parameters
okSet to true when the user accepted, false when cancelled.
Returns
The entered string, or empty if cancelled.

Implemented in ui::qt::MainWindow.

Here is the caller graph for this function:

◆ ConfigureProgressRange()

virtual void ui::IMainWindowView::ConfigureProgressRange ( int  range)
pure virtual

Adjusts the progress indicator's range.

Implemented in ui::qt::MainWindow.

Here is the caller graph for this function:

◆ CurrentStatusText()

virtual std::string ui::IMainWindowView::CurrentStatusText ( ) const
pure virtual
Returns
The status-bar message currently shown to the user.

Implemented in ui::qt::MainWindow.

Here is the caller graph for this function:

◆ ProcessPendingEvents()

virtual void ui::IMainWindowView::ProcessPendingEvents ( )
pure virtual

Gives the UI thread a chance to process pending events.

Implemented in ui::qt::MainWindow.

Here is the caller graph for this function:

◆ ReadSearchQuery()

virtual std::string ui::IMainWindowView::ReadSearchQuery ( ) const
pure virtual
Returns
Current text from the search input box.

Implemented in ui::qt::MainWindow.

Here is the caller graph for this function:

◆ RefreshLayout()

virtual void ui::IMainWindowView::RefreshLayout ( )
pure virtual

Requests a full window refresh/layout recalculation.

Implemented in ui::qt::MainWindow.

Here is the caller graph for this function:

◆ SetSearchControlsEnabled()

virtual void ui::IMainWindowView::SetSearchControlsEnabled ( bool  enabled)
pure virtual

Enables/disables the search controls to avoid re-entrancy.

Implemented in ui::qt::MainWindow.

Here is the caller graph for this function:

◆ ToggleProgressVisibility()

virtual void ui::IMainWindowView::ToggleProgressVisibility ( bool  visible)
pure virtual

Shows or hides the embedded progress indicator.

Implemented in ui::qt::MainWindow.

Here is the caller graph for this function:

◆ UpdateFilterStatus()

virtual void ui::IMainWindowView::UpdateFilterStatus ( int  totalEvents,
int  filteredCount,
int  activeFilterCount,
const std::string &  filterDetails 
)
pure virtual

Updates the filter status bar with filter information.

Parameters
totalEventsTotal number of events
filteredCountNumber of events matching filters
activeFilterCountNumber of active filters
filterDetailsDescription of active filters

Implemented in ui::qt::MainWindow.

Here is the caller graph for this function:

◆ UpdateProgressValue()

virtual void ui::IMainWindowView::UpdateProgressValue ( int  value)
pure virtual

Updates the progress indicator's current value.

Implemented in ui::qt::MainWindow.

Here is the caller graph for this function:

◆ UpdateStatusText()

virtual void ui::IMainWindowView::UpdateStatusText ( const std::string &  text)
pure virtual

Updates the status-bar message.

Implemented in ui::qt::MainWindow.

Here is the caller graph for this function:

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