X-Git-Url: http://git.maemo.org/git/?p=speedfreak;a=blobdiff_plain;f=Client%2Fresultdialog.h;h=6f19c38f0acf406e8533979162266d053e31ee70;hp=32818d307001c79c29b2c022a615157da37a1fc7;hb=280f195cab1f9d4e3deae8129317fe38289fc3a7;hpb=37c99808b1ba47c4e1ef4852d6ca3890e6e9c8ef diff --git a/Client/resultdialog.h b/Client/resultdialog.h index 32818d3..6f19c38 100644 --- a/Client/resultdialog.h +++ b/Client/resultdialog.h @@ -10,7 +10,7 @@ #define RESULTDIALOG_H #include -#include "measures.h" +//#include "measures.h" namespace Ui { class ResultDialog; @@ -21,12 +21,12 @@ 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); signals: - void sendresult(); + void sendresult(double result); protected: void changeEvent(QEvent *e); @@ -35,7 +35,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,8 +48,10 @@ private: QStringList speedList; QStringList timeList; int timeAxelLength; + QString resultString; private slots: + void on_pushButtonNew_clicked(); void on_pushButtonSend_clicked(); };