QGCMapToolBar.h 949 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
    void setStatusLabelText(const QString &text);
33 34 35

private:
    Ui::QGCMapToolBar *ui;
36

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

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

    unsigned statusMaxLen;
49 50 51
};

#endif // QGCMAPTOOLBAR_H