X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;ds=sidebyside;f=Client%2Fresultdialog.h;h=752b7905f49619aa2f7204e8e93b99af1c8a9d95;hb=e506c71a7f0fc2e4c1539abd800a27cfd3d04137;hp=efed8404de6f38fa556b64099a76e257cd58cf91;hpb=379539e5d2493cc3619586ccfc9836e0c1bb3f50;p=speedfreak diff --git a/Client/resultdialog.h b/Client/resultdialog.h index efed840..752b790 100644 --- a/Client/resultdialog.h +++ b/Client/resultdialog.h @@ -1,8 +1,18 @@ +/* + * Result dialog + * + * @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 + */ + #ifndef RESULTDIALOG_H #define RESULTDIALOG_H #include -#include "measures.h" +#include + namespace Ui { class ResultDialog; @@ -13,7 +23,16 @@ class ResultDialog : public QDialog { public: ResultDialog(QWidget *parent = 0); ~ResultDialog(); - void saveMeasuresToArray(Measures *pMeasures); + HelpAccelerationDialog *helpAccelerationDialog; + + void setEnd(int pValue); + void setValue(int pSpeed, double pTime); + void setLabelInfoToUser(QString infoText); + double getResult(); + void setSendServerButtonEnabled(); + +signals: + void sendresult(double); protected: void changeEvent(QEvent *e); @@ -21,10 +40,27 @@ protected: private: QPoint changeMeasuresToDiagramPoint(int aSpeed, qreal aTime); - qreal timeArray[10]; + void setTimesIntoLabels(); + void setTimeAxelLength(int pChoice); + void setHeaders(); + void showOrHideLabels(); + int getTargetChoice(); private: Ui::ResultDialog *ui; + qreal timeArray[11]; + double diagramGapStem; + double diagramGapHorizontal; + 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