Skip to content
Snippets Groups Projects
apmtoolbar.h 1.15 KiB
Newer Older
  • Learn to ignore specific revisions
  • #ifndef APMTOOLBAR_H
    #define APMTOOLBAR_H
    
    #include <QAction>
    #include <QDeclarativeView>
    
    
    class APMToolBar : public QDeclarativeView
    {
        Q_OBJECT
    public:
        explicit APMToolBar(QWidget *parent = 0);
    
    
        void setFlightViewAction(QAction *action);
        void setFlightPlanViewAction(QAction *action);
        void setHardwareViewAction(QAction *action);
        void setSoftwareViewAction(QAction *action);
        void setSimulationViewAction(QAction *action);
        void setTerminalViewAction(QAction *action);
    
        void setConnectMAVAction(QAction *action);
    
        
    signals:
        void triggerFlightView();
        void triggerFlightPlanView();
        void triggerHardwareView();
        void triggerSoftwareView();
        void triggerSimulationView();
        void triggerTerminalView();
    
    
        void MAVConnected(bool connected);
    
    
    public slots:
        void selectFlightView();
        void selectFlightPlanView();
        void selectHardwareView();
        void selectSoftwareView();
        void selectSimulationView();
        void selectTerminalView();
    
        void connectMAV();
    
        void showConnectionDialog();
    
        void updateLinkDisplay(LinkInterface *newLink);
    
    };
    
    #endif // APMTOOLBAR_H