ParameterInterface.h 648 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"
pixhawk's avatar
pixhawk committed
8
#include "QGCParamWidget.h"
pixhawk's avatar
pixhawk committed
9 10 11 12 13 14 15 16 17 18 19 20 21

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
22
    void selectUAS(int index);
pixhawk's avatar
pixhawk committed
23 24 25

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

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

#endif // PARAMETERINTERFACE_H