QGCRadioChannelDisplay.h 785 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#ifndef QGCRADIOCHANNELDISPLAY_H
#define QGCRADIOCHANNELDISPLAY_H

#include <QWidget>

class QGCRadioChannelDisplay : public QWidget
{
    Q_OBJECT
public:
    explicit QGCRadioChannelDisplay(QWidget *parent = 0);
    void setOrientation(Qt::Orientation orient);
    void setValue(int value);
    void showMinMax();
    void hideMinMax();
    void setMin(int value);
    void setMax(int value);
17
    void setName(QString name);
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
    int value() { return m_value; }
    int min() { return m_min; }
    int max() { return m_max; }
protected:
    void paintEvent(QPaintEvent *event);
private:
    Qt::Orientation m_orientation;
    int m_value;
    int m_min;
    int m_max;
    bool m_showMinMax;
    QString m_name;
signals:
    
public slots:
    
};

#endif // QGCRADIOCHANNELDISPLAY_H