mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
21 lines
581 B
Plaintext
21 lines
581 B
Plaintext
|
class QgsTextAnnotationItem: QgsAnnotationItem
|
||
|
{
|
||
|
%TypeHeaderCode
|
||
|
#include <qgstextannotationitem.h>
|
||
|
%End
|
||
|
public:
|
||
|
QgsTextAnnotationItem( QgsMapCanvas* canvas );
|
||
|
~QgsTextAnnotationItem();
|
||
|
|
||
|
QDialog* createEditor();
|
||
|
|
||
|
/**Returns document (caller takes ownership)*/
|
||
|
QTextDocument* document() const;
|
||
|
/**Sets document (does not take ownership)*/
|
||
|
void setDocument( const QTextDocument* doc );
|
||
|
|
||
|
void writeXML( QDomDocument& doc ) const;
|
||
|
void readXML( const QDomDocument& doc, const QDomElement& itemElem );
|
||
|
|
||
|
void paint( QPainter* painter );
|
||
|
};
|