Signals | Public Member Functions | Static Public Member Functions | Protected Slots | List of all members
pqLogViewerWidget Class Reference

Provides a treeview with scoped logs along with a filtering capability to restrict which logs are shown. More...

#include <pqLogViewerWidget.h>

Inheritance diagram for pqLogViewerWidget:
Inheritance graph
[legend]

Signals

void closed ()
 
void scrolled (double time)
 

Public Member Functions

 pqLogViewerWidget (QWidget *parent=nullptr)
 
 ~pqLogViewerWidget () override
 
void setLog (const QString &text)
 Set the contents of the log viewer to the provided txt. More...
 
void appendLog (const QString &text)
 Append text to log. More...
 
void setFilterWildcard (QString wildcard)
 Manually set the filter wildcard. More...
 
void scrollToTime (double time)
 Scroll to the log near the specific time. More...
 
void updateColumnVisibilities ()
 Update log table column visibilities. More...
 

Static Public Member Functions

static QVector< QString > extractLogParts (const QString &txt, bool &is_raw)
 Utility function to parse a line of log into parts. More...
 

Protected Slots

void toggleAdvanced ()
 
void exportLog ()
 

Detailed Description

Provides a treeview with scoped logs along with a filtering capability to restrict which logs are shown.

Definition at line 21 of file pqLogViewerWidget.h.

Constructor & Destructor Documentation

◆ pqLogViewerWidget()

pqLogViewerWidget::pqLogViewerWidget ( QWidget *  parent = nullptr)

◆ ~pqLogViewerWidget()

pqLogViewerWidget::~pqLogViewerWidget ( )
override

Member Function Documentation

◆ setLog()

void pqLogViewerWidget::setLog ( const QString &  text)

Set the contents of the log viewer to the provided txt.

◆ appendLog()

void pqLogViewerWidget::appendLog ( const QString &  text)

Append text to log.

◆ setFilterWildcard()

void pqLogViewerWidget::setFilterWildcard ( QString  wildcard)

Manually set the filter wildcard.

Mainly used for the global filter. Can be overridden by the log-specific wildcard.

◆ scrollToTime()

void pqLogViewerWidget::scrollToTime ( double  time)

Scroll to the log near the specific time.

◆ extractLogParts()

static QVector<QString> pqLogViewerWidget::extractLogParts ( const QString &  txt,
bool &  is_raw 
)
static

Utility function to parse a line of log into parts.

Parameters
txtOne line of the log
is_rawReturn parameter stating whether the log is in the log format or just raw text.
Returns
A QVector containing different parts of the log.

◆ updateColumnVisibilities()

void pqLogViewerWidget::updateColumnVisibilities ( )

Update log table column visibilities.

◆ closed

void pqLogViewerWidget::closed ( )
signal

◆ scrolled

void pqLogViewerWidget::scrolled ( double  time)
signal

◆ toggleAdvanced

void pqLogViewerWidget::toggleAdvanced ( )
protectedslot

◆ exportLog

void pqLogViewerWidget::exportLog ( )
protectedslot

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