Changed default and white themes to show a speed camera warning image. Small fix...
[jspeed] / src / imageelement.h
index 0452123..f52da6f 100644 (file)
 
 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