X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=Client%2Fresultdialog.h;h=32818d307001c79c29b2c022a615157da37a1fc7;hb=650127cdd4d2a4f8c7ade0f227b0d3f11073e6bc;hp=daad7d3a2743a7f3a8ad00473aeadf46a73fd77d;hpb=b7e5e4f21ee31476d5b9d3ceb3b7070b7f6e7101;p=speedfreak diff --git a/Client/resultdialog.h b/Client/resultdialog.h index daad7d3..32818d3 100644 --- a/Client/resultdialog.h +++ b/Client/resultdialog.h @@ -1,7 +1,16 @@ +/* + * CarMainWindow main class + * + * @author Janne Änäkkälä + * @copyright (c) 2010 Speed Freak team + * @license http://opensource.org/licenses/gpl-license.php GNU Public License + */ + #ifndef RESULTDIALOG_H #define RESULTDIALOG_H #include +#include "measures.h" namespace Ui { class ResultDialog; @@ -12,16 +21,33 @@ class ResultDialog : public QDialog { public: ResultDialog(QWidget *parent = 0); ~ResultDialog(); + void saveMeasuresToArray(Measures *pMeasures); + void setDiagramGapStem(double pDiagramGapStem); + void setDiagramGapHorizontal(double pDiagramGapHorizontal); + +signals: + void sendresult(); protected: void changeEvent(QEvent *e); void paintEvent(QPaintEvent *); private: - QPoint changeMeasuresToDiagramPoint(int aSpeed, int aTime); + QPoint changeMeasuresToDiagramPoint(int aSpeed, qreal aTime); + void setTimesIntoLabels(); + void setTimeAxelLength(); private: Ui::ResultDialog *ui; + qreal timeArray[11]; + double diagramGapStem; + double diagramGapHorizontal; + QStringList speedList; + QStringList timeList; + int timeAxelLength; + +private slots: + void on_pushButtonSend_clicked(); }; #endif // RESULTDIALOG_H