More connecting client-server functionality to GUI.
[speedfreak] / Client / resultdialog.h
index d0184cc..e8828c7 100644 (file)
@@ -10,7 +10,7 @@
 #define RESULTDIALOG_H
 
 #include <QDialog>
-#include "measures.h"
+//#include "measures.h"
 
 namespace Ui {
     class ResultDialog;
@@ -21,10 +21,13 @@ class ResultDialog : public QDialog {
 public:
     ResultDialog(QWidget *parent = 0);
     ~ResultDialog();
-    void saveMeasuresToArray(Measures *pMeasures);
+
+    void setEnd(int pValue);
+    void setValue(int pSpeed, double pTime);
+    void setLabelInfoToUser(QString infoText);
 
 signals:
-    void sendresult();
+    void sendresult(double);
 
 protected:
     void changeEvent(QEvent *e);
@@ -32,12 +35,24 @@ 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_pushButtonNew_clicked();
     void on_pushButtonSend_clicked();
 };