18 #ifndef QGSFORMANNOTATIONITEM_H
19 #define QGSFORMANNOTATIONITEM_H
25 class QGraphicsProxyWidget;
35 void paint( QPainter * painter )
override;
38 void paint( QPainter * painter,
const QStyleOptionGraphicsItem * option, QWidget * widget = 0 )
override;
42 QSizeF preferredFrameSize()
const;
47 void setDesignerForm(
const QString& uiFile );
50 void writeXML( QDomDocument& doc )
const override;
51 void readXML(
const QDomDocument& doc,
const QDomElement& itemElem )
override;
57 void setFeatureForMapPosition();
59 void updateVisibility();
62 QGraphicsProxyWidget* mWidgetContainer;
63 QWidget* mDesignerWidget;
67 bool mHasAssociatedFeature;
71 QString mDesignerForm;
73 QWidget* createDesignerWidget(
const QString& filePath );
76 #endif // QGSFORMANNOTATIONITEM_H