Added new theme to web page.
[jspeed] / src / imageelement.h
index c21cba6..f52da6f 100644 (file)
 #include "graphicselement.h"
 #include "location.h"
 
-class ZipReader;
-class GraphicsScene;
 class QString;
 class QGraphicsPixmapItem;
+class QGraphicsItem;
+class Reader;
+class GraphicsScene;
 
 class ImageElement : public GraphicsElement
 {
 public:
-    enum Attribute {XPOS, YPOS, SRC, 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);
     QGraphicsPixmapItem* element_;
+    QPixmap pixmap_;
+    int width_;
+    int height_;
+    bool imageSet_;
 };
 
 #endif