QGIS API Documentation
3.0.2-Girona (307d082)
|
A generic message view for displaying QGIS messages. More...
#include <qgsmessageviewer.h>
Public Member Functions | |
QgsMessageViewer (QWidget *parent=nullptr, Qt::WindowFlags fl=QgsGuiUtils::ModalDialogFlags, bool deleteOnClose=true) | |
~QgsMessageViewer () override | |
void | appendMessage (const QString &message) override |
message to be appended to the current text More... | |
Qt::CheckState | checkBoxState () |
void | setCheckBoxQgsSettingsLabel (const QString &label) |
void | setCheckBoxState (Qt::CheckState state) |
void | setCheckBoxText (const QString &text) |
void | setCheckBoxVisible (bool visible) |
void | setMessage (const QString &message, MessageType msgType) override |
set message, it won't be displayed until More... | |
void | setMessageAsHtml (const QString &msg) |
void | setMessageAsPlainText (const QString &msg) |
void | setTitle (const QString &title) override |
set title for the messages More... | |
void | showMessage (bool blocking=true) override |
display the message to the user and deletes itself More... | |
Public Member Functions inherited from QgsMessageOutput | |
virtual | ~QgsMessageOutput ()=default |
Additional Inherited Members | |
Public Types inherited from QgsMessageOutput | |
enum | MessageType { MessageText, MessageHtml } |
message can be in plain text or in html format More... | |
Static Public Member Functions inherited from QgsMessageOutput | |
static QgsMessageOutput * | createMessageOutput () |
function that returns new class derived from QgsMessageOutput (don't forget to delete it then if showMessage(bool) is not used showMessage(bool) deletes the instance) More... | |
static void | setMessageOutputCreator (MESSAGE_OUTPUT_CREATOR f) |
sets function that will be used to create message output More... | |
static void | showMessage (const QString &title, const QString &message, MessageType msgType) |
Display the blocking message to the user. More... | |
A generic message view for displaying QGIS messages.
Definition at line 32 of file qgsmessageviewer.h.
QgsMessageViewer::QgsMessageViewer | ( | QWidget * | parent = nullptr , |
Qt::WindowFlags | fl = QgsGuiUtils::ModalDialogFlags , |
||
bool | deleteOnClose = true |
||
) |
Definition at line 21 of file qgsmessageviewer.cpp.
|
override |
Definition at line 38 of file qgsmessageviewer.cpp.
|
overridevirtual |
message to be appended to the current text
Implements QgsMessageOutput.
Definition at line 54 of file qgsmessageviewer.cpp.
Qt::CheckState QgsMessageViewer::checkBoxState | ( | ) |
Definition at line 102 of file qgsmessageviewer.cpp.
void QgsMessageViewer::setCheckBoxQgsSettingsLabel | ( | const QString & | label | ) |
Definition at line 107 of file qgsmessageviewer.cpp.
void QgsMessageViewer::setCheckBoxState | ( | Qt::CheckState | state | ) |
Definition at line 97 of file qgsmessageviewer.cpp.
void QgsMessageViewer::setCheckBoxText | ( | const QString & | text | ) |
Definition at line 87 of file qgsmessageviewer.cpp.
void QgsMessageViewer::setCheckBoxVisible | ( | bool | visible | ) |
Definition at line 92 of file qgsmessageviewer.cpp.
|
overridevirtual |
set message, it won't be displayed until
Implements QgsMessageOutput.
Definition at line 60 of file qgsmessageviewer.cpp.
void QgsMessageViewer::setMessageAsHtml | ( | const QString & | msg | ) |
Definition at line 44 of file qgsmessageviewer.cpp.
void QgsMessageViewer::setMessageAsPlainText | ( | const QString & | msg | ) |
Definition at line 49 of file qgsmessageviewer.cpp.
|
overridevirtual |
set title for the messages
Implements QgsMessageOutput.
Definition at line 82 of file qgsmessageviewer.cpp.
|
overridevirtual |
display the message to the user and deletes itself
Implements QgsMessageOutput.
Definition at line 68 of file qgsmessageviewer.cpp.