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

#endif // ADVANCEDPARAMCONFIG_H