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

Run Explorer: the tests of one results folder (one safeAPI merged log per test), with verdict, duration, entry count and failure message. More...

#include <RunExplorerDialog.hpp>

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

Signals

void OpenTestRequested (const QString &path)
 
void OpenWithPreviousRequested (const QString &previousPath, const QString &previousName, const QString &path, const QString &name)
 
void ScanFinished ()
 A scan started by OpenFolder() ended (finished or cancelled).
 

Public Member Functions

 RunExplorerDialog (QWidget *parent=nullptr)
 
 ~RunExplorerDialog () override
 
void OpenFolder (const QString &folder)
 Scans folder in the background (a running scan is cancelled first).
 
void SetEntries (const QString &folder, std::vector< analyzer::TestRunEntry > entries)
 Shows entries, which must be in run order (as ScanResultsFolder returns them).
 
const std::vector< analyzer::TestRunEntry > & Entries () const
 

Private Member Functions

void OnScanFinished ()
 
void Rebuild ()
 
void ApplyVerdictFilter ()
 
void UpdateActions ()
 
int CurrentEntry () const
 entry index of the current row, -1 for none / a group
 
QTreeWidgetItem * CreateTestItem (int index) const
 
void OpenCurrent ()
 
void OpenCurrentWithPrevious ()
 

Private Attributes

QLabel * m_summary {nullptr}
 
QComboBox * m_verdictFilter {nullptr}
 
QCheckBox * m_groupByMessage {nullptr}
 
QProgressBar * m_progress {nullptr}
 
QPushButton * m_cancelButton {nullptr}
 
QTreeWidget * m_tree {nullptr}
 
QPushButton * m_openButton {nullptr}
 
QPushButton * m_openWithPreviousButton {nullptr}
 
QAction * m_openAction {nullptr}
 
QAction * m_openWithPreviousAction {nullptr}
 
QFutureWatcher< std::vector< analyzer::TestRunEntry > > * m_watcher {nullptr}
 
QString m_folder
 
std::vector< analyzer::TestRunEntry > m_entries
 

Detailed Description

Run Explorer: the tests of one results folder (one safeAPI merged log per test), with verdict, duration, entry count and failure message.

A non-modal dialog: it stays open next to the main window while logs are opened from it. The folder is scanned on a worker thread (analyzer::ScanResultsFolder through QtConcurrent) with a progress bar and a Cancel button. Rows can be sorted by any column, filtered by verdict, and failures grouped by their normalised message.

Activating a test row emits OpenTestRequested(); "Open with Previous Test" emits OpenWithPreviousRequested() with the test that ran just before it.

Constructor & Destructor Documentation

◆ RunExplorerDialog()

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

◆ ~RunExplorerDialog()

ui::qt::RunExplorerDialog::~RunExplorerDialog ( )
override

Member Function Documentation

◆ ApplyVerdictFilter()

void ui::qt::RunExplorerDialog::ApplyVerdictFilter ( )
private
Here is the caller graph for this function:

◆ CreateTestItem()

QTreeWidgetItem * ui::qt::RunExplorerDialog::CreateTestItem ( int  index) const
private
Here is the caller graph for this function:

◆ CurrentEntry()

int ui::qt::RunExplorerDialog::CurrentEntry ( ) const
private

entry index of the current row, -1 for none / a group

Here is the caller graph for this function:

◆ Entries()

const std::vector< analyzer::TestRunEntry > & ui::qt::RunExplorerDialog::Entries ( ) const
inline

◆ OnScanFinished()

void ui::qt::RunExplorerDialog::OnScanFinished ( )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ OpenCurrent()

void ui::qt::RunExplorerDialog::OpenCurrent ( )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ OpenCurrentWithPrevious()

void ui::qt::RunExplorerDialog::OpenCurrentWithPrevious ( )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ OpenFolder()

void ui::qt::RunExplorerDialog::OpenFolder ( const QString &  folder)

Scans folder in the background (a running scan is cancelled first).

Here is the call graph for this function:

◆ OpenTestRequested

void ui::qt::RunExplorerDialog::OpenTestRequested ( const QString &  path)
signal
Here is the caller graph for this function:

◆ OpenWithPreviousRequested

void ui::qt::RunExplorerDialog::OpenWithPreviousRequested ( const QString &  previousPath,
const QString &  previousName,
const QString &  path,
const QString &  name 
)
signal
Here is the caller graph for this function:

◆ Rebuild()

void ui::qt::RunExplorerDialog::Rebuild ( )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ScanFinished

void ui::qt::RunExplorerDialog::ScanFinished ( )
signal

A scan started by OpenFolder() ended (finished or cancelled).

Here is the caller graph for this function:

◆ SetEntries()

void ui::qt::RunExplorerDialog::SetEntries ( const QString &  folder,
std::vector< analyzer::TestRunEntry >  entries 
)

Shows entries, which must be in run order (as ScanResultsFolder returns them).

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

◆ UpdateActions()

void ui::qt::RunExplorerDialog::UpdateActions ( )
private
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ m_cancelButton

QPushButton* ui::qt::RunExplorerDialog::m_cancelButton {nullptr}
private

◆ m_entries

std::vector<analyzer::TestRunEntry> ui::qt::RunExplorerDialog::m_entries
private

◆ m_folder

QString ui::qt::RunExplorerDialog::m_folder
private

◆ m_groupByMessage

QCheckBox* ui::qt::RunExplorerDialog::m_groupByMessage {nullptr}
private

◆ m_openAction

QAction* ui::qt::RunExplorerDialog::m_openAction {nullptr}
private

◆ m_openButton

QPushButton* ui::qt::RunExplorerDialog::m_openButton {nullptr}
private

◆ m_openWithPreviousAction

QAction* ui::qt::RunExplorerDialog::m_openWithPreviousAction {nullptr}
private

◆ m_openWithPreviousButton

QPushButton* ui::qt::RunExplorerDialog::m_openWithPreviousButton {nullptr}
private

◆ m_progress

QProgressBar* ui::qt::RunExplorerDialog::m_progress {nullptr}
private

◆ m_summary

QLabel* ui::qt::RunExplorerDialog::m_summary {nullptr}
private

◆ m_tree

QTreeWidget* ui::qt::RunExplorerDialog::m_tree {nullptr}
private

◆ m_verdictFilter

QComboBox* ui::qt::RunExplorerDialog::m_verdictFilter {nullptr}
private

◆ m_watcher

QFutureWatcher<std::vector<analyzer::TestRunEntry> >* ui::qt::RunExplorerDialog::m_watcher {nullptr}
private

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