QGCMapToolBar.h 790 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 31 32 33
    void setUpdateInterval();

private:
    Ui::QGCMapToolBar *ui;
34

35 36
protected:
    QGCMapWidget* map;
LM's avatar
LM committed
37 38
    QMenu optionsMenu;
    QMenu trailPlotMenu;
39 40 41
    QMenu updateTimesMenu;
    QActionGroup* trailSettingsGroup;
    QActionGroup* updateTimesGroup;
42 43 44
};

#endif // QGCMAPTOOLBAR_H