Added new theme. Made detail screen also themable.
[jspeed] / src / textelement.h
index ec4f7f1..19116c1 100644 (file)
 
 #include "graphicselement.h"
 
-class Reader;
 class QString;
-class GraphicsScene;
+class QGraphicsItem;
 class QGraphicsTextItem;
+class Reader;
+class GraphicsScene;
 
 class TextElement : public GraphicsElement
 {
 public:
     enum Attribute {XPOS, YPOS, DATA, FORMAT, WIDTH, ALIGN, COLOR, SIZE, FONT, ATTRIBUTE_COUNT};
-    enum Field {TRIP, TOTAL, SPEED, MAXSPEED, AVGSPEED, UNIT, SPEEDUNIT, FIELD_COUNT};
+    enum Field {TRIP, TOTAL, SPEED, MAXSPEED, AVGSPEED, UNIT, SPEEDUNIT, TIME, FIELD_COUNT};
     TextElement(Reader* reader);
     virtual bool setAttribute(QString const& name, QString const& value);
     virtual void addToScene(GraphicsScene* scene);
     virtual void update();
+    virtual QGraphicsItem* getElement() const;
 
 private:
     void updateHtml(QString const& data);