X-Git-Url: http://git.maemo.org/git/?p=speedfreak;a=blobdiff_plain;f=Client%2Fresultdialog.h;h=752b7905f49619aa2f7204e8e93b99af1c8a9d95;hp=cf3cc400320abeb32b788e6eab10fe4c3117085f;hb=04e7348e047307f792f88b7a3e198a008eef0e8b;hpb=61afa4c9acc74203ec203acaa9e64927ae73c83b diff --git a/Client/resultdialog.h b/Client/resultdialog.h index cf3cc40..752b790 100644 --- a/Client/resultdialog.h +++ b/Client/resultdialog.h @@ -1,7 +1,8 @@ /* - * CarMainWindow main class + * Result dialog * - * @author Janne Änäkkälä + * @author Janne Änäkkälä + * @author Toni Jussila * @copyright (c) 2010 Speed Freak team * @license http://opensource.org/licenses/gpl-license.php GNU Public License */ @@ -10,7 +11,8 @@ #define RESULTDIALOG_H #include -//#include "measures.h" +#include + namespace Ui { class ResultDialog; @@ -21,15 +23,16 @@ class ResultDialog : public QDialog { public: ResultDialog(QWidget *parent = 0); ~ResultDialog(); - //void saveMeasuresToArray(Measures *pMeasures); - void setDiagramGapStem(double pDiagramGapStem); - void setDiagramGapHorizontal(double pDiagramGapHorizontal); + HelpAccelerationDialog *helpAccelerationDialog; void setEnd(int pValue); void setValue(int pSpeed, double pTime); + void setLabelInfoToUser(QString infoText); + double getResult(); + void setSendServerButtonEnabled(); signals: - void sendresult(double result); + void sendresult(double); protected: void changeEvent(QEvent *e); @@ -38,7 +41,10 @@ protected: private: QPoint changeMeasuresToDiagramPoint(int aSpeed, qreal aTime); void setTimesIntoLabels(); - void setTimeAxelLength(); + void setTimeAxelLength(int pChoice); + void setHeaders(); + void showOrHideLabels(); + int getTargetChoice(); private: Ui::ResultDialog *ui; @@ -48,10 +54,13 @@ private: QStringList speedList; QStringList timeList; int timeAxelLength; + QString resultString; private slots: + void on_pushButtonInfo_clicked(); void on_pushButtonNew_clicked(); void on_pushButtonSend_clicked(); + void killHelpDialog(); }; #endif // RESULTDIALOG_H