apmtoolbar.h 1.19 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
    void showConnectionDialog();
44
    void setConnection(bool connection);
45 46

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

#endif // APMTOOLBAR_H