SDRAngel
4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
|
#include <nfmdemodgui.h>
Public Slots | |
void | channelMarkerChangedByCursor () |
void | channelMarkerHighlightedByCursor () |
Public Member Functions | |
virtual void | destroy () |
void | setName (const QString &name) |
QString | getName () const |
virtual qint64 | getCenterFrequency () const |
virtual void | setCenterFrequency (qint64 centerFrequency) |
void | resetToDefaults () |
QByteArray | serialize () const |
bool | deserialize (const QByteArray &data) |
virtual MessageQueue * | getInputMessageQueue () |
virtual bool | handleMessage (const Message &message) |
void | setCtcssFreq (Real ctcssFreq) |
Public Member Functions inherited from RollupWidget | |
RollupWidget (QWidget *parent=NULL) | |
void | setTitleColor (const QColor &c) |
void | setHighlighted (bool highlighted) |
Public Member Functions inherited from PluginInstanceGUI | |
PluginInstanceGUI () | |
virtual | ~PluginInstanceGUI () |
Static Public Member Functions | |
static NFMDemodGUI * | create (PluginAPI *pluginAPI, DeviceUISet *deviceUISet, BasebandSampleSink *rxChannel) |
Private Slots | |
void | on_deltaFrequency_changed (qint64 value) |
void | on_rfBW_currentIndexChanged (int index) |
void | on_afBW_valueChanged (int value) |
void | on_volume_valueChanged (int value) |
void | on_squelchGate_valueChanged (int value) |
void | on_deltaSquelch_toggled (bool checked) |
void | on_squelch_valueChanged (int value) |
void | on_ctcss_currentIndexChanged (int index) |
void | on_ctcssOn_toggled (bool checked) |
void | on_highPassFilter_toggled (bool checked) |
void | on_audioMute_toggled (bool checked) |
void | onWidgetRolled (QWidget *widget, bool rollDown) |
void | onMenuDialogCalled (const QPoint &p) |
void | handleInputMessages () |
void | audioSelect () |
void | tick () |
Private Member Functions | |
NFMDemodGUI (PluginAPI *pluginAPI, DeviceUISet *deviceUISet, BasebandSampleSink *rxChannel, QWidget *parent=0) | |
virtual | ~NFMDemodGUI () |
void | blockApplySettings (bool block) |
void | applySettings (bool force=false) |
void | displaySettings () |
void | leaveEvent (QEvent *) |
void | enterEvent (QEvent *) |
Private Attributes | |
Ui::NFMDemodGUI * | ui |
PluginAPI * | m_pluginAPI |
DeviceUISet * | m_deviceUISet |
ChannelMarker | m_channelMarker |
NFMDemodSettings | m_settings |
bool | m_basicSettingsShown |
bool | m_doApplySettings |
NFMDemod * | m_nfmDemod |
bool | m_squelchOpen |
uint32_t | m_tickCount |
MessageQueue | m_inputMessageQueue |
Additional Inherited Members | |
Signals inherited from RollupWidget | |
void | widgetRolled (QWidget *widget, bool rollDown) |
Protected Types inherited from RollupWidget | |
enum | { VersionMarker = 0xff } |
enum | ContextMenuType { ContextMenuNone, ContextMenuChannelSettings, ContextMenuStreamSettings } |
Protected Member Functions inherited from RollupWidget | |
int | arrangeRollups () |
QByteArray | saveState (int version=0) const |
bool | restoreState (const QByteArray &state, int version=0) |
void | paintEvent (QPaintEvent *) |
int | paintRollup (QWidget *rollup, int pos, QPainter *p, bool last, const QColor &frame) |
void | resizeEvent (QResizeEvent *size) |
void | mousePressEvent (QMouseEvent *event) |
bool | event (QEvent *event) |
bool | eventFilter (QObject *object, QEvent *event) |
void | resetContextMenuType () |
void | setStreamIndicator (const QString &indicator) |
Protected Attributes inherited from RollupWidget | |
QColor | m_titleColor |
QColor | m_titleTextColor |
bool | m_highlighted |
ContextMenuType | m_contextMenuType |
QString | m_streamIndicator |
Definition at line 22 of file nfmdemodgui.h.
|
explicitprivate |
Definition at line 263 of file nfmdemodgui.cpp.
References DeviceUISet::addChannelMarker(), DeviceUISet::addRollupWidget(), applySettings(), arg(), audioSelect(), blockApplySettings(), channelMarkerChangedByCursor(), channelMarkerHighlightedByCursor(), LevelMeterSignalDB::ColorGreenAndBlue, displaySettings(), NFMDemod::getCtcssToneSet(), getInputMessageQueue(), MainWindow::getInstance(), NFMDemodSettings::getRFBW(), ColorMapper::GrayGold, handleInputMessages(), i, NFMDemod::m_channelIdURI, m_channelMarker, m_deviceUISet, NFMDemodSettings::m_nbRfBW, m_nfmDemod, m_settings, onMenuDialogCalled(), onWidgetRolled(), DeviceUISet::registerRxChannelInstance(), ChannelMarker::setBandwidth(), ChannelMarker::setCenterFrequency(), NFMDemodSettings::setChannelMarker(), ChannelMarker::setColor(), BasebandSampleSink::setMessageQueueToGUI(), ChannelMarker::setTitle(), ChannelMarker::setVisible(), tick(), ui, and RollupWidget::widgetRolled().
Referenced by create().
|
privatevirtual |
Definition at line 341 of file nfmdemodgui.cpp.
References m_deviceUISet, m_nfmDemod, DeviceUISet::removeRxChannelInstance(), and ui.
|
private |
Definition at line 348 of file nfmdemodgui.cpp.
References NFMDemod::MsgConfigureNFMDemod::create(), NFMDemod::MsgConfigureChannelizer::create(), ChannelMarker::getCenterFrequency(), BasebandSampleSink::getInputMessageQueue(), m_channelMarker, m_doApplySettings, m_nfmDemod, m_settings, and MessageQueue::push().
Referenced by audioSelect(), channelMarkerChangedByCursor(), deserialize(), NFMDemodGUI(), on_afBW_valueChanged(), on_audioMute_toggled(), on_ctcss_currentIndexChanged(), on_ctcssOn_toggled(), on_deltaFrequency_changed(), on_deltaSquelch_toggled(), on_highPassFilter_toggled(), on_rfBW_currentIndexChanged(), on_squelch_valueChanged(), on_squelchGate_valueChanged(), on_volume_valueChanged(), onMenuDialogCalled(), resetToDefaults(), and setCenterFrequency().
|
privateslot |
Definition at line 442 of file nfmdemodgui.cpp.
References applySettings(), DSPEngine::instance(), AudioSelectDialog::m_audioDeviceName, NFMDemodSettings::m_audioDeviceName, AudioSelectDialog::m_selected, and m_settings.
Referenced by NFMDemodGUI().
|
private |
Definition at line 437 of file nfmdemodgui.cpp.
References m_doApplySettings.
Referenced by displaySettings(), handleMessage(), and NFMDemodGUI().
|
slot |
Definition at line 112 of file nfmdemodgui.cpp.
References applySettings(), ChannelMarker::getCenterFrequency(), m_channelMarker, NFMDemodSettings::m_inputFrequencyOffset, m_settings, and ui.
Referenced by NFMDemodGUI().
|
slot |
Definition at line 119 of file nfmdemodgui.cpp.
References ChannelMarker::getHighlighted(), m_channelMarker, and RollupWidget::setHighlighted().
Referenced by NFMDemodGUI().
|
static |
Definition at line 19 of file nfmdemodgui.cpp.
References NFMDemodGUI().
Referenced by NFMPlugin::createRxChannelGUI().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 63 of file nfmdemodgui.cpp.
References applySettings(), NFMDemodSettings::deserialize(), displaySettings(), m_settings, and resetToDefaults().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 25 of file nfmdemodgui.cpp.
|
private |
Definition at line 363 of file nfmdemodgui.cpp.
References arg(), blockApplySettings(), ChannelMarker::getCenterFrequency(), NFMDemodSettings::getRFBWIndex(), ChannelMarker::getTitle(), NFMDemodSettings::m_afBandwidth, NFMDemodSettings::m_audioMute, m_channelMarker, NFMDemodSettings::m_ctcssIndex, NFMDemodSettings::m_ctcssOn, NFMDemodSettings::m_deltaSquelch, NFMDemodSettings::m_highPass, NFMDemodSettings::m_inputFrequencyOffset, NFMDemodSettings::m_rfBandwidth, NFMDemodSettings::m_rgbColor, m_settings, NFMDemodSettings::m_squelch, NFMDemodSettings::m_squelchGate, NFMDemodSettings::m_title, NFMDemodSettings::m_volume, ChannelMarker::setBandwidth(), ChannelMarker::setCenterFrequency(), ChannelMarker::setColor(), ChannelMarker::setTitle(), RollupWidget::setTitleColor(), and ui.
Referenced by deserialize(), handleMessage(), NFMDemodGUI(), and resetToDefaults().
|
private |
Definition at line 420 of file nfmdemodgui.cpp.
References m_channelMarker, and ChannelMarker::setHighlighted().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 40 of file nfmdemodgui.cpp.
References ChannelMarker::getCenterFrequency(), and m_channelMarker.
|
inlinevirtual |
Implements PluginInstanceGUI.
Definition at line 37 of file nfmdemodgui.h.
Referenced by handleInputMessages(), and NFMDemodGUI().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 35 of file nfmdemodgui.cpp.
|
privateslot |
Definition at line 99 of file nfmdemodgui.cpp.
References getInputMessageQueue(), and handleMessage().
Referenced by NFMDemodGUI().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 75 of file nfmdemodgui.cpp.
References blockApplySettings(), displaySettings(), NFMDemod::MsgReportCTCSSFreq::getFrequency(), NFMDemod::MsgConfigureNFMDemod::getSettings(), m_settings, Message::match(), and setCtcssFreq().
Referenced by handleInputMessages().
|
private |
Definition at line 415 of file nfmdemodgui.cpp.
References m_channelMarker, and ChannelMarker::setHighlighted().
|
privateslot |
Definition at line 141 of file nfmdemodgui.cpp.
References applySettings(), arg(), NFMDemodSettings::m_afBandwidth, m_settings, and ui.
|
privateslot |
Definition at line 210 of file nfmdemodgui.cpp.
References applySettings(), NFMDemodSettings::m_audioMute, and m_settings.
|
privateslot |
Definition at line 216 of file nfmdemodgui.cpp.
References applySettings(), NFMDemodSettings::m_ctcssIndex, and m_settings.
|
privateslot |
Definition at line 198 of file nfmdemodgui.cpp.
References applySettings(), NFMDemodSettings::m_ctcssOn, and m_settings.
|
privateslot |
Definition at line 124 of file nfmdemodgui.cpp.
References applySettings(), ChannelMarker::getCenterFrequency(), m_channelMarker, NFMDemodSettings::m_inputFrequencyOffset, m_settings, and ChannelMarker::setCenterFrequency().
|
privateslot |
Definition at line 162 of file nfmdemodgui.cpp.
References applySettings(), arg(), NFMDemodSettings::m_deltaSquelch, m_settings, and ui.
|
privateslot |
Definition at line 204 of file nfmdemodgui.cpp.
References applySettings(), NFMDemodSettings::m_highPass, and m_settings.
|
privateslot |
Definition at line 131 of file nfmdemodgui.cpp.
References applySettings(), NFMDemodSettings::getFMDev(), NFMDemodSettings::getRFBW(), m_channelMarker, NFMDemodSettings::m_fmDeviation, NFMDemodSettings::m_rfBandwidth, m_settings, and ChannelMarker::setBandwidth().
|
privateslot |
Definition at line 180 of file nfmdemodgui.cpp.
References applySettings(), arg(), m_settings, NFMDemodSettings::m_squelch, and ui.
|
privateslot |
Definition at line 155 of file nfmdemodgui.cpp.
References applySettings(), arg(), m_settings, NFMDemodSettings::m_squelchGate, and ui.
|
privateslot |
Definition at line 148 of file nfmdemodgui.cpp.
References applySettings(), arg(), m_settings, NFMDemodSettings::m_volume, and ui.
|
privateslot |
Definition at line 232 of file nfmdemodgui.cpp.
References applySettings(), RollupWidget::ContextMenuChannelSettings, ChannelMarker::getCenterFrequency(), ChannelMarker::getColor(), BasicChannelSettingsDialog::getReverseAPIAddress(), BasicChannelSettingsDialog::getReverseAPIChannelIndex(), BasicChannelSettingsDialog::getReverseAPIDeviceIndex(), BasicChannelSettingsDialog::getReverseAPIPort(), ChannelMarker::getTitle(), m_channelMarker, RollupWidget::m_contextMenuType, NFMDemodSettings::m_inputFrequencyOffset, NFMDemodSettings::m_reverseAPIAddress, NFMDemodSettings::m_reverseAPIChannelIndex, NFMDemodSettings::m_reverseAPIDeviceIndex, NFMDemodSettings::m_reverseAPIPort, NFMDemodSettings::m_rgbColor, m_settings, NFMDemodSettings::m_title, NFMDemodSettings::m_useReverseAPI, RollupWidget::resetContextMenuType(), BasicChannelSettingsDialog::setReverseAPIAddress(), BasicChannelSettingsDialog::setReverseAPIChannelIndex(), BasicChannelSettingsDialog::setReverseAPIDeviceIndex(), BasicChannelSettingsDialog::setReverseAPIPort(), RollupWidget::setTitleColor(), BasicChannelSettingsDialog::setUseReverseAPI(), and BasicChannelSettingsDialog::useReverseAPI().
Referenced by NFMDemodGUI().
|
privateslot |
Definition at line 222 of file nfmdemodgui.cpp.
Referenced by NFMDemodGUI().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 51 of file nfmdemodgui.cpp.
References applySettings(), displaySettings(), m_settings, and NFMDemodSettings::resetToDefaults().
Referenced by deserialize().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 58 of file nfmdemodgui.cpp.
References m_settings, and NFMDemodSettings::serialize().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 45 of file nfmdemodgui.cpp.
References applySettings(), m_channelMarker, and ChannelMarker::setCenterFrequency().
void NFMDemodGUI::setCtcssFreq | ( | Real | ctcssFreq | ) |
Definition at line 425 of file nfmdemodgui.cpp.
Referenced by handleMessage().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 30 of file nfmdemodgui.cpp.
|
privateslot |
Definition at line 455 of file nfmdemodgui.cpp.
References arg(), CalcDb::dbPower(), NFMDemod::getMagSqLevels(), NFMDemod::getSquelchOpen(), m_nfmDemod, m_squelchOpen, m_tickCount, and ui.
Referenced by NFMDemodGUI().
|
private |
Definition at line 51 of file nfmdemodgui.h.
|
private |
Definition at line 49 of file nfmdemodgui.h.
Referenced by applySettings(), channelMarkerChangedByCursor(), channelMarkerHighlightedByCursor(), displaySettings(), enterEvent(), getCenterFrequency(), leaveEvent(), NFMDemodGUI(), on_deltaFrequency_changed(), on_rfBW_currentIndexChanged(), onMenuDialogCalled(), and setCenterFrequency().
|
private |
Definition at line 48 of file nfmdemodgui.h.
Referenced by NFMDemodGUI(), and ~NFMDemodGUI().
|
private |
Definition at line 52 of file nfmdemodgui.h.
Referenced by applySettings(), and blockApplySettings().
|
private |
Definition at line 57 of file nfmdemodgui.h.
|
private |
Definition at line 54 of file nfmdemodgui.h.
Referenced by applySettings(), NFMDemodGUI(), tick(), and ~NFMDemodGUI().
|
private |
Definition at line 47 of file nfmdemodgui.h.
|
private |
Definition at line 50 of file nfmdemodgui.h.
Referenced by applySettings(), audioSelect(), channelMarkerChangedByCursor(), deserialize(), displaySettings(), handleMessage(), NFMDemodGUI(), on_afBW_valueChanged(), on_audioMute_toggled(), on_ctcss_currentIndexChanged(), on_ctcssOn_toggled(), on_deltaFrequency_changed(), on_deltaSquelch_toggled(), on_highPassFilter_toggled(), on_rfBW_currentIndexChanged(), on_squelch_valueChanged(), on_squelchGate_valueChanged(), on_volume_valueChanged(), onMenuDialogCalled(), resetToDefaults(), and serialize().
|
private |
Definition at line 55 of file nfmdemodgui.h.
Referenced by tick().
|
private |
Definition at line 56 of file nfmdemodgui.h.
Referenced by tick().
|
private |
Definition at line 46 of file nfmdemodgui.h.
Referenced by channelMarkerChangedByCursor(), displaySettings(), NFMDemodGUI(), on_afBW_valueChanged(), on_deltaSquelch_toggled(), on_squelch_valueChanged(), on_squelchGate_valueChanged(), on_volume_valueChanged(), setCtcssFreq(), tick(), and ~NFMDemodGUI().