SwitchCalibrator.h 678 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10
#ifndef SWITCHCALIBRATOR_H
#define SWITCHCALIBRATOR_H

#include <QWidget>
#include <QLabel>
#include <QPushButton>
#include <QVector>
#include <QGridLayout>
#include <QHBoxLayout>

11 12 13
#include "AbstractCalibrator.h"

class SwitchCalibrator : public AbstractCalibrator
14 15 16 17 18
{
Q_OBJECT
public:
    explicit SwitchCalibrator(QString title=QString(), QWidget *parent = 0);

19
    void set(const QVector<float> &data);
20 21 22
//signals:
//    void defaultSetpointChanged(float);
//    void toggledSetpointChanged(float);
23

24 25 26
protected slots:
    void setDefault();
    void setToggled();
27

28 29 30
protected:   
    QLabel *defaultPulseWidth;
    QLabel *toggledPulseWidth;    
31 32 33 34

};

#endif // SWITCHCALIBRATOR_H