Quantum GIS API Documentation
1.7.4
|
An annotation item that displays formated text. More...
#include <qgstextannotationitem.h>
Public Member Functions | |
QgsTextAnnotationItem (QgsMapCanvas *canvas) | |
~QgsTextAnnotationItem () | |
QTextDocument * | document () const |
Returns document (caller takes ownership) | |
void | setDocument (const QTextDocument *doc) |
Sets document (does not take ownership) | |
void | writeXML (QDomDocument &doc) const |
void | readXML (const QDomDocument &doc, const QDomElement &itemElem) |
void | paint (QPainter *painter) |
function to be implemented by derived classes | |
Private Attributes | |
QTextDocument * | mDocument |
An annotation item that displays formated text.
Definition at line 25 of file qgstextannotationitem.h.
Definition at line 22 of file qgstextannotationitem.cpp.
References mDocument.
Definition at line 27 of file qgstextannotationitem.cpp.
References mDocument.
QTextDocument * QgsTextAnnotationItem::document | ( | ) | const |
Returns document (caller takes ownership)
Definition at line 32 of file qgstextannotationitem.cpp.
References mDocument.
void QgsTextAnnotationItem::paint | ( | QPainter * | painter | ) | [virtual] |
function to be implemented by derived classes
Implements QgsMapCanvasItem.
Definition at line 48 of file qgstextannotationitem.cpp.
References QgsAnnotationItem::drawFrame(), QgsAnnotationItem::drawMarkerSymbol(), QgsAnnotationItem::drawSelectionBoxes(), mDocument, QgsAnnotationItem::mFrameBorderWidth, QgsAnnotationItem::mFrameSize, QgsAnnotationItem::mMapPositionFixed, and QgsAnnotationItem::mOffsetFromReferencePoint.
void QgsTextAnnotationItem::readXML | ( | const QDomDocument & | doc, |
const QDomElement & | itemElem | ||
) | [virtual] |
Implements QgsAnnotationItem.
Definition at line 92 of file qgstextannotationitem.cpp.
References QgsAnnotationItem::_readXML(), and mDocument.
void QgsTextAnnotationItem::setDocument | ( | const QTextDocument * | doc | ) |
Sets document (does not take ownership)
Definition at line 42 of file qgstextannotationitem.cpp.
References mDocument.
void QgsTextAnnotationItem::writeXML | ( | QDomDocument & | doc | ) | const [virtual] |
Implements QgsAnnotationItem.
Definition at line 76 of file qgstextannotationitem.cpp.
References QgsAnnotationItem::_writeXML(), and mDocument.
QTextDocument* QgsTextAnnotationItem::mDocument [private] |
Definition at line 42 of file qgstextannotationitem.h.
Referenced by document(), paint(), QgsTextAnnotationItem(), readXML(), setDocument(), writeXML(), and ~QgsTextAnnotationItem().