QGCTextLabel.h 796 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
#ifndef QGCTEXTLABEL_H
#define QGCTEXTLABEL_H

#include "QGCToolWidgetItem.h"

namespace Ui
{
class QGCTextLabel;
}

class UASInterface;

class QGCTextLabel : public QGCToolWidgetItem
{
    Q_OBJECT

public:
    explicit QGCTextLabel(QWidget *parent = 0);
    ~QGCTextLabel();
    void setActiveUAS(UASInterface *uas);
    void enableText(int num);
22
    virtual void setEditMode(bool editMode);
23 24 25 26
public slots:
    void writeSettings(QSettings& settings);
    void readSettings(const QSettings& settings);
    void readSettings(const QString& pre,const QVariantMap& settings);
27
    void textMessageReceived(int uasid, int componentId, int severity, QString message);
28

29 30 31
private slots:
    void update_isMavCommand();

32 33 34 35 36 37
private:
    int enabledNum;
    Ui::QGCTextLabel *ui;
};

#endif // QGCTEXTLABEL_H