AdvancedParamConfig.h 760 Bytes
Newer Older
1 2 3 4 5
#ifndef ADVANCEDPARAMCONFIG_H
#define ADVANCEDPARAMCONFIG_H

#include <QWidget>
#include "ui_AdvancedParamConfig.h"
6 7 8
#include "AP2ConfigWidget.h"
#include "ParamWidget.h"
class AdvancedParamConfig : public AP2ConfigWidget
9 10 11 12 13 14
{
    Q_OBJECT
    
public:
    explicit AdvancedParamConfig(QWidget *parent = 0);
    ~AdvancedParamConfig();
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*> m_paramToWidgetMap;
21 22 23 24
    Ui::AdvancedParamConfig ui;
};

#endif // ADVANCEDPARAMCONFIG_H