GPS Sport Sniffer is a open source GPS application developed with Qt and made in...
[gpssportsniffer] / mainWindow.h
1 // checksum 0x9a77 version 0x30002
2 /*
3   This file was generated by the Mobile Qt Application wizard of Qt Creator.
4   MainWindow is a convenience class containing mobile device specific code
5   such as screen orientation handling.
6   It is recommended not to modify this file, since newer versions of Qt Creator
7   may offer an updated version of it.
8 */
9
10 #ifndef MAINWINDOW_H
11 #define MAINWINDOW_H
12
13 class WindowMap;
14
15
16 #include<QMainWindow>
17 #include "log.h"
18 #include "settings.h"
19
20
21 namespace Ui {
22     class MainWindow;
23 }
24
25 class MainWindow : public QMainWindow
26 {
27     Q_OBJECT
28 public:
29     enum ScreenOrientation {
30         ScreenOrientationLockPortrait,
31         ScreenOrientationLockLandscape,
32         ScreenOrientationAuto
33     };
34
35     explicit MainWindow(QWidget *parent = 0);
36     virtual ~MainWindow();
37
38     void setOrientation(ScreenOrientation orientation);
39     void showExpanded();
40
41 private:
42     Ui::MainWindow *ui;
43     WindowMap *windowMap;
44     Log *log;
45     Settings* settings;
46
47     // events
48     void closeEvent(QCloseEvent *event);
49
50
51 private slots:
52     void configureSettings();
53     void simulate();
54     void tracks();
55     void newActivity();
56     void quit();
57 };
58
59 #endif // MAINWINDOW_H