Quantum GIS API Documentation
1.8
|
Interface for logging messages from QGIS in GUI independent way. More...
#include <qgsmessagelog.h>
Signals | |
void | messageReceived (QString message, QString tag, int level) |
Static Public Member Functions | |
static QgsMessageLog * | instance () |
static void | logMessage (QString message, QString tag=QString::null, int level=0) |
add a message to the instance (and create it if necessary) | |
Private Member Functions | |
QgsMessageLog () | |
void | emitMessage (QString message, QString tag, int level) |
Static Private Attributes | |
static QgsMessageLog * | sInstance = 0 |
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.
Definition at line 33 of file qgsmessagelog.h.
QgsMessageLog::QgsMessageLog | ( | ) | [private] |
void QgsMessageLog::emitMessage | ( | QString | message, |
QString | tag, | ||
int | level | ||
) | [private] |
Definition at line 46 of file qgsmessagelog.cpp.
References messageReceived().
Referenced by logMessage().
QgsMessageLog * QgsMessageLog::instance | ( | ) | [static] |
Definition at line 31 of file qgsmessagelog.cpp.
References QgsMessageLog(), and sInstance.
Referenced by logMessage(), QgsMessageLogConsole::QgsMessageLogConsole(), and QgsMessageLogViewer::QgsMessageLogViewer().
void QgsMessageLog::logMessage | ( | QString | message, |
QString | tag = QString::null , |
||
int | level = 0 |
||
) | [static] |
add a message to the instance (and create it if necessary)
Definition at line 39 of file qgsmessagelog.cpp.
References emitMessage(), instance(), and QgsDebugMsg.
Referenced by QgsVectorFileWriter::addFeature(), QgsGeometry::addPart(), QgsGeometry::addRing(), QgsGeometry::closestVertexWithContext(), QgsVectorLayer::commitChanges(), QgsGeometry::contains(), createGeosCollection(), createGeosCoordSequence(), createGeosLinearRing(), createGeosLineString(), createGeosPolygon(), QgsRasterLayer::draw(), QgsGeometry::fromMultiPoint(), QgsGeometry::fromMultiPolygon(), QgsGeometry::fromMultiPolyline(), QgsGeometry::fromWkt(), QgsVectorLayerImport::importLayer(), QgsGeometry::isGeosEmpty(), QgsGeometry::isGeosValid(), QgsMapRenderer::layerExtentToOutputExtent(), QgsRasterLayer::loadProvider(), QgsRasterLayer::loadProviderLibrary(), QgsDistanceArea::measureLine(), QgsDistanceArea::measurePolygon(), QgsCoordinateReferenceSystem::openDb(), QgsProviderRegistry::provider(), QgsRasterLayer::readValue(), QgsGeometry::reshapeLine(), QgsGeometry::reshapePolygon(), QgsCoordinateReferenceSystem::saveAsUserCRS(), QgsRasterLayer::setDataProvider(), QgsDistanceArea::setEllipsoid(), QgsVectorDataProvider::setEncoding(), QgsMessageOutputConsole::showMessage(), QgsCoordinateTransform::transformCoords(), and QgsRasterLayer::writeXml().
void QgsMessageLog::messageReceived | ( | QString | message, |
QString | tag, | ||
int | level | ||
) | [signal] |
Referenced by emitMessage().
QgsMessageLog * QgsMessageLog::sInstance = 0 [static, private] |
Definition at line 51 of file qgsmessagelog.h.
Referenced by instance(), and QgsMessageLog().