Added support for 3d route in routedialog
[speedfreak] / Client / resultdialog.h
index efed840..32818d3 100644 (file)
@@ -1,3 +1,11 @@
+/*
+ * CarMainWindow main class
+ *
+ * @author     Janne Änäkkälä <janne.anakkala@fudeco.com>
+ * @copyright  (c) 2010 Speed Freak team
+ * @license    http://opensource.org/licenses/gpl-license.php GNU Public License
+ */
+
 #ifndef RESULTDIALOG_H
 #define RESULTDIALOG_H
 
@@ -14,6 +22,11 @@ public:
     ResultDialog(QWidget *parent = 0);
     ~ResultDialog();
     void saveMeasuresToArray(Measures *pMeasures);
+    void setDiagramGapStem(double pDiagramGapStem);
+    void setDiagramGapHorizontal(double pDiagramGapHorizontal);
+
+signals:
+    void sendresult();
 
 protected:
     void changeEvent(QEvent *e);
@@ -21,10 +34,20 @@ protected:
 
 private:
     QPoint changeMeasuresToDiagramPoint(int aSpeed, qreal aTime);
-    qreal timeArray[10];
+    void setTimesIntoLabels();
+    void setTimeAxelLength();
 
 private:
     Ui::ResultDialog *ui;
+    qreal timeArray[11];
+    double diagramGapStem;
+    double diagramGapHorizontal;
+    QStringList speedList;
+    QStringList timeList;
+    int timeAxelLength;
+
+private slots:
+    void on_pushButtonSend_clicked();
 };
 
 #endif // RESULTDIALOG_H