Class sh::ui::qt::QtLogViewDialog

class sh::ui::qt::QtLogViewDialog : public sh::ui::qt::QtDialog, public sh::ui::LogViewDialog

Qt based log view dialog.

Public Functions

QtLogViewDialog(QString headtext, QString subheadtxt, base::LogSeverity minseverity)
~QtLogViewDialog()
QString headtext()

Returns the header text.

QString subheadtxt()

Returns the 2nd header text.

sh::base::LogSeverity minimumSeverity()

Returns the minimum severity.

qint64 dialogId()

Returns the dialog id.

Each instance has an id unique in the complete Shallot process lifetime.

Must be called in main thread.

bool isInited()

Returns if this dialog is initialized.

Must be called in main thread.

bool wasAccepted()

Returns if this dialog was ‘accepted’ by the user (typically by clicking some ‘OK’ button).

Must be called in main thread.

void waitClosed()

Wait until the user closed the dialog in some way.

May be called in any thread.

void close()

Closes the dialog.

Must be called in main thread.

bool wasClosed()

Returns if this dialog was closed.

Must be called in main thread.

DialogManager *manager()

Returns the DialogManager which hosts this dialog.

Private Functions

void _reloadLog()
void setMinimumSeverity(sh::base::LogSeverity minseverity)

Private Members

Ui::QtLogViewDialog *ui

Private Slots

void on_btnClose_clicked()
void on_btnSaveToFile_clicked()
void on_btnSeverity_clicked()