2017-04-02 21:24:19 +10:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/annotations/qgshtmlannotation.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class QgsHtmlAnnotation: QgsAnnotation
|
2017-01-26 18:02:52 +10:00
|
|
|
{
|
2017-04-02 21:24:19 +10:00
|
|
|
|
2017-01-26 18:02:52 +10:00
|
|
|
%TypeHeaderCode
|
2017-04-02 21:24:19 +10:00
|
|
|
#include "qgshtmlannotation.h"
|
2017-01-26 18:02:52 +10:00
|
|
|
%End
|
|
|
|
public:
|
|
|
|
|
2017-04-02 21:24:19 +10:00
|
|
|
QgsHtmlAnnotation( QObject *parent /TransferThis/ = 0 );
|
|
|
|
%Docstring
|
|
|
|
Constructor for QgsHtmlAnnotation.
|
|
|
|
%End
|
2017-01-26 18:02:52 +10:00
|
|
|
|
|
|
|
~QgsHtmlAnnotation();
|
|
|
|
|
|
|
|
QSizeF minimumFrameSize() const;
|
2017-04-07 11:23:53 +10:00
|
|
|
%Docstring
|
|
|
|
:rtype: QSizeF
|
|
|
|
%End
|
2017-01-26 18:02:52 +10:00
|
|
|
|
2017-04-02 21:24:19 +10:00
|
|
|
void setSourceFile( const QString &htmlFile );
|
|
|
|
%Docstring
|
|
|
|
Sets the file path for the source HTML file.
|
2017-04-03 11:59:45 +10:00
|
|
|
\see sourceFile()
|
2017-04-02 21:24:19 +10:00
|
|
|
%End
|
|
|
|
|
2017-01-26 18:02:52 +10:00
|
|
|
QString sourceFile() const;
|
2017-04-02 21:24:19 +10:00
|
|
|
%Docstring
|
|
|
|
Returns the file path for the source HTML file.
|
2017-04-03 11:59:45 +10:00
|
|
|
\see setSourceFile()
|
2017-04-07 11:23:53 +10:00
|
|
|
:rtype: str
|
2017-04-02 21:24:19 +10:00
|
|
|
%End
|
2017-01-26 18:02:52 +10:00
|
|
|
|
2017-04-02 21:24:19 +10:00
|
|
|
virtual void writeXml( QDomElement &elem, QDomDocument &doc ) const;
|
|
|
|
virtual void readXml( const QDomElement &itemElem, const QDomDocument &doc );
|
2017-01-26 18:02:52 +10:00
|
|
|
|
2017-04-02 21:24:19 +10:00
|
|
|
void setAssociatedFeature( const QgsFeature &feature );
|
2017-01-29 23:14:58 +10:00
|
|
|
|
2017-04-02 21:24:19 +10:00
|
|
|
static QgsHtmlAnnotation *create() /Factory/;
|
|
|
|
%Docstring
|
|
|
|
Returns a new QgsHtmlAnnotation object.
|
2017-04-07 11:23:53 +10:00
|
|
|
:rtype: QgsHtmlAnnotation
|
2017-04-02 21:24:19 +10:00
|
|
|
%End
|
2017-01-30 14:57:16 +10:00
|
|
|
|
2017-01-26 18:02:52 +10:00
|
|
|
protected:
|
|
|
|
|
2017-04-02 21:24:19 +10:00
|
|
|
void renderAnnotation( QgsRenderContext &context, QSizeF size ) const;
|
2017-01-26 18:02:52 +10:00
|
|
|
|
|
|
|
};
|
2017-04-02 21:24:19 +10:00
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/annotations/qgshtmlannotation.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|