projects
/
jspeed
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changed default and white themes to show a speed camera warning image. Small fix...
[jspeed]
/
src
/
imageelement.h
diff --git
a/src/imageelement.h
b/src/imageelement.h
index
0452123
..
f52da6f
100644
(file)
--- a/
src/imageelement.h
+++ b/
src/imageelement.h
@@
-24,21
+24,27
@@
class QString;
class QGraphicsPixmapItem;
class QString;
class QGraphicsPixmapItem;
+class QGraphicsItem;
class Reader;
class GraphicsScene;
class ImageElement : public GraphicsElement
{
public:
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();
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_;
private:
bool loadImage(QString const& name);
QGraphicsPixmapItem* element_;
+ QPixmap pixmap_;
+ int width_;
+ int height_;
+ bool imageSet_;
};
#endif
};
#endif