QGCActionButton.h 616 Bytes
Newer Older
1 2 3 4 5
#ifndef QGCACTIONBUTTON_H
#define QGCACTIONBUTTON_H

#include "QGCToolWidgetItem.h"

6 7 8
namespace Ui
{
class QGCActionButton;
9 10
}

11 12
class UASInterface;

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

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

public slots:
22 23
    void sendAction();
    void setActionButtonName(QString text);
24 25
    void startEditMode();
    void endEditMode();
lm's avatar
lm committed
26 27
    void writeSettings(QSettings& settings);
    void readSettings(const QSettings& settings);
28 29 30

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

#endif // QGCACTIONBUTTON_H