StandardParamConfig.h 866 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 20
    void doubleValueChanged(QString param,double value);
    void intValueChanged(QString param,int value);
21
private:
22
    QMap<QString,ParamWidget*> paramToWidgetMap;
23 24 25 26
    Ui::StandardParamConfig ui;
};

#endif // STANDARDPARAMCONFIG_H