Changed file structure and removed useless output files.
[speedfreak] / Client / carmainwindow.h
1 #ifndef CARMAINWINDOW_H
2 #define CARMAINWINDOW_H
3
4 /**
5   *This class
6   *@author Toni Jussila
7   *@version 0.0.1
8   */
9
10 #include <QMainWindow>
11 #include "resultdialog.h"
12 #include "measuredialog.h"
13 #include <QModelIndex>
14
15 namespace Ui {
16     class CarMainWindow;
17 }
18
19 class CarMainWindow : public QMainWindow {
20     Q_OBJECT
21 public:
22     CarMainWindow(QWidget *parent = 0);
23     ~CarMainWindow();
24
25 protected:
26     void changeEvent(QEvent *e);
27
28 private:
29     Ui::CarMainWindow *ui;
30     ResultDialog *result;
31     void initUnitCompoBox();
32     void initSpeedListView();
33     MeasureDialog *measure;
34
35
36 private:
37     QStringList numbers;
38     QStringList units;
39
40 private slots:
41     void on_autoStartButton_clicked();
42     void on_listView_clicked(QModelIndex index);
43     void updateUnitCompoBox(QString unit);
44 };
45
46 #endif // CARMAINWINDOW_H