QGCMapToolBar.h 930 Bytes
Newer Older
1 2 3 4
#ifndef QGCMAPTOOLBAR_H
#define QGCMAPTOOLBAR_H

#include <QWidget>
LM's avatar
LM committed
5
#include <QMenu>
6
#include <QActionGroup>
7

8 9
class QGCMapWidget;

10
namespace Ui {
11
    class QGCMapToolBar;
12 13
}

14
class QGCMapToolBar : public QWidget
15 16 17 18
{
    Q_OBJECT

public:
19 20 21 22
    explicit QGCMapToolBar(QWidget *parent = 0);

    void setMap(QGCMapWidget* map);

23 24 25 26
public slots:
    void tileLoadStart();
    void tileLoadEnd();
    void tileLoadProgress(int progress);
LM's avatar
LM committed
27 28
    void setUAVTrailTime();
    void setUAVTrailDistance();
29
    void setUpdateInterval();
30
    void setMapType();
31
    void setStatusLabelText(const QString &text);
32 33

private:
34
    Ui::QGCMapToolBar* _ui;
35

36 37 38 39 40
    QGCMapWidget* _map;
    QMenu* _optionsMenu;
    QMenu* _trailPlotMenu;
    QMenu* _updateTimesMenu;
    QMenu* _mapTypesMenu;
41

42 43 44
    QActionGroup* _trailSettingsGroup;
    QActionGroup* _updateTimesGroup;
    QActionGroup* _mapTypesGroup;
45

46
    unsigned _statusMaxLen;
47 48 49
};

#endif // QGCMAPTOOLBAR_H