X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=Client%2Fresultdialog.h;h=9126822dab81575f53b0a5275cd347cd0434c889;hb=74a1541fc05869163401c4885da4445c8940c822;hp=cf3cc400320abeb32b788e6eab10fe4c3117085f;hpb=61afa4c9acc74203ec203acaa9e64927ae73c83b;p=speedfreak diff --git a/Client/resultdialog.h b/Client/resultdialog.h index cf3cc40..9126822 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,15 +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(double result); + void sendresult(); protected: void changeEvent(QEvent *e); @@ -38,7 +37,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; @@ -48,6 +50,7 @@ private: QStringList speedList; QStringList timeList; int timeAxelLength; + QString resultString; private slots: void on_pushButtonNew_clicked();