70 mMessage.replace( QRegExp(
"</?[^>]+>" ),
"" );
static void setMessageOutputCreator(MESSAGE_OUTPUT_CREATOR f)
sets function that will be used to create message output
virtual void setTitle(const QString &title)
set title for the messages
MessageType
message can be in plain text or in html format
static MESSAGE_OUTPUT_CREATOR mMessageOutputCreator
Pointer to the function which creates the class for output.
static QgsMessageOutput * messageOutputConsole_()
virtual void appendMessage(const QString &message)
message to be appended to the current text
static QgsMessageOutput * createMessageOutput()
function that returns new class derived from QgsMessageOutput (don't forget to delete it then) ...
static void logMessage(QString message, QString tag=QString::null, MessageLevel level=WARNING)
add a message to the instance (and create it if necessary)
QgsMessageOutput *(* MESSAGE_OUTPUT_CREATOR)()
Default implementation of message output interface.
virtual void showMessage(bool blocking=true)
sends the message to the standard output
QgsMessageOutputConsole()
QString mMessage
stores current message
QString mTitle
stores current title
Interface for showing messages from QGIS in GUI independent way.
virtual ~QgsMessageOutput()
virtual destructor
virtual void setMessage(const QString &message, MessageType msgType)
set message, it won't be displayed until
void destroyed()
signals that object will be destroyed and shouldn't be used anymore