ParameterInterface.h 676 Bytes
Newer Older
pixhawk's avatar
pixhawk committed
1 2 3 4
#ifndef PARAMETERINTERFACE_H
#define PARAMETERINTERFACE_H

#include <QtGui/QWidget>
5

pixhawk's avatar
pixhawk committed
6 7
#include "ui_ParameterInterface.h"
#include "UASInterface.h"
8
#include "ParamTreeModel.h"
pixhawk's avatar
pixhawk committed
9
#include "QGCParamWidget.h"
pixhawk's avatar
pixhawk committed
10 11 12 13 14 15 16 17 18 19 20 21 22

namespace Ui {
    class ParameterInterface;
}

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

public slots:
    void addUAS(UASInterface* uas);
pixhawk's avatar
pixhawk committed
23
    void selectUAS(int index);
pixhawk's avatar
pixhawk committed
24 25 26

protected:
    virtual void changeEvent(QEvent *e);
pixhawk's avatar
pixhawk committed
27 28
    QMap<int, QGCParamWidget*>* paramWidgets;
    int curr;
29

pixhawk's avatar
pixhawk committed
30 31 32 33 34
private:
    Ui::parameterWidget *m_ui;
};

#endif // PARAMETERINTERFACE_H