LogViewer
A modern log viewer with AI-assisted analysis (Qt 6)
Loading...
Searching...
No Matches
IMainWindowView.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4
5namespace ui
6{
7
13{
14 public:
15 virtual ~IMainWindowView() = default;
16
18 virtual std::string ReadSearchQuery() const = 0;
19
21 virtual std::string CurrentStatusText() const = 0;
22
24 virtual void UpdateStatusText(const std::string& text) = 0;
25
27 virtual void SetSearchControlsEnabled(bool enabled) = 0;
28
30 virtual void ToggleProgressVisibility(bool visible) = 0;
31
33 virtual void ConfigureProgressRange(int range) = 0;
34
36 virtual void UpdateProgressValue(int value) = 0;
37
39 virtual void ProcessPendingEvents() = 0;
40
42 virtual void RefreshLayout() = 0;
43
47 virtual std::string AskString(const std::string& title,
48 const std::string& prompt, const std::string& defaultValue,
49 bool& ok) = 0;
50
56 virtual void UpdateFilterStatus(int totalEvents, int filteredCount,
57 int activeFilterCount, const std::string& filterDetails) = 0;
58};
59
60} // namespace ui
Toolkit-agnostic contract exposing the handful of main-window interactions needed by the presenter lo...
Definition IMainWindowView.hpp:13
virtual void ConfigureProgressRange(int range)=0
Adjusts the progress indicator's range.
virtual void SetSearchControlsEnabled(bool enabled)=0
Enables/disables the search controls to avoid re-entrancy.
virtual void UpdateStatusText(const std::string &text)=0
Updates the status-bar message.
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 UpdateFilterStatus(int totalEvents, int filteredCount, int activeFilterCount, const std::string &filterDetails)=0
Updates the filter status bar with filter information.
virtual std::string CurrentStatusText() const =0
virtual ~IMainWindowView()=default
virtual void ToggleProgressVisibility(bool visible)=0
Shows or hides the embedded progress indicator.
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 std::string ReadSearchQuery() const =0
virtual void RefreshLayout()=0
Requests a full window refresh/layout recalculation.
Definition IErrorPresenter.hpp:5