Added width and height parameters to image element. Added different active color...
[jspeed] / src / imageelement.h
index 0452123..b4ac299 100644 (file)
@@ -30,7 +30,7 @@ class GraphicsScene;
 class ImageElement : public GraphicsElement
 {
 public:
-    enum Attribute {XPOS, YPOS, SRC, ATTRIBUTE_COUNT};
+    enum Attribute {XPOS, YPOS, SRC, WIDTH, HEIGHT, ATTRIBUTE_COUNT};
     ImageElement(Reader* reader);
     virtual bool setAttribute(QString const& name, QString const& value);
     virtual void addToScene(GraphicsScene* scene);
@@ -39,6 +39,10 @@ public:
 private:
     bool loadImage(QString const& name);
     QGraphicsPixmapItem* element_;
+    QPixmap pixmap_;
+    int width_;
+    int height_;
+    bool imageSet_;
 };
 
 #endif