X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fimageelement.h;h=f52da6f3deda3db2324d783b2d28198ae1fd0075;hb=5728fa7e539c5d826c1708bdfffb5daf0b23bdfd;hp=b4ac29973ba65948de1409ef507ec34287ab3e11;hpb=cb2ec80bb51d03d84b694d234e23ab1b3639b63b;p=jspeed diff --git a/src/imageelement.h b/src/imageelement.h index b4ac299..f52da6f 100644 --- a/src/imageelement.h +++ b/src/imageelement.h @@ -24,17 +24,19 @@ class QString; class QGraphicsPixmapItem; +class QGraphicsItem; class Reader; class GraphicsScene; class ImageElement : public GraphicsElement { public: - enum Attribute {XPOS, YPOS, SRC, WIDTH, HEIGHT, ATTRIBUTE_COUNT}; + enum Attribute {XPOS, YPOS, ZPOS, VISIBLEWHEN, SRC, WIDTH, HEIGHT, ATTRIBUTE_COUNT}; ImageElement(Reader* reader); virtual bool setAttribute(QString const& name, QString const& value); virtual void addToScene(GraphicsScene* scene); virtual void update(); + virtual QGraphicsItem* getElement() const; private: bool loadImage(QString const& name);