QGCCommandButton.h 630 Bytes
Newer Older
lm's avatar
lm committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
#ifndef QGCCOMMANDBUTTON_H
#define QGCCOMMANDBUTTON_H

#include "QGCToolWidgetItem.h"

namespace Ui {
    class QGCCommandButton;
}

class UASInterface;

class QGCCommandButton : public QGCToolWidgetItem
{
    Q_OBJECT

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

public slots:
    void sendCommand();
    void setCommandButtonName(QString text);
    void startEditMode();
    void endEditMode();
    void writeSettings(QSettings& settings);
    void readSettings(const QSettings& settings);

private:
    Ui::QGCCommandButton *ui;
    UASInterface* uas;
};

#endif // QGCCOMMANDBUTTON_H