projects
/
jspeed
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
...
[jspeed]
/
src
/
rectangle.h
diff --git
a/src/rectangle.h
b/src/rectangle.h
index
72912a0
..
b412dc1
100644
(file)
--- a/
src/rectangle.h
+++ b/
src/rectangle.h
@@
-22,19
+22,21
@@
#include "graphicselement.h"
#include "location.h"
#include "graphicselement.h"
#include "location.h"
-class GraphicsScene;
class QString;
class QString;
-class Reader;
class QGraphicsRectItem;
class QGraphicsRectItem;
+class QGraphicsItem;
+class Reader;
+class GraphicsScene;
class Rectangle : public GraphicsElement
{
public:
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();
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_;
private:
QGraphicsRectItem* element_;