X-Git-Url: http://git.maemo.org/git/?p=speedfreak;a=blobdiff_plain;f=Client%2Fresultdialog.h;h=3dacc822187a1d49f768684edd5bc890a4666902;hp=41722babef01a1f418e533bd58ba5f3fa6486039;hb=20d58825bd115adb8e56401a1055ff6d2a3c7850;hpb=ceaaf5439cc6d92466365b40e68f28744b0421a3;ds=sidebyside diff --git a/Client/resultdialog.h b/Client/resultdialog.h index 41722ba..3dacc82 100644 --- a/Client/resultdialog.h +++ b/Client/resultdialog.h @@ -10,7 +10,7 @@ #define RESULTDIALOG_H #include -#include "measures.h" + namespace Ui { class ResultDialog; @@ -21,12 +21,14 @@ 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(); signals: - void sendresult(); + void sendresult(double); protected: void changeEvent(QEvent *e); @@ -35,6 +37,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 +49,11 @@ private: double diagramGapHorizontal; QStringList speedList; QStringList timeList; + int timeAxelLength; + QString resultString; private slots: + void on_pushButtonNew_clicked(); void on_pushButtonSend_clicked(); };