X-Git-Url: http://git.maemo.org/git/?p=speedfreak;a=blobdiff_plain;f=Client%2Fresultdialog.h;h=752b7905f49619aa2f7204e8e93b99af1c8a9d95;hp=32818d307001c79c29b2c022a615157da37a1fc7;hb=d9a92767c3442a574f15f3d9050e109fea4b75ba;hpb=37c99808b1ba47c4e1ef4852d6ca3890e6e9c8ef diff --git a/Client/resultdialog.h b/Client/resultdialog.h index 32818d3..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,12 +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(); + void sendresult(double); protected: void changeEvent(QEvent *e); @@ -35,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; @@ -45,9 +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