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 "graphicsscreen.h"
25 class QGraphicsTextItem;
26 class QGraphicsLineItem;
28 class DetailScreen : public GraphicsScreen
33 DetailScreen(QWidget* parent = 0);
36 virtual void update();
44 QString formatTime(qulonglong time);
45 QGraphicsTextItem* createItem(QString const& text);
46 QGraphicsLineItem* createLine();
47 QString roundDouble(double number);
48 QGraphicsTextItem* tripLabel_;
49 QGraphicsTextItem* trip_;
50 QGraphicsTextItem* tripUnit_;
51 QGraphicsTextItem* totalLabel_;
52 QGraphicsTextItem* total_;
53 QGraphicsTextItem* totalUnit_;
54 QGraphicsTextItem* speedLabel_;
55 QGraphicsTextItem* speed_;
56 QGraphicsTextItem* speedUnit_;
57 QGraphicsTextItem* avgSpeedLabel_;
58 QGraphicsTextItem* avgSpeed_;
59 QGraphicsTextItem* avgSpeedUnit_;
60 QGraphicsTextItem* maxSpeedLabel_;
61 QGraphicsTextItem* maxSpeed_;
62 QGraphicsTextItem* maxSpeedUnit_;
63 QGraphicsTextItem* tripTimeLabel_;
64 QGraphicsTextItem* tripTime_;
65 QGraphicsTextItem* totalTimeLabel_;
66 QGraphicsTextItem* totalTime_;
67 QGraphicsLineItem* line1_;
68 QGraphicsLineItem* line2_;