WSJT-X/signalmeter.h
Joe Taylor 0e87c974e9 Modified behavior of audio level meter and adjacent slider; Tx6 at program startup.
1. Level meter range increased to 0-90 dB.
2. Level meter reading is independent of slider setting.
3. For a trial period: thermometer bar goes red if a 16-bit sample
   is within 5 dB A/D limit.
4. Slider can be used to adjust levels sent to waterfall.
5. Tx6 message is selected on program startup.
Thanks to W9MDB for most of this code.



git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@7596 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
2017-03-06 14:34:25 +00:00

28 lines
404 B
C++

// -*- Mode: C++ -*-
#ifndef SIGNALMETER_H
#define SIGNALMETER_H
#include <QFrame>
class QLabel;
class MeterWidget;
class SignalMeter final
: public QFrame
{
Q_OBJECT
public:
explicit SignalMeter (QWidget * parent = nullptr);
public slots:
void setValue (float value, float valueMax);
private:
MeterWidget * m_meter;
QWidget * m_scale;
QLabel * m_reading;
};
#endif // SIGNALMETER_H