Added signal strength indicator to detail screen. Changed speed treshold to change...
[jspeed] / src / detailscreen.h
index 4c30e75..5e94ff5 100644 (file)
 #ifndef DETAILSCREEN_H
 #define DETAILSCREEN_H
 
-#include "location.h"
 #include "graphicsscreen.h"
 
+class QString;
 class QGraphicsTextItem;
 class QGraphicsLineItem;
-class QGraphicsView;
-class GraphicsScene;
+class QGraphicsPixmapItem;
 
 class DetailScreen : public GraphicsScreen
 {
@@ -47,6 +46,7 @@ private:
     QGraphicsTextItem* createItem(QString const& text);
     QGraphicsLineItem* createLine();
     QString roundDouble(double number);
+    int getStrength();
     QGraphicsTextItem* tripLabel_;
     QGraphicsTextItem* trip_;
     QGraphicsTextItem* tripUnit_;
@@ -68,6 +68,8 @@ private:
     QGraphicsTextItem* totalTime_;
     QGraphicsLineItem* line1_;
     QGraphicsLineItem* line2_;
+    QGraphicsPixmapItem* strength_;
+    int currentStrength_;
 };
 
 #endif