#ifndef RFUSETTING_H
#define RFUSETTING_H

#include <QDialog>

namespace Ui {
class RFUsetting;
}

class RFUsetting : public QDialog
{
    Q_OBJECT

public:
    explicit RFUsetting(QWidget *parent = 0);
    ~RFUsetting();


private slots:
    void on_PBok_clicked();
    void on_PBgetGain_clicked();
    void on_PBstopRotator_clicked();
    void on_PBsetRotator_clicked();

    void on_PBrotLEFT_released();
    void on_PBrotRIGHT_released();
    void on_PBrotRIGHT_pressed();
    void on_PBrotLEFT_pressed();
    void computeGain();
    void on_PBconnectAR_clicked();
    void on_PBconnectAU_clicked();
    void on_SBlevel_valueChanged(double arg1);
    void on_ATTslider_valueChanged(int value);

    void on_PBdisconnectAR_clicked();

    void on_PBdisconnectAU_clicked();

    void on_PBreloadFreq_clicked();

public slots:
    void RBgroupLEVEL_clicked(int );
    void RBgroupANT_clicked(int );
    void RBgroupFILT_clicked (int);
    void getRotatorState();    
    void ARreadAngle();

private:
    Ui::RFUsetting *ui;
    void readParameters(QString name, QVector<double> *freq, QVector<double> *val);
    double interpolateValue(QVector<double> *freq, QVector<double> *val);
};

#endif // RFUSETTING_H
