StandardParamConfig.h 758 Bytes
Newer Older
1 2 3 4 5
#ifndef STANDARDPARAMCONFIG_H
#define STANDARDPARAMCONFIG_H

#include <QWidget>
#include "ui_StandardParamConfig.h"
6 7 8
#include "AP2ConfigWidget.h"
#include "ParamWidget.h"
class StandardParamConfig : public AP2ConfigWidget
9 10 11 12 13 14
{
    Q_OBJECT
    
public:
    explicit StandardParamConfig(QWidget *parent = 0);
    ~StandardParamConfig();
15 16 17 18
    void addRange(QString title,QString description,QString param,double min,double max);
    void addCombo(QString title,QString description,QString param,QList<QPair<int,QString> > valuelist);
private slots:
    void parameterChanged(int uas, int component, QString parameterName, QVariant value);
19
private:
20
    QMap<QString,ParamWidget*> paramToWidgetMap;
21 22 23 24
    Ui::StandardParamConfig ui;
};

#endif // STANDARDPARAMCONFIG_H