QGCMapToolBar.h 871 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 23
    explicit QGCMapToolBar(QWidget *parent = 0);
    ~QGCMapToolBar();

    void setMap(QGCMapWidget* map);

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

private:
    Ui::QGCMapToolBar *ui;
35

36 37
protected:
    QGCMapWidget* map;
LM's avatar
LM committed
38 39
    QMenu optionsMenu;
    QMenu trailPlotMenu;
40
    QMenu updateTimesMenu;
41 42
    QMenu mapTypesMenu;

43 44
    QActionGroup* trailSettingsGroup;
    QActionGroup* updateTimesGroup;
45
    QActionGroup* mapTypesGroup;
46 47 48
};

#endif // QGCMAPTOOLBAR_H