projects
/
speedfreak
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Youtube video and text (draft).
[speedfreak]
/
Client
/
resultdialog.h
diff --git
a/Client/resultdialog.h
b/Client/resultdialog.h
index
efed840
..
9126822
100644
(file)
--- a/
Client/resultdialog.h
+++ b/
Client/resultdialog.h
@@
-1,8
+1,16
@@
+/*
+ * 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
#include <QDialog>
#ifndef RESULTDIALOG_H
#define RESULTDIALOG_H
#include <QDialog>
-#include "measures.h"
+
namespace Ui {
class ResultDialog;
namespace Ui {
class ResultDialog;
@@
-13,7
+21,14
@@
class ResultDialog : public QDialog {
public:
ResultDialog(QWidget *parent = 0);
~ResultDialog();
public:
ResultDialog(QWidget *parent = 0);
~ResultDialog();
- void saveMeasuresToArray(Measures *pMeasures);
+
+ void setEnd(int pValue);
+ void setValue(int pSpeed, double pTime);
+ void setLabelInfoToUser(QString infoText);
+ double getResult();
+
+signals:
+ void sendresult();
protected:
void changeEvent(QEvent *e);
protected:
void changeEvent(QEvent *e);
@@
-21,10
+36,25
@@
protected:
private:
QPoint changeMeasuresToDiagramPoint(int aSpeed, qreal aTime);
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;
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();
};
#endif // RESULTDIALOG_H
};
#endif // RESULTDIALOG_H