NDEVR
API Documentation
LogManagerDialog

A dialog which shows multiple log views, where each log is a tab. More...

Collaboration diagram for LogManagerDialog:
[legend]

Public Member Functions

 LogManagerDialog (QWidget *parent=nullptr)
 Constructs the log manager dialog.
void addLog (const StringView &name, InfoPipe *log)
 Adds a named log pipe as a new tab.
void addLogView (LogView *log_view)
 Adds an existing LogView widget as a new tab.
void setLogManager (LogManager *manager)
 Sets the log manager that provides the available logs.
void setTimeSpans (const Buffer< TimeSpan > &time_spans)
 Sets the selectable time spans used to filter log entries.
QSize sizeHint () const override
 Returns the preferred size hint for the dialog.

Protected Member Functions

void updateFromManager ()
 Checks the log manager for new logs and updates the tabs accordingly.

Protected Attributes

Buttonm_choose_log
 Button that opens the log file chooser.
FileChooserDialogm_chooser_dialog
 Dialog for choosing a log file to open.
LogViewm_combined_log_view
 A log view that aggregates messages from all logs.
QTimer m_log_manager_check
 Timer that periodically polls the log manager for changes.
Buffer< LogView * > m_log_view
 The log view widgets displayed in tabs.
Dictionary< String, InfoPipe * > m_logs
 Mapping of log names to their info pipes.
LogManagerm_manager
 The log manager providing available logs.
QCustomTabWidgetm_tab_widget
 The tab widget containing individual log views.

Detailed Description

A dialog which shows multiple log views, where each log is a tab.


Definition at line 14 of file LogManagerDialog.h.

Constructor & Destructor Documentation

◆ LogManagerDialog()

LogManagerDialog::LogManagerDialog ( QWidget * parent = nullptr)

Constructs the log manager dialog.

Parameters
[in]parentThe parent widget.

Member Function Documentation

◆ addLog()

void LogManagerDialog::addLog ( const StringView & name,
InfoPipe * log )

Adds a named log pipe as a new tab.

Parameters
[in]nameThe display name for the log tab.
[in]logThe info pipe providing log messages.

◆ addLogView()

void LogManagerDialog::addLogView ( LogView * log_view)

Adds an existing LogView widget as a new tab.

Parameters
[in]log_viewThe log view to add.

◆ setLogManager()

void LogManagerDialog::setLogManager ( LogManager * manager)

Sets the log manager that provides the available logs.

Parameters
[in]managerThe log manager to use.

◆ setTimeSpans()

void LogManagerDialog::setTimeSpans ( const Buffer< TimeSpan > & time_spans)

Sets the selectable time spans used to filter log entries.

Parameters
[in]time_spansThe available time span filter options.

◆ sizeHint()

QSize LogManagerDialog::sizeHint ( ) const
override

Returns the preferred size hint for the dialog.

Returns
The preferred size.

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