Class sh::ui::LogViewDialog

class sh::ui::LogViewDialog : public sh::ui::Dialog

The ‘Log’ dialog..

Subclassed by sh::ui::qt::QtLogViewDialog, sh::ui::web::WebLogViewDialog

Public Functions

LogViewDialog(QString headtext, QString subheadtxt, sh::base::LogSeverity minseverity)

Parameters
  • headtext: The header text.

  • subheadtxt: The 2nd header text.

  • minseverity: The minimum message severity this dialog shows initially (the user can typically change that later on).

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 Members

QString _headtext
QString _subheadtxt
sh::base::LogSeverity _minseverity