8 class WbForeign
: public WbItem
11 enum Types
{ Poll
, Other
};
13 QDomElement svgElement_
;
15 QGraphicsItem
*m_graphicsItem
;
17 QGraphicsScene
*m_scene
;
19 WbForeign(Plugin
*plugin
, QDomElement
&svg
, const QString
&id
, const qreal
&index
, const QString
&parent
= "root", QGraphicsScene
*scene
= 0);
21 /*! \brief Returns the type of the item (0x87654998).*/
22 int type() const { return 87654998; }
24 /*! \brief Returns the stored SVG element.*/
27 /*! \brief Saves the SVG element.*/
28 QList
<QString
> parseSvg(QDomElement
&, bool emitChanges
= false);
30 /*! \brief Returns a deep copy of this object but without a scene association.*/
33 QGraphicsItem
* graphicsItem();
35 virtual QRectF
boundingRect() const;
36 virtual void paint(QPainter
*painter
, const QStyleOptionGraphicsItem
*option
, QWidget
*widget
= 0);