|
LogViewer
A modern log viewer with AI-assisted analysis (Qt 6)
|
#include <MainWindow.hpp>


Classes | |
| struct | FileTypeChoice |
| One entry of the "Select File Type" prompt shown for unknown extensions. More... | |
Public Member Functions | |
| MainWindow (mvc::IController &controller, db::EventsContainer &events, StartupSplash *splash=nullptr, QWidget *parent=nullptr) | |
| ~MainWindow () override | |
| std::string | ReadSearchQuery () const override |
| std::string | CurrentStatusText () const override |
| void | UpdateStatusText (const std::string &text) override |
| Updates the status-bar message. | |
| void | SetSearchControlsEnabled (bool enabled) override |
| Enables/disables the search controls to avoid re-entrancy. | |
| void | ToggleProgressVisibility (bool visible) override |
| Shows or hides the embedded progress indicator. | |
| void | ConfigureProgressRange (int range) override |
| Adjusts the progress indicator's range. | |
| void | UpdateProgressValue (int value) override |
| Updates the progress indicator's current value. | |
| void | ProcessPendingEvents () override |
| Gives the UI thread a chance to process pending events. | |
| void | RefreshLayout () override |
| Requests a full window refresh/layout recalculation. | |
| std::string | AskString (const std::string &title, const std::string &prompt, const std::string &defaultValue, bool &ok) override |
| Shows a modal input dialog. | |
| void | UpdateFilterStatus (int totalEvents, int filteredCount, int activeFilterCount, const std::string &filterDetails) override |
| Updates the filter status bar with filter information. | |
| void | OnSearchResultActivated (long eventId) override |
| void | OnConfigChanged () override |
| void | OnPluginEvent (plugin::PluginEvent event, const std::string &pluginId, plugin::IPlugin *plugin) override |
| bool | eventFilter (QObject *watched, QEvent *event) override |
| void | RefreshRecentFilesMenu () |
| void | HandleDroppedFile (const QString &path) |
Static Public Member Functions | |
| static std::vector< FileTypeChoice > | FileTypeChoices () |
| The formats offered by PromptForFileType(). | |
| static void | ShowEventsTablePage (QStackedWidget *eventsStack, QTabWidget *tabs=nullptr) |
Private Member Functions | |
| void | keyPressEvent (QKeyEvent *event) override |
| void | dragEnterEvent (QDragEnterEvent *event) override |
| void | dropEvent (QDropEvent *event) override |
| void | AutoSwitchViewForFile (const QString &filePath) |
| Auto-switch to appropriate view based on file extension. | |
| std::unique_ptr< parser::IDataParser > | CreateParserFor (const std::filesystem::path &path) |
| void | InitializeUi (db::EventsContainer &events) |
| void | InitializePresenter (mvc::IController &controller, db::EventsContainer &events) |
| void | MarkAnalysisPanelsDirty () |
| void | RefreshCurrentAnalysisPanel () |
| void | ApplyExtendedFilters () |
| void | ApplyActorFilter () |
| void | ActivateSideBySide () |
| void | RunFilter (std::function< std::vector< unsigned long >()> worker, const QString &statusMsg) |
| void | SetupMenus () |
| void | RefreshLayoutMenu () |
| void | ApplyLayout (const LayoutDescriptor &layout) |
| Apply a layout: restores dock state (user layouts) and tab visibility. | |
| LayoutDescriptor | CaptureLayout (const QString &name) const |
| Capture the current window state as a named layout descriptor. | |
| void | AddToRecentFiles (const QString &filePath) |
| void | LoadRecentFiles () |
| void | SaveRecentFiles () |
| void | ShowError (const QString &title, const QString &message) |
| std::vector< int > | GetRowsToExport () const |
| QString | PromptForFileType (const std::filesystem::path &path) |
| void | StopTailing () |
| void | OnOpenResultsFolderRequested () |
| File > Open Results Folder: pick a folder and show it in the Run Explorer. | |
| void | OpenResultsFolder (const QString &folder) |
Shows the Run Explorer (created on first use) scanning folder. | |
| bool | ReplaceWithFile (const QString &path) |
| void | OpenTestLog (const QString &path) |
| void | OpenTestLogWithPrevious (const QString &previousPath, const QString &previousName, const QString &path, const QString &name) |
| bool | ShouldCheckForUpdates () const |
| void | setupPluginManager () |
| void | loadPlugins () |
| void | reloadPlugins () |
| void | createPluginTab (const std::string &pluginId, plugin::IPlugin *plugin) |
| void | removePluginTab (const std::string &pluginId) |
| void | createPluginLeftTab (const std::string &pluginId, plugin::IPlugin *plugin) |
| void | removePluginLeftTab (const std::string &pluginId) |
| void | removePluginBottomTab (const std::string &pluginId) |
| void | removePluginRightTab (const std::string &pluginId) |
| QWidget * | CreateHostContainerForPluginWidget (QWidget *pluginWidget, QTabWidget *parentTabs) |
| bool | TryAddPluginMainPanel (const std::string &pluginId, plugin::IPlugin *plugin) |
| bool | TryAddPluginBottomPanel (const std::string &pluginId, plugin::IPlugin *plugin) |
| bool | TryAddPluginRightPanel (const std::string &pluginId, plugin::IPlugin *plugin) |
| void | RefreshPluginPanels () |
| void | RemoveMainPanel () |
| void | RemoveLeftPanel () |
| void | RemoveBottomPanel () |
| void | RemoveRightPanel () |
| void | RemoveAllPluginBottomPanels () |
| Remove all plugin-provided bottom-dock C-ABI panels (used by reloadPlugins()). | |
| void | ShowTabContextMenu (QTabWidget *tabWidget, const QPoint &pos) |
| Show a right-click context menu on a tab bar with sort/reorder actions. | |
Static Private Member Functions | |
| static QString | LastDir (const QString &key, const QString &fallback) |
Return the last directory used for key, or fallback if unset. | |
| static void | SaveLastDir (const QString &key, const QString &filePath) |
Persist the parent directory of filePath for key. | |
| ui::qt::MainWindow::MainWindow | ( | mvc::IController & | controller, |
| db::EventsContainer & | events, | ||
| StartupSplash * | splash = nullptr, |
||
| QWidget * | parent = nullptr |
||
| ) |

|
override |

|
private |
|
private |
|
private |

|
private |

|
private |
Apply a layout: restores dock state (user layouts) and tab visibility.
|
overridevirtual |
Shows a modal input dialog.
| ok | Set to true when the user accepted, false when cancelled. |
Implements ui::IMainWindowView.
|
private |
Auto-switch to appropriate view based on file extension.

|
private |
Capture the current window state as a named layout descriptor.
|
overridevirtual |
Adjusts the progress indicator's range.
Implements ui::IMainWindowView.
|
private |
|
private |

|
private |

|
private |

|
overridevirtual |
Implements ui::IMainWindowView.
|
overrideprivate |
|
overrideprivate |

|
override |
|
static |
The formats offered by PromptForFileType().
|
private |
| void ui::qt::MainWindow::HandleDroppedFile | ( | const QString & | path | ) |


|
private |


|
private |


|
overrideprivate |

|
staticprivate |
Return the last directory used for key, or fallback if unset.
|
private |


|
private |

|
private |
|
privateslot |

|
privateslot |

|
privateslot |

|
privateslot |

|
privateslot |

|
overridevirtual |
Called when configuration has been changed and saved
Implements config::ConfigObserver.

|
privateslot |
|
privateslot |
|
privateslot |

|
privateslot |
|
privateslot |
|
privateslot |

|
privateslot |


|
privateslot |

|
privateslot |

|
privateslot |

|
privateslot |

|
private |
File > Open Results Folder: pick a folder and show it in the Run Explorer.
|
privateslot |

|
overridevirtual |
|
privateslot |
|
privateslot |
Gathers filter state from all panels and forwards it to FilterProfilesPanel::StoreProfile().
|
privateslot |
|
privateslot |
|
privateslot |

|
privateslot |


|
overridevirtual |
|
privateslot |

|
privateslot |

|
privateslot |

|
privateslot |
|
privateslot |

|
privateslot |
|
privateslot |


|
private |
Shows the Run Explorer (created on first use) scanning folder.

|
private |
Run Explorer: load one test log, or previousPath merged with path (aliases = test names) to see what the previous test left behind.

|
private |

|
overridevirtual |
Gives the UI thread a chance to process pending events.
Implements ui::IMainWindowView.
|
private |
Show a file-type picker when the extension is unknown; returns the chosen extension (e.g. ".evl") or an empty string if the user cancelled.
|
overridevirtual |
Implements ui::IMainWindowView.

|
private |
|
overridevirtual |
Requests a full window refresh/layout recalculation.
Implements ui::IMainWindowView.
|
private |
|
private |

| void ui::qt::MainWindow::RefreshRecentFilesMenu | ( | ) |

|
private |

|
private |
Remove all plugin-provided bottom-dock C-ABI panels (used by reloadPlugins()).
|
private |
|
private |
|
private |
|
private |

|
private |

|
private |

|
private |

|
private |
|
private |
The normal load path for one file, replacing the current data. Returns false when no parser was chosen; throws like MainWindowPresenter::LoadLogFile.
|
private |

|
staticprivate |
Persist the parent directory of filePath for key.
|
private |

|
overridevirtual |
Enables/disables the search controls to avoid re-entrancy.
Implements ui::IMainWindowView.
|
private |


|
private |


|
private |

|
private |
|
static |
Shows the events table page (page 0) of the Events tab's stack instead of the side-by-side page; with tabs also makes the Events tab current.
|
private |
Show a right-click context menu on a tab bar with sort/reorder actions.

|
private |
Stop following the current file and uncheck File > Follow File. Called before any load/merge replaces the container contents.
|
overridevirtual |
Shows or hides the embedded progress indicator.
Implements ui::IMainWindowView.
|
private |

|
private |

|
private |

|
overridevirtual |
Updates the filter status bar with filter information.
| totalEvents | Total number of events |
| filteredCount | Number of events matching filters |
| activeFilterCount | Number of active filters |
| filterDetails | Description of active filters |
Implements ui::IMainWindowView.
|
overridevirtual |
Updates the progress indicator's current value.
Implements ui::IMainWindowView.
|
overridevirtual |
Updates the status-bar message.
Implements ui::IMainWindowView.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Optional DBC for CAN signal decoding.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Optional template dir for evlog BINARY payloads.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
non-owning; valid only during construction
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |