Quantum GIS API Documentation  1.7.4
src/gui/qgstextannotationitem.h
Go to the documentation of this file.
00001 /***************************************************************************
00002                               qgstextannotationitem.h
00003                               ------------------------
00004   begin                : February 9, 2010
00005   copyright            : (C) 2010 by Marco Hugentobler
00006   email                : marco dot hugentobler at hugis dot net
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #ifndef QGSTEXTANNOTATIONITEM_H
00019 #define QGSTEXTANNOTATIONITEM_H
00020 
00021 #include "qgsannotationitem.h"
00022 #include <QTextDocument>
00023 
00025 class GUI_EXPORT QgsTextAnnotationItem: public QgsAnnotationItem
00026 {
00027   public:
00028     QgsTextAnnotationItem( QgsMapCanvas* canvas );
00029     ~QgsTextAnnotationItem();
00030 
00032     QTextDocument* document() const;
00034     void setDocument( const QTextDocument* doc );
00035 
00036     void writeXML( QDomDocument& doc ) const;
00037     void readXML( const QDomDocument& doc, const QDomElement& itemElem );
00038 
00039     void paint( QPainter* painter );
00040 
00041   private:
00042     QTextDocument* mDocument;
00043 };
00044 
00045 #endif // QGSTEXTANNOTATIONITEM_H
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines