apmtoolbar.h 1.15 KB
Newer Older
1 2 3 4 5 6
#ifndef APMTOOLBAR_H
#define APMTOOLBAR_H

#include <QAction>
#include <QDeclarativeView>

7 8
class LinkInterface;

9 10 11 12 13
class APMToolBar : public QDeclarativeView
{
    Q_OBJECT
public:
    explicit APMToolBar(QWidget *parent = 0);
14
    ~APMToolBar();
15 16 17 18 19 20 21

    void setFlightViewAction(QAction *action);
    void setFlightPlanViewAction(QAction *action);
    void setHardwareViewAction(QAction *action);
    void setSoftwareViewAction(QAction *action);
    void setSimulationViewAction(QAction *action);
    void setTerminalViewAction(QAction *action);
22
    void setConnectMAVAction(QAction *action);
23 24 25 26 27 28 29 30 31
    
signals:
    void triggerFlightView();
    void triggerFlightPlanView();
    void triggerHardwareView();
    void triggerSoftwareView();
    void triggerSimulationView();
    void triggerTerminalView();

32 33
    void MAVConnected(bool connected);

34 35 36 37 38 39 40 41 42
public slots:
    void selectFlightView();
    void selectFlightPlanView();
    void selectHardwareView();
    void selectSoftwareView();
    void selectSimulationView();
    void selectTerminalView();

    void connectMAV();
43 44 45
    void showConnectionDialog();

    void updateLinkDisplay(LinkInterface *newLink);
46 47 48
};

#endif // APMTOOLBAR_H