QGCActionButton.h 620 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
    void startEditMode();
    void endEditMode();
lm's avatar
lm committed
25 26
    void writeSettings(QSettings& settings);
    void readSettings(const QSettings& settings);
27 28 29

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

#endif // QGCACTIONBUTTON_H