18 #ifndef QGSHTMLANNOTATIONITEM_H
19 #define QGSHTMLANNOTATIONITEM_H
27 class QGraphicsProxyWidget;
37 void paint( QPainter * painter );
40 void paint( QPainter * painter,
const QStyleOptionGraphicsItem * option, QWidget * widget = 0 );
47 void setHTMLPage(
const QString& htmlFile );
50 void writeXML( QDomDocument& doc )
const;
51 void readXML(
const QDomDocument& doc,
const QDomElement& itemElem );
57 void setFeatureForMapPosition();
59 void updateVisibility();
79 #endif // QGSHTMLANNOTATIONITEM_H
virtual QSizeF minimumFrameSize() const
QgsVectorLayer * mVectorLayer
Associated vectorlayer (or 0 if attributes are not supposed to be replaced)
QgsVectorLayer * vectorLayer() const
QgsFeatureId mFeatureId
Associated feature.
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
Map canvas is a class for displaying all GIS data types on a canvas.
An annotation item that embedds a designer form showing the feature attribute.
virtual void setMapPosition(const QgsPoint &pos)
QGraphicsProxyWidget * mWidgetContainer
A class to represent a point geometry.
An annotation item can be either placed either on screen corrdinates or on map coordinates.
virtual void paint(QPainter *painter)=0
function to be implemented by derived classes
virtual void readXML(const QDomDocument &doc, const QDomElement &itemElem)=0
Represents a vector layer which manages a vector based data sets.
bool mHasAssociatedFeature
True if the item is related to a vector feature.
virtual void writeXML(QDomDocument &doc) const =0