QGCActionButton.h 583 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
#ifndef QGCACTIONBUTTON_H
#define QGCACTIONBUTTON_H

#include "QGCToolWidgetItem.h"

namespace Ui {
    class QGCActionButton;
}

10 11
class UASInterface;

12 13 14 15 16 17 18 19 20
class QGCActionButton : public QGCToolWidgetItem
{
    Q_OBJECT

public:
    explicit QGCActionButton(QWidget *parent = 0);
    ~QGCActionButton();

public slots:
21 22
    void sendAction();
    void setActionButtonName(QString text);
23 24 25
    void startEditMode();
    void endEditMode();

26 27 28
private slots:
    void setActiveUAS(UASInterface* uas);

29 30
private:
    Ui::QGCActionButton *ui;
31
    UASInterface* uas;
32 33 34
};

#endif // QGCACTIONBUTTON_H