2 * This file is part of jSpeed.
4 * jSpeed is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
9 * jSpeed is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with jSpeed. If not, see <http://www.gnu.org/licenses/>.
19 #ifndef DETAILSCREEN_H
20 #define DETAILSCREEN_H
22 #include "themescreen.h"
25 class QGraphicsTextItem;
26 class QGraphicsLineItem;
27 class QGraphicsPixmapItem;
29 class DetailScreen : public ThemeScreen
34 DetailScreen(QWidget* parent = 0);
35 virtual void setColor(QString const& color);
38 virtual void update();
46 QString formatTime(qulonglong time);
47 QGraphicsTextItem* createItem(QString const& text);
48 QGraphicsLineItem* createLine();
49 QString roundDouble(double number);
51 QGraphicsTextItem* tripLabel_;
52 QGraphicsTextItem* trip_;
53 QGraphicsTextItem* tripUnit_;
54 QGraphicsTextItem* totalLabel_;
55 QGraphicsTextItem* total_;
56 QGraphicsTextItem* totalUnit_;
57 QGraphicsTextItem* altitudeLabel_;
58 QGraphicsTextItem* altitude_;
59 QGraphicsTextItem* altitudeUnit_;
60 QGraphicsTextItem* speedLabel_;
61 QGraphicsTextItem* speed_;
62 QGraphicsTextItem* speedUnit_;
63 QGraphicsTextItem* avgSpeedLabel_;
64 QGraphicsTextItem* avgSpeed_;
65 QGraphicsTextItem* avgSpeedUnit_;
66 QGraphicsTextItem* maxSpeedLabel_;
67 QGraphicsTextItem* maxSpeed_;
68 QGraphicsTextItem* maxSpeedUnit_;
69 QGraphicsTextItem* tripTimeLabel_;
70 QGraphicsTextItem* tripTime_;
71 QGraphicsTextItem* totalTimeLabel_;
72 QGraphicsTextItem* totalTime_;
73 QGraphicsLineItem* line1_;
74 QGraphicsLineItem* line2_;
75 QGraphicsPixmapItem* strength_;