Added signals for sending to server.
[speedfreak] / Client / resultdialog.h
1 #ifndef RESULTDIALOG_H
2 #define RESULTDIALOG_H
3
4 #include <QDialog>
5 #include "measures.h"
6
7 namespace Ui {
8     class ResultDialog;
9 }
10
11 class ResultDialog : public QDialog {
12     Q_OBJECT
13 public:
14     ResultDialog(QWidget *parent = 0);
15     ~ResultDialog();
16     void saveMeasuresToArray(Measures *pMeasures);
17
18 signals:
19     void sendresult();
20
21 protected:
22     void changeEvent(QEvent *e);
23     void paintEvent(QPaintEvent *);
24
25 private:
26     QPoint changeMeasuresToDiagramPoint(int aSpeed, qreal aTime);
27     qreal timeArray[10];
28
29 private:
30     Ui::ResultDialog *ui;
31
32 private slots:
33     void on_pushButtonSend_clicked();
34 };
35
36 #endif // RESULTDIALOG_H