X-Git-Url: http://git.maemo.org/git/?p=speedfreak;a=blobdiff_plain;f=Client%2Fresultdialog.h;h=252e7ff1e2899c3dee4a51f853bebbdc7ef0f9c2;hp=41722babef01a1f418e533bd58ba5f3fa6486039;hb=8bc16dde57946bf3d217401e01061327867da370;hpb=ceaaf5439cc6d92466365b40e68f28744b0421a3 diff --git a/Client/resultdialog.h b/Client/resultdialog.h index 41722ba..252e7ff 100644 --- a/Client/resultdialog.h +++ b/Client/resultdialog.h @@ -1,7 +1,8 @@ /* * CarMainWindow main class * - * @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,7 @@ #define RESULTDIALOG_H #include -#include "measures.h" + namespace Ui { class ResultDialog; @@ -21,12 +22,15 @@ class ResultDialog : public QDialog { public: ResultDialog(QWidget *parent = 0); ~ResultDialog(); - void saveMeasuresToArray(Measures *pMeasures); - void setDiagramGapStem(double pDiagramGapStem); - void setDiagramGapHorizontal(double pDiagramGapHorizontal); + + void setEnd(int pValue); + void setValue(int pSpeed, double pTime); + void setLabelInfoToUser(QString infoText); + double getResult(); + void setSendServerButtonEnabled(); signals: - void sendresult(); + void sendresult(double); protected: void changeEvent(QEvent *e); @@ -35,6 +39,10 @@ protected: private: QPoint changeMeasuresToDiagramPoint(int aSpeed, qreal aTime); void setTimesIntoLabels(); + void setTimeAxelLength(int pChoice); + void setHeaders(); + void showOrHideLabels(); + int getTargetChoice(); private: Ui::ResultDialog *ui; @@ -43,8 +51,11 @@ private: double diagramGapHorizontal; QStringList speedList; QStringList timeList; + int timeAxelLength; + QString resultString; private slots: + void on_pushButtonNew_clicked(); void on_pushButtonSend_clicked(); };