QGIS API Documentation
2.2.0-Valmiera
|
Interface for logging messages from QGIS in GUI independent way. More...
#include <qgsmessagelog.h>
Public Types | |
enum | MessageLevel { INFO = 0, WARNING = 1, CRITICAL = 2 } |
Signals | |
void | messageReceived (QString message, QString tag, QgsMessageLog::MessageLevel level) |
Static Public Member Functions | |
static QgsMessageLog * | instance () |
static void | logMessage (QString message, QString tag=QString::null, MessageLevel level=WARNING) |
add a message to the instance (and create it if necessary) |
Private Member Functions | |
QgsMessageLog () | |
void | emitMessage (QString message, QString tag, QgsMessageLog::MessageLevel 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.
Definition at line 40 of file qgsmessagelog.h.
|
private |
|
private |
Definition at line 50 of file qgsmessagelog.cpp.
References messageReceived().
Referenced by logMessage().
|
static |
Definition at line 32 of file qgsmessagelog.cpp.
References QgsMessageLog(), and sInstance.
Referenced by logMessage(), QgsMessageLogConsole::QgsMessageLogConsole(), and QgsMessageLogViewer::QgsMessageLogViewer().
|
static |
add a message to the instance (and create it if necessary)
Definition at line 43 of file qgsmessagelog.cpp.
References emitMessage(), instance(), and QgsDebugMsg.
Referenced by QgsNetworkAccessManager::abortRequest(), QgsGeometry::addPart(), QgsGeometry::addRing(), QgsGeometry::avoidIntersections(), QgsGeometry::closestVertexWithContext(), QgsVectorLayer::commitChanges(), QgsGeometry::contains(), QgsVectorFileWriter::createFeature(), createGeosCollection(), createGeosCoordSequence(), createGeosLinearRing(), createGeosLineString(), createGeosPolygon(), QgsRasterLayer::draw(), QgsVectorLayer::draw(), QgsContextHelp::error(), QgsGeometry::fromMultiPoint(), QgsGeometry::fromMultiPolygon(), QgsGeometry::fromMultiPolyline(), QgsGeometry::fromWkt(), QgsGml::getFeatures(), QgsSvgCache::getImageData(), QgsVectorLayerImport::importLayer(), QgsGeometry::interpolate(), QgsGeometry::isGeosEmpty(), QgsGeometry::isGeosValid(), QgsMapRenderer::layerExtentToOutputExtent(), QgsMapRenderer::layerToMapCoordinates(), QgsMapRenderer::mapToLayerCoordinates(), QgsDistanceArea::measureLine(), QgsDistanceArea::measurePolygon(), QgsCoordinateReferenceSystem::openDb(), QgsMapRenderer::outputExtentToLayerExtent(), QgsProviderRegistry::provider(), QgsVectorFileWriter::QgsVectorFileWriter(), QgsMapCanvas::refresh(), QgsGeometry::reshapeLine(), QgsGeometry::reshapePolygon(), QgsCoordinateReferenceSystem::saveAsUserCRS(), QgsFeature::setAttribute(), QgsDistanceArea::setEllipsoid(), QgsVectorDataProvider::setEncoding(), QgsMessageOutputConsole::showMessage(), QgsCoordinateTransform::transformCoords(), QgsVectorFileWriter::writeFeature(), and QgsRasterLayer::writeXml().
|
signal |
Referenced by emitMessage().
|
staticprivate |
Definition at line 58 of file qgsmessagelog.h.
Referenced by instance(), and QgsMessageLog().