mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
75 lines
2.4 KiB
Plaintext
75 lines
2.4 KiB
Plaintext
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/core/qgsmessagelog.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
class QgsMessageLog : QObject
|
|
{
|
|
%Docstring
|
|
Interface for logging messages from QGIS in GUI independent way.
|
|
This class provides abstraction of a tabbed window for showing messages to the user.
|
|
By default QgsMessageLogOutput will be used if not overridden with another
|
|
message log creator function.
|
|
|
|
QGIS application uses QgsMessageLog class for logging messages in a dockable
|
|
window for the user.
|
|
|
|
QgsMessageLog is not usually directly created, but rather accessed through
|
|
:py:func:`QgsApplication.messageLog()`
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgsmessagelog.h"
|
|
%End
|
|
public:
|
|
|
|
QgsMessageLog();
|
|
%Docstring
|
|
Constructor for QgsMessageLog.
|
|
%End
|
|
|
|
static void logMessage( const QString &message, const QString &tag = QString(), Qgis::MessageLevel level = Qgis::Warning );
|
|
%Docstring
|
|
add a message to the instance (and create it if necessary)
|
|
%End
|
|
|
|
signals:
|
|
void messageReceived( const QString &message, const QString &tag, Qgis::MessageLevel level );
|
|
|
|
void messageReceived( bool received );
|
|
|
|
};
|
|
|
|
class QgsMessageLogConsole : QObject
|
|
{
|
|
%Docstring
|
|
Default implementation of message logging interface
|
|
|
|
This class outputs log messages to the standard output. Therefore it might
|
|
be the right choice for apps without GUI.
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgsmessagelog.h"
|
|
%End
|
|
public:
|
|
QgsMessageLogConsole();
|
|
|
|
public slots:
|
|
void logMessage( const QString &message, const QString &tag, Qgis::MessageLevel level );
|
|
};
|
|
|
|
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/core/qgsmessagelog.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|