mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
31 lines
952 B
Plaintext
31 lines
952 B
Plaintext
|
class QgsFormAnnotationItem: QObject, QgsAnnotationItem
|
||
|
{
|
||
|
%TypeHeaderCode
|
||
|
#include <qgsformannotationitem.h>
|
||
|
%End
|
||
|
|
||
|
public:
|
||
|
QgsFormAnnotationItem( QgsMapCanvas* canvas, QgsVectorLayer* vlayer = 0, bool hasFeature = false, int feature = 0);
|
||
|
~QgsFormAnnotationItem();
|
||
|
|
||
|
void paint( QPainter * painter );
|
||
|
|
||
|
//! paint function called by map canvas
|
||
|
void paint( QPainter * painter, const QStyleOptionGraphicsItem * option, QWidget * widget = 0 );
|
||
|
|
||
|
/**Create a configuration dialog*/
|
||
|
QDialog* createEditor();
|
||
|
|
||
|
QSizeF minimumFrameSize() const;
|
||
|
/**Returns the optimal frame size*/
|
||
|
QSizeF preferredFrameSize() const;
|
||
|
|
||
|
/**Reimplemented from QgsAnnotationItem*/
|
||
|
void setMapPosition( const QgsPoint& pos );
|
||
|
|
||
|
void setDesignerForm( const QString& uiFile );
|
||
|
QString designerForm() const;
|
||
|
|
||
|
void writeXML( QDomDocument& doc ) const;
|
||
|
void readXML( const QDomDocument& doc, const QDomElement& itemElem );
|
||
|
};
|