QGIS API Documentation
2.2.0-Valmiera
|
A generic message view for displaying QGIS messages. More...
#include <qgsmessageviewer.h>
Public Member Functions | |
QgsMessageViewer (QWidget *parent=0, Qt::WFlags fl=QgisGui::ModalDialogFlags, bool deleteOnClose=true) | |
~QgsMessageViewer () | |
virtual void | setMessage (const QString &message, MessageType msgType) |
set message, it won't be displayed until | |
virtual void | appendMessage (const QString &message) |
message to be appended to the current text | |
virtual void | showMessage (bool blocking=true) |
display the message to the user | |
virtual void | setTitle (const QString &title) |
set title for the messages | |
void | setMessageAsHtml (const QString &msg) |
void | setMessageAsPlainText (const QString &msg) |
void | setCheckBoxText (const QString &text) |
void | setCheckBoxVisible (bool visible) |
void | setCheckBoxState (Qt::CheckState state) |
Qt::CheckState | checkBoxState () |
void | setCheckBoxQSettingsLabel (QString label) |
Public Member Functions inherited from QgsMessageOutput | |
virtual | ~QgsMessageOutput () |
virtual destructor |
Private Slots | |
void | on_checkBox_toggled (bool) |
Private Attributes | |
QString | mCheckBoxQSettingsLabel |
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 void | setMessageOutputCreator (MESSAGE_OUTPUT_CREATOR f) |
sets function that will be used to create message output | |
static QgsMessageOutput * | createMessageOutput () |
function that returns new class derived from QgsMessageOutput (don't forget to delete it then) |
A generic message view for displaying QGIS messages.
Definition at line 30 of file qgsmessageviewer.h.
QgsMessageViewer::QgsMessageViewer | ( | QWidget * | parent = 0 , |
Qt::WFlags | fl = QgisGui::ModalDialogFlags , |
||
bool | deleteOnClose = true |
||
) |
Definition at line 21 of file qgsmessageviewer.cpp.
References mCheckBoxQSettingsLabel, setCheckBoxState(), and setCheckBoxVisible().
QgsMessageViewer::~QgsMessageViewer | ( | ) |
Definition at line 39 of file qgsmessageviewer.cpp.
|
virtual |
message to be appended to the current text
Implements QgsMessageOutput.
Definition at line 55 of file qgsmessageviewer.cpp.
Qt::CheckState QgsMessageViewer::checkBoxState | ( | ) |
Definition at line 103 of file qgsmessageviewer.cpp.
|
privateslot |
Definition at line 114 of file qgsmessageviewer.cpp.
References mCheckBoxQSettingsLabel.
void QgsMessageViewer::setCheckBoxQSettingsLabel | ( | QString | label | ) |
Definition at line 108 of file qgsmessageviewer.cpp.
References mCheckBoxQSettingsLabel.
void QgsMessageViewer::setCheckBoxState | ( | Qt::CheckState | state | ) |
Definition at line 98 of file qgsmessageviewer.cpp.
Referenced by QgsMessageViewer().
void QgsMessageViewer::setCheckBoxText | ( | const QString & | text | ) |
Definition at line 88 of file qgsmessageviewer.cpp.
void QgsMessageViewer::setCheckBoxVisible | ( | bool | visible | ) |
Definition at line 93 of file qgsmessageviewer.cpp.
Referenced by QgsMessageViewer().
|
virtual |
set message, it won't be displayed until
Implements QgsMessageOutput.
Definition at line 61 of file qgsmessageviewer.cpp.
References QgsMessageOutput::MessageHtml, setMessageAsHtml(), and setMessageAsPlainText().
void QgsMessageViewer::setMessageAsHtml | ( | const QString & | msg | ) |
Definition at line 45 of file qgsmessageviewer.cpp.
Referenced by QgsExpressionBuilderWidget::on_lblPreview_linkActivated(), setMessage(), QgsDataDefinedButton::showDescriptionDialog(), and QgsOWSSourceSelect::showError().
void QgsMessageViewer::setMessageAsPlainText | ( | const QString & | msg | ) |
Definition at line 50 of file qgsmessageviewer.cpp.
Referenced by setMessage(), QgsOWSSourceSelect::showError(), and QgsMapCanvas::showError().
|
virtual |
set title for the messages
Implements QgsMessageOutput.
Definition at line 83 of file qgsmessageviewer.cpp.
|
virtual |
display the message to the user
Implements QgsMessageOutput.
Definition at line 69 of file qgsmessageviewer.cpp.
Referenced by QgsOWSSourceSelect::showError().
|
private |
Definition at line 71 of file qgsmessageviewer.h.
Referenced by on_checkBox_toggled(), QgsMessageViewer(), and setCheckBoxQSettingsLabel().