QGCViewModeSelection.h 741 Bytes
Newer Older
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 34 35 36 37 38
#ifndef QGCVIEWMODESELECTION_H
#define QGCVIEWMODESELECTION_H

#include <QWidget>
#include "MainWindow.h"

namespace Ui {
class QGCViewModeSelection;
}

class QGCViewModeSelection : public QWidget
{
    Q_OBJECT
    
public:
    explicit QGCViewModeSelection(QWidget *parent = 0);
    ~QGCViewModeSelection();

    enum MainWindow::CUSTOM_MODE waitForInput();

public slots:

    void selectGeneric();
    void selectPX4();
    void selectAPM();
    void selectWifi();

signals:
    void customViewModeSelected(enum MainWindow::CUSTOM_MODE mode);
    void settingsStorageRequested(bool requested);
    
private:
    Ui::QGCViewModeSelection *ui;
    bool selected;
    enum MainWindow::CUSTOM_MODE mode;
};

#endif // QGCVIEWMODESELECTION_H