Added implementation to handleCheckPoint slot function in carmainwindow.cpp. Now...
[speedfreak] / Client / resultdialog.h
1 /*
2  * CarMainWindow main class
3  *
4  * @author     Janne Änäkkälä <janne.anakkala@fudeco.com>
5  * @copyright  (c) 2010 Speed Freak team
6  * @license    http://opensource.org/licenses/gpl-license.php GNU Public License
7  */
8
9 #ifndef RESULTDIALOG_H
10 #define RESULTDIALOG_H
11
12 #include <QDialog>
13 #include "measures.h"
14
15 namespace Ui {
16     class ResultDialog;
17 }
18
19 class ResultDialog : public QDialog {
20     Q_OBJECT
21 public:
22     ResultDialog(QWidget *parent = 0);
23     ~ResultDialog();
24     void saveMeasuresToArray(Measures *pMeasures);
25     void setDiagramGapStem(double pDiagramGapStem);
26     void setDiagramGapHorizontal(double pDiagramGapHorizontal);
27
28 signals:
29     void sendresult();
30
31 protected:
32     void changeEvent(QEvent *e);
33     void paintEvent(QPaintEvent *);
34
35 private:
36     QPoint changeMeasuresToDiagramPoint(int aSpeed, qreal aTime);
37     void setTimesIntoLabels();
38     void setTimeAxelLength();
39
40 private:
41     Ui::ResultDialog *ui;
42     qreal timeArray[11];
43     double diagramGapStem;
44     double diagramGapHorizontal;
45     QStringList speedList;
46     QStringList timeList;
47     int timeAxelLength;
48
49 private slots:
50     void on_pushButtonSend_clicked();
51 };
52
53 #endif // RESULTDIALOG_H