QGIS API Documentation  2.9.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | List of all members
QgsMessageViewer Class Reference

A generic message view for displaying QGIS messages. More...

#include <qgsmessageviewer.h>

Inheritance diagram for QgsMessageViewer:
Inheritance graph
[legend]

Public Member Functions

 QgsMessageViewer (QWidget *parent=0, Qt::WindowFlags fl=QgisGui::ModalDialogFlags, bool deleteOnClose=true)
 ~QgsMessageViewer ()
virtual void appendMessage (const QString &message) override
 message to be appended to the current text
Qt::CheckState checkBoxState ()
void setCheckBoxQSettingsLabel (QString label)
void setCheckBoxState (Qt::CheckState state)
void setCheckBoxText (const QString &text)
void setCheckBoxVisible (bool visible)
virtual void setMessage (const QString &message, MessageType msgType) override
 set message, it won't be displayed until
void setMessageAsHtml (const QString &msg)
void setMessageAsPlainText (const QString &msg)
virtual void setTitle (const QString &title) override
 set title for the messages
virtual void showMessage (bool blocking=true) override
 display the message to the user and deletes itself
- Public Member Functions inherited from QgsMessageOutput
virtual ~QgsMessageOutput ()
 virtual destructor

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 QgsMessageOutputcreateMessageOutput ()
 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)
static void setMessageOutputCreator (MESSAGE_OUTPUT_CREATOR f)
 sets function that will be used to create message output
static void showMessage (const QString &title, const QString &message, MessageType msgType)
 Display the blocking message to the user.

Detailed Description

A generic message view for displaying QGIS messages.

Definition at line 30 of file qgsmessageviewer.h.

Constructor & Destructor Documentation

QgsMessageViewer::QgsMessageViewer ( QWidget *  parent = 0,
Qt::WindowFlags  fl = QgisGui::ModalDialogFlags,
bool  deleteOnClose = true 
)

Definition at line 21 of file qgsmessageviewer.cpp.

QgsMessageViewer::~QgsMessageViewer ( )

Definition at line 39 of file qgsmessageviewer.cpp.

Member Function Documentation

void QgsMessageViewer::appendMessage ( const QString &  message)
overridevirtual

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.

void QgsMessageViewer::setCheckBoxQSettingsLabel ( QString  label)

Definition at line 108 of file qgsmessageviewer.cpp.

void QgsMessageViewer::setCheckBoxState ( Qt::CheckState  state)

Definition at line 98 of file qgsmessageviewer.cpp.

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.

void QgsMessageViewer::setMessage ( const QString &  message,
MessageType  msgType 
)
overridevirtual

set message, it won't be displayed until

Implements QgsMessageOutput.

Definition at line 61 of file qgsmessageviewer.cpp.

void QgsMessageViewer::setMessageAsHtml ( const QString &  msg)

Definition at line 45 of file qgsmessageviewer.cpp.

void QgsMessageViewer::setMessageAsPlainText ( const QString &  msg)

Definition at line 50 of file qgsmessageviewer.cpp.

void QgsMessageViewer::setTitle ( const QString &  title)
overridevirtual

set title for the messages

Implements QgsMessageOutput.

Definition at line 83 of file qgsmessageviewer.cpp.

void QgsMessageViewer::showMessage ( bool  blocking = true)
overridevirtual

display the message to the user and deletes itself

Implements QgsMessageOutput.

Definition at line 69 of file qgsmessageviewer.cpp.


The documentation for this class was generated from the following files: