2010-03-29 12:11:48 +00:00
|
|
|
class QgsFormAnnotationItem: QObject, QgsAnnotationItem
|
|
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include <qgsformannotationitem.h>
|
|
|
|
%End
|
|
|
|
|
|
|
|
public:
|
2012-09-24 02:28:15 +02:00
|
|
|
QgsFormAnnotationItem( QgsMapCanvas* canvas /TransferThis/, QgsVectorLayer* vlayer = 0, bool hasFeature = false, int feature = 0 );
|
2010-03-29 12:11:48 +00:00
|
|
|
~QgsFormAnnotationItem();
|
|
|
|
|
|
|
|
void paint( QPainter * painter );
|
|
|
|
|
|
|
|
//! paint function called by map canvas
|
|
|
|
void paint( QPainter * painter, const QStyleOptionGraphicsItem * option, QWidget * widget = 0 );
|
|
|
|
|
|
|
|
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 );
|
2012-09-24 02:28:15 +02:00
|
|
|
|
|
|
|
QgsVectorLayer* vectorLayer() const;
|
2010-03-29 13:16:08 +00:00
|
|
|
};
|