Added altitude display to detail screen. Added option to disable auto rotation.
[jspeed] / src / detailscreen.h
index 4c30e75..f0bfea1 100644 (file)
 #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