Youtube video and text (draft).
[speedfreak] / Client / resultdialog.h
index 32818d3..9126822 100644 (file)
@@ -10,7 +10,7 @@
 #define RESULTDIALOG_H
 
 #include <QDialog>
-#include "measures.h"
+
 
 namespace Ui {
     class ResultDialog;
@@ -21,9 +21,11 @@ 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();
@@ -35,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;
@@ -45,8 +50,10 @@ private:
     QStringList speedList;
     QStringList timeList;
     int timeAxelLength;
+    QString resultString;
 
 private slots:
+    void on_pushButtonNew_clicked();
     void on_pushButtonSend_clicked();
 };