10 #include "ui_wfmdemodgui.h" 83 qDebug(
"WFMDemodGUI::handleMessage: WFMDemod::MsgConfigureWFMDemod");
138 ui->afBWText->setText(QString(
"%1 kHz").
arg(value));
145 ui->volumeText->setText(QString(
"%1").
arg(value / 10.0, 0,
'f', 1));
152 ui->squelchText->setText(QString(
"%1 dB").
arg(value));
210 setAttribute(Qt::WA_DeleteOnClose,
true);
212 connect(
this, SIGNAL(customContextMenuRequested(
const QPoint &)),
this, SLOT(
onMenuDialogCalled(
const QPoint &)));
221 connect(audioMuteRightClickEnabler, SIGNAL(rightClick(
const QPoint &)),
this, SLOT(
audioSelect()));
223 ui->deltaFrequencyLabel->setText(QString(
"%1f").
arg(QChar(0x94, 0x03)));
225 ui->deltaFrequency->setValueRange(
false, 7, -9999999, 9999999);
319 qDebug(
"WFMDemodGUI::audioSelect");
332 double magsqAvg, magsqPeak;
338 ui->channelPower->setText(QString::number(powDbAvg,
'f', 1));
339 ui->channelPowerMeter->levelChanged(
340 (100.0f + powDbAvg) / 100.0f,
341 (100.0f + powDbPeak) / 100.0f,
349 ui->audioMute->setStyleSheet(
"QToolButton { background-color : green; }");
351 ui->audioMute->setStyleSheet(
"QToolButton { background:rgb(79,79,79); }");
static MainWindow * getInstance()
void leaveEvent(QEvent *)
const QString & getReverseAPIAddress() const
qint64 m_inputFrequencyOffset
static const int m_rfBWDigits
bool m_basicSettingsShown
int getCenterFrequency() const
void push(Message *message, bool emitSignal=true)
Push message onto queue.
static double dbPower(double magsq, double floor=1e-12)
virtual qint64 getCenterFrequency() const
WFMDemodGUI(PluginAPI *pluginAPI, DeviceUISet *deviceUISet, BasebandSampleSink *rxChannel, QWidget *parent=0)
MessageQueue * getInputMessageQueue()
Get the queue for asynchronous inbound communication.
uint16_t m_reverseAPIPort
uint16_t m_reverseAPIChannelIndex
void onMenuDialogCalled(const QPoint &p)
virtual void setCenterFrequency(qint64 centerFrequency)
static const int m_rfBWMin
void on_squelch_valueChanged(int value)
QByteArray serialize() const
void setReverseAPIChannelIndex(uint16_t channelIndex)
uint16_t getReverseAPIPort() const
void addChannelMarker(ChannelMarker *channelMarker)
Add channel marker to spectrum.
void channelMarkerHighlightedByCursor()
void on_volume_valueChanged(int value)
void applySettings(bool force=false)
static WFMDemodGUI * create(PluginAPI *pluginAPI, DeviceUISet *deviceUISet, BasebandSampleSink *rxChannel)
Fixed< IntType, IntBits > arg(const std::complex< Fixed< IntType, IntBits > > &val)
void setReverseAPIDeviceIndex(uint16_t deviceIndex)
bool deserialize(const QByteArray &data)
uint16_t getReverseAPIDeviceIndex() const
void channelMarkerChangedByCursor()
uint16_t m_reverseAPIDeviceIndex
bool getSquelchOpen() const
virtual void setMessageQueueToGUI(MessageQueue *queue)
static int requiredBW(int rfBW)
static DSPEngine * instance()
void enterEvent(QEvent *)
void getMagSqLevels(double &avg, double &peak, int &nbSamples)
QString m_reverseAPIAddress
void on_audioMute_toggled(bool checked)
void setHighlighted(bool highlighted)
void registerRxChannelInstance(const QString &channelName, PluginInstanceGUI *pluginGUI)
void addRollupWidget(QWidget *widget)
Add rollup widget to channel window.
void removeRxChannelInstance(PluginInstanceGUI *pluginGUI)
void on_afBW_valueChanged(int value)
const QString & getTitle() const
void blockApplySettings(bool block)
bool useReverseAPI() const
static bool match(const Message *message)
bool getHighlighted() const
QString m_audioDeviceName
void handleInputMessages()
void on_deltaFrequency_changed(qint64 value)
WFMDemodSettings m_settings
DeviceUISet * m_deviceUISet
static const QString m_channelIdURI
QString m_audioDeviceName
void setReverseAPIAddress(const QString &address)
void setColor(const QColor &color)
void setVisible(bool visible)
void setReverseAPIPort(uint16_t port)
uint16_t getReverseAPIChannelIndex() const
void setBandwidth(int bandwidth)
const QColor & getColor() const
void setTitle(const QString &title)
void setChannelMarker(Serializable *channelMarker)
QByteArray serialize() const
void setName(const QString &name)
void setCenterFrequency(int centerFrequency)
void on_rfBW_changed(quint64 value)
void onWidgetRolled(QWidget *widget, bool rollDown)
ChannelMarker m_channelMarker
void setUseReverseAPI(bool useReverseAPI)
virtual bool handleMessage(const Message &message)
bool deserialize(const QByteArray &data)
virtual MessageQueue * getInputMessageQueue()
static const int m_rfBWMax