17 #ifndef QGSMESSAGEVIEWER_H 18 #define QGSMESSAGEVIEWER_H 20 #include <ui_qgsmessageviewer.h> 41 virtual void showMessage(
bool blocking =
true )
override;
50 void setMessageAsHtml(
const QString& msg );
52 void setMessageAsPlainText(
const QString& msg );
55 void setCheckBoxText(
const QString& text );
57 void setCheckBoxVisible(
bool visible );
59 void setCheckBoxState( Qt::CheckState state );
61 Qt::CheckState checkBoxState();
64 void setCheckBoxQSettingsLabel(
const QString& label );
67 void on_checkBox_toggled(
bool );
71 QString mCheckBoxQSettingsLabel;
static const Qt::WindowFlags ModalDialogFlags
MessageType
message can be in plain text or in html format
virtual void setTitle(const QString &title)=0
set title for the messages
virtual void appendMessage(const QString &message)=0
message to be appended to the current text
virtual void setMessage(const QString &message, MessageType msgType)=0
set message, it won't be displayed until
virtual void showMessage(bool blocking=true)=0
display the message to the user and deletes itself
A generic message view for displaying QGIS messages.
Interface for showing messages from QGIS in GUI independent way.