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
#ifndef QGCMAPTOOLBAR_H
#define QGCMAPTOOLBAR_H
#include <QWidget>
#include <QMenu>
#include <QActionGroup>
class QGCMapWidget;
namespace Ui {
class QGCMapToolBar;
}
class QGCMapToolBar : public QWidget
{
Q_OBJECT
public:
explicit QGCMapToolBar(QWidget *parent = 0);
~QGCMapToolBar();
void setMap(QGCMapWidget* map);
public slots:
void tileLoadStart();
void tileLoadEnd();
void tileLoadProgress(int progress);
void setUAVTrailTime();
void setUAVTrailDistance();
void setUpdateInterval();
void setMapType();
private:
Ui::QGCMapToolBar *ui;
protected:
QGCMapWidget* map;
QMenu optionsMenu;
QMenu trailPlotMenu;
QMenu updateTimesMenu;
QMenu mapTypesMenu;
QActionGroup* trailSettingsGroup;
QActionGroup* updateTimesGroup;
QActionGroup* mapTypesGroup;
};
#endif // QGCMAPTOOLBAR_H