X-Git-Url: http://git.maemo.org/git/?p=jspeed;a=blobdiff_plain;f=src%2Fdetailscreen.h;h=f0bfea100b702fd86ec6589bd2bd3e2cc1643398;hp=4c30e75e486e1eab138a4525bf42339fec72d334;hb=10347339166083e3f505322671c54913c56e0401;hpb=64f0d552c4c5235f19988138edeb3048ac7ec151 diff --git a/src/detailscreen.h b/src/detailscreen.h index 4c30e75..f0bfea1 100644 --- a/src/detailscreen.h +++ b/src/detailscreen.h @@ -19,20 +19,20 @@ #ifndef DETAILSCREEN_H #define DETAILSCREEN_H -#include "location.h" -#include "graphicsscreen.h" +#include "themescreen.h" +class QString; class QGraphicsTextItem; class QGraphicsLineItem; -class QGraphicsView; -class GraphicsScene; +class QGraphicsPixmapItem; -class DetailScreen : public GraphicsScreen +class DetailScreen : public ThemeScreen { Q_OBJECT public: DetailScreen(QWidget* parent = 0); + virtual void setColor(QString const& color); public slots: virtual void update(); @@ -47,12 +47,16 @@ private: QGraphicsTextItem* createItem(QString const& text); QGraphicsLineItem* createLine(); QString roundDouble(double number); + int getStrength(); QGraphicsTextItem* tripLabel_; QGraphicsTextItem* trip_; QGraphicsTextItem* tripUnit_; QGraphicsTextItem* totalLabel_; QGraphicsTextItem* total_; QGraphicsTextItem* totalUnit_; + QGraphicsTextItem* altitudeLabel_; + QGraphicsTextItem* altitude_; + QGraphicsTextItem* altitudeUnit_; QGraphicsTextItem* speedLabel_; QGraphicsTextItem* speed_; QGraphicsTextItem* speedUnit_; @@ -68,6 +72,8 @@ private: QGraphicsTextItem* totalTime_; QGraphicsLineItem* line1_; QGraphicsLineItem* line2_; + QGraphicsPixmapItem* strength_; + int currentStrength_; }; #endif