4 #ifndef BPSTEXTLOGWIDGET_H
5 #define BPSTEXTLOGWIDGET_H
#define BPS_PRIVATE(Class)
Declare pointer to private object in a public class.
Definition: bpsglobals.h:102
Public include file for BPS GUI library macros.
#define BPSGUI_EXPORT
Declare class an import from the shared library.
Definition: bpsgui_global.h:22
A widget to display text logging information.
Definition: bpstextlogwidget.h:14
void log(const QByteArray &aData, const QColor &aColor=Qt::black)
Write to log in current mode.
void setMode(Mode aMode)
Set the mode used for subsequent calls of log().
void clear()
Clear the log.
void setLimit(int aLines)
Set the maximum number of lines to hold in the log.
void logHEX(const QString &aText, const QColor &aColor=Qt::black)
Write as hexadecimal dump on left side block and printable characters in right side block.
BpsTextLogWidget(QWidget *aParent=nullptr)
void logASCII(const QString &aText, const QColor &aColor=Qt::black)
Write as ASCII dump, where all special and unprintable characters are displayed in human readable for...
void logText(const QByteArray &aData, const QColor &aColor=Qt::black)
Write as plain text to the log.
void logASCII(const QByteArray &aData, const QColor &aColor=Qt::black)
Write as ASCII dump, where all special and unprintable characters are displayed in human readable for...
void logHEX(const QByteArray &aData, const QColor &aColor=Qt::black)
Write as hexadecimal dump on left side block and printable characters in right side block.
Mode
Logging mode.
Definition: bpstextlogwidget.h:22
@ TEXT
Text mode: log() calls logText().
Definition: bpstextlogwidget.h:23
@ ASCII
ASCII mode: log() calls logASCII().
Definition: bpstextlogwidget.h:24
void log(const QString &aText, const QColor &aColor=Qt::black)
Write to log in current mode.
void logText(const QString &aText, const QColor &aColor=Qt::black)
Write as plain text to the log.
void logTick(const QChar aChar, const QColor &aColor=Qt::black)
Write as char as tick to the log.