Copyright file added.
[jspeed] / src / rectangle.h
index 72912a0..b412dc1 100644 (file)
 #include "graphicselement.h"
 #include "location.h"
 
-class GraphicsScene;
 class QString;
-class Reader;
 class QGraphicsRectItem;
+class QGraphicsItem;
+class Reader;
+class GraphicsScene;
 
 class Rectangle : public GraphicsElement
 {
 public:
-    enum Attribute {XPOS, YPOS, WIDTH, HEIGHT, COLOR, ATTRIBUTE_COUNT};
+    enum Attribute {XPOS, YPOS, ZPOS, VISIBLEWHEN, WIDTH, HEIGHT, COLOR, ATTRIBUTE_COUNT};
     Rectangle(Reader* reader);
     virtual bool setAttribute(QString const& name, QString const& value);
     virtual void addToScene(GraphicsScene* scene);
     virtual void update();
+    virtual QGraphicsItem* getElement() const;
 
 private:
     QGraphicsRectItem* element_;