Added license information to all source codes.
[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
26 signals:
27     void sendresult();
28
29 protected:
30     void changeEvent(QEvent *e);
31     void paintEvent(QPaintEvent *);
32
33 private:
34     QPoint changeMeasuresToDiagramPoint(int aSpeed, qreal aTime);
35     qreal timeArray[10];
36
37 private:
38     Ui::ResultDialog *ui;
39
40 private slots:
41     void on_pushButtonSend_clicked();
42 };
43
44 #endif // RESULTDIALOG_H