MAVLinkSettingsWidget.h 719 Bytes
Newer Older
pixhawk's avatar
pixhawk committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#ifndef MAVLINKSETTINGSWIDGET_H
#define MAVLINKSETTINGSWIDGET_H

#include <QtGui/QWidget>

#include "MAVLinkProtocol.h"

namespace Ui {
    class MAVLinkSettingsWidget;
}

class MAVLinkSettingsWidget : public QWidget {
    Q_OBJECT
public:
    MAVLinkSettingsWidget(MAVLinkProtocol* protocol, QWidget *parent = 0);
    ~MAVLinkSettingsWidget();

18 19 20 21 22 23
public slots:
    /** @brief Update the log file name display */
    void updateLogfileName(const QString& fileName);
    /** @brief Start the file select dialog for the log file */
    void chooseLogfileName();

pixhawk's avatar
pixhawk committed
24 25 26 27 28 29 30 31 32
protected:
    MAVLinkProtocol* protocol;
    void changeEvent(QEvent *e);

private:
    Ui::MAVLinkSettingsWidget *m_ui;
};

#endif // MAVLINKSETTINGSWIDGET_H