-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmainwindow.h
81 lines (74 loc) · 2.96 KB
/
mainwindow.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
/************************************************************************************
* QSlippyMap - Tile based slippery map *
* Copyright (C) 2017 Michael Carpenter ([email protected]) *
* *
* This file is a part of QSlippyMap *
* *
* QSlippyMap is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Lesser General Public *
* License as published by the Free Software Foundation, version *
* 2.1 of the License. *
* *
* QSlippyMap is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
* Lesser General Public License for more details. *
* *
* You should have received a copy of the GNU Lesser General Public *
* License along with this program; if not, write to the Free Software *
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *
************************************************************************************/
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QGraphicsView>
#include <QGraphicsScene>
#include <QTimer>
#include <QLabel>
#include "map.h"
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
private:
Ui::MainWindow *ui;
QList<QString> list;
QTimer *m_timer;
QTimer *m_lapTimeUpdateTimer;
double m_centerLat;
double m_centerLon;
QPointF m_lastPoint;
double m_totalAngle;
double m_lastAngle;
double m_totalUnsignedAngle;
double m_calculatedTotalLapAngle;
double m_calculatedDistance;
int m_lapCount;
int state;
QTime m_startDateTime;
QTime m_lapStartDateTime;
QLabel *m_tileUpdateLabel;
QLabel *m_tileDownloadLabel;
private slots:
void mouseMoved(double lat,double lon);
void mouseClicked(double lat, double lon);
void replayClicked();
void setStartButtonClicked();
void lapTimeUpdateTimerTick();
void localTileUpdate(int count);
void networkTileUpdate(int count);
void zoomInButtonClicked();
void zoomOutButtonClicked();
void viewMapsButtonClicked();
void viewLapTimesButtonClicked();
void viewGraphsButtonClicked();
void viewSettingsButtonClicked();
void menuMapBoxClicked();
void menuGoogleClicked();
};
#endif // MAINWINDOW_H