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 <ssbdemodgui.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) |
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 SSBDemodGUI * | create (PluginAPI *pluginAPI, DeviceUISet *deviceUISet, BasebandSampleSink *rxChannel) |
Private Slots | |
void | on_deltaFrequency_changed (qint64 value) |
void | on_audioBinaural_toggled (bool binaural) |
void | on_audioFlipChannels_toggled (bool flip) |
void | on_dsb_toggled (bool dsb) |
void | on_BW_valueChanged (int value) |
void | on_lowCut_valueChanged (int value) |
void | on_volume_valueChanged (int value) |
void | on_agc_toggled (bool checked) |
void | on_agcClamping_toggled (bool checked) |
void | on_agcTimeLog2_valueChanged (int value) |
void | on_agcPowerThreshold_valueChanged (int value) |
void | on_agcThresholdGate_valueChanged (int value) |
void | on_audioMute_toggled (bool checked) |
void | on_spanLog2_valueChanged (int value) |
void | on_flipSidebands_clicked (bool checked) |
void | onWidgetRolled (QWidget *widget, bool rollDown) |
void | onMenuDialogCalled (const QPoint &p) |
void | handleInputMessages () |
void | audioSelect () |
void | tick () |
Private Member Functions | |
SSBDemodGUI (PluginAPI *pluginAPI, DeviceUISet *deviceUISet, BasebandSampleSink *rxChannel, QWidget *parent=0) | |
virtual | ~SSBDemodGUI () |
bool | blockApplySettings (bool block) |
void | applySettings (bool force=false) |
void | applyBandwidths (int spanLog2, bool force=false) |
int | spanLog2Limit (int spanLog2) |
void | displaySettings () |
void | displayAGCPowerThreshold (int value) |
void | displayAGCThresholdGate (int value) |
void | leaveEvent (QEvent *) |
void | enterEvent (QEvent *) |
Private Attributes | |
Ui::SSBDemodGUI * | ui |
PluginAPI * | m_pluginAPI |
DeviceUISet * | m_deviceUISet |
ChannelMarker | m_channelMarker |
SSBDemodSettings | m_settings |
bool | m_doApplySettings |
int | m_spectrumRate |
bool | m_audioBinaural |
bool | m_audioFlipChannels |
bool | m_audioMute |
bool | m_squelchOpen |
uint32_t | m_tickCount |
SSBDemod * | m_ssbDemod |
SpectrumVis * | m_spectrumVis |
MessageQueue | m_inputMessageQueue |
QIcon | m_iconDSBUSB |
QIcon | m_iconDSBLSB |
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 25 of file ssbdemodgui.h.
|
explicitprivate |
Definition at line 275 of file ssbdemodgui.cpp.
References DeviceUISet::addChannelMarker(), DeviceUISet::addRollupWidget(), applyBandwidths(), arg(), audioSelect(), channelMarkerChangedByCursor(), channelMarkerHighlightedByCursor(), LevelMeterSignalDB::ColorGreenAndBlue, displaySettings(), ChannelMarker::getColor(), getInputMessageQueue(), BasebandSampleSink::getInputMessageQueue(), MainWindow::getInstance(), ColorMapper::GrayGold, handleInputMessages(), SSBDemod::m_channelIdURI, m_channelMarker, m_deviceUISet, m_iconDSBLSB, m_iconDSBUSB, m_settings, SSBDemodSettings::m_spanLog2, m_spectrumRate, m_spectrumVis, m_ssbDemod, onMenuDialogCalled(), onWidgetRolled(), DeviceUISet::registerRxChannelInstance(), SDR_RX_SCALEF, ChannelMarker::setBandwidth(), ChannelMarker::setCenterFrequency(), SSBDemodSettings::setChannelMarker(), ChannelMarker::setColor(), BasebandSampleSink::setMessageQueueToGUI(), SSBDemod::setSampleSink(), SSBDemodSettings::setSpectrumGUI(), ChannelMarker::setTitle(), RollupWidget::setTitleColor(), ChannelMarker::setVisible(), tick(), ui, and RollupWidget::widgetRolled().
Referenced by create().
|
privatevirtual |
Definition at line 347 of file ssbdemodgui.cpp.
References m_deviceUISet, m_spectrumVis, m_ssbDemod, DeviceUISet::removeRxChannelInstance(), and ui.
|
private |
Definition at line 384 of file ssbdemodgui.cpp.
References applySettings(), arg(), blockApplySettings(), ChannelMarker::dsb, SSBDemod::getAudioSampleRate(), SSBDemod::getInputSampleRate(), ChannelMarker::lsb, m_channelMarker, SSBDemodSettings::m_dsb, m_iconDSBLSB, m_iconDSBUSB, SSBDemodSettings::m_lowCutoff, SSBDemodSettings::m_minPowerThresholdDB, SSBDemodSettings::m_rfBandwidth, m_settings, SSBDemodSettings::m_spanLog2, m_spectrumRate, m_ssbDemod, leansdr::min(), ChannelMarker::setBandwidth(), ChannelMarker::setLowCutoff(), ChannelMarker::setSidebands(), spanLog2Limit(), ui, and ChannelMarker::usb.
Referenced by deserialize(), handleMessage(), on_BW_valueChanged(), on_dsb_toggled(), on_lowCut_valueChanged(), on_spanLog2_valueChanged(), and SSBDemodGUI().
|
private |
Definition at line 362 of file ssbdemodgui.cpp.
References SSBDemod::MsgConfigureSSBDemod::create(), SSBDemod::MsgConfigureChannelizer::create(), SSBDemod::getAudioSampleRate(), ChannelMarker::getCenterFrequency(), BasebandSampleSink::getInputMessageQueue(), m_channelMarker, m_doApplySettings, m_settings, m_ssbDemod, and MessageQueue::push().
Referenced by applyBandwidths(), audioSelect(), channelMarkerChangedByCursor(), on_agc_toggled(), on_agcClamping_toggled(), on_agcPowerThreshold_valueChanged(), on_agcThresholdGate_valueChanged(), on_agcTimeLog2_valueChanged(), on_audioBinaural_toggled(), on_audioFlipChannels_toggled(), on_audioMute_toggled(), on_deltaFrequency_changed(), on_volume_valueChanged(), onMenuDialogCalled(), and setCenterFrequency().
|
privateslot |
Definition at line 610 of file ssbdemodgui.cpp.
References applySettings(), DSPEngine::instance(), AudioSelectDialog::m_audioDeviceName, SSBDemodSettings::m_audioDeviceName, AudioSelectDialog::m_selected, and m_settings.
Referenced by SSBDemodGUI().
|
private |
Definition at line 355 of file ssbdemodgui.cpp.
References m_doApplySettings.
Referenced by applyBandwidths(), displaySettings(), and handleMessage().
|
slot |
Definition at line 118 of file ssbdemodgui.cpp.
References applySettings(), ChannelMarker::getCenterFrequency(), m_channelMarker, SSBDemodSettings::m_inputFrequencyOffset, m_settings, and ui.
Referenced by SSBDemodGUI().
|
slot |
Definition at line 125 of file ssbdemodgui.cpp.
References ChannelMarker::getHighlighted(), m_channelMarker, and RollupWidget::setHighlighted().
Referenced by SSBDemodGUI().
|
static |
Definition at line 21 of file ssbdemodgui.cpp.
References SSBDemodGUI().
Referenced by SSBPlugin::createRxChannelGUI().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 64 of file ssbdemodgui.cpp.
References applyBandwidths(), SSBDemodSettings::deserialize(), displaySettings(), m_settings, SSBDemodSettings::m_spanLog2, and SSBDemodSettings::resetToDefaults().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 27 of file ssbdemodgui.cpp.
|
private |
Definition at line 574 of file ssbdemodgui.cpp.
References SSBDemodSettings::m_minPowerThresholdDB, and ui.
Referenced by displaySettings(), and on_agcPowerThreshold_valueChanged().
|
private |
Definition at line 587 of file ssbdemodgui.cpp.
References ui.
Referenced by displaySettings().
|
private |
Definition at line 492 of file ssbdemodgui.cpp.
References arg(), blockApplySettings(), displayAGCPowerThreshold(), displayAGCThresholdGate(), ChannelMarker::dsb, ChannelMarker::getCenterFrequency(), ChannelMarker::getTitle(), ChannelMarker::lsb, SSBDemodSettings::m_agc, SSBDemodSettings::m_agcClamping, SSBDemodSettings::m_agcPowerThreshold, SSBDemodSettings::m_agcThresholdGate, SSBDemodSettings::m_agcTimeLog2, SSBDemodSettings::m_audioBinaural, SSBDemodSettings::m_audioFlipChannels, SSBDemodSettings::m_audioMute, m_channelMarker, SSBDemodSettings::m_dsb, m_iconDSBLSB, m_iconDSBUSB, SSBDemodSettings::m_inputFrequencyOffset, SSBDemodSettings::m_lowCutoff, SSBDemodSettings::m_rfBandwidth, SSBDemodSettings::m_rgbColor, m_settings, SSBDemodSettings::m_spanLog2, SSBDemodSettings::m_title, SSBDemodSettings::m_volume, ChannelMarker::setBandwidth(), ChannelMarker::setCenterFrequency(), ChannelMarker::setColor(), ChannelMarker::setLowCutoff(), ChannelMarker::setSidebands(), ChannelMarker::setTitle(), RollupWidget::setTitleColor(), ui, and ChannelMarker::usb.
Referenced by deserialize(), handleMessage(), and SSBDemodGUI().
|
private |
Definition at line 605 of file ssbdemodgui.cpp.
References m_channelMarker, and ChannelMarker::setHighlighted().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 42 of file ssbdemodgui.cpp.
References ChannelMarker::getCenterFrequency(), and m_channelMarker.
|
inlinevirtual |
Implements PluginInstanceGUI.
Definition at line 40 of file ssbdemodgui.h.
Referenced by handleInputMessages(), and SSBDemodGUI().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 37 of file ssbdemodgui.cpp.
|
privateslot |
Definition at line 105 of file ssbdemodgui.cpp.
References getInputMessageQueue(), and handleMessage().
Referenced by SSBDemodGUI().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 81 of file ssbdemodgui.cpp.
References applyBandwidths(), blockApplySettings(), displaySettings(), SSBDemod::getAudioSampleRate(), SSBDemod::MsgConfigureSSBDemod::getSettings(), m_settings, m_ssbDemod, Message::match(), and ui.
Referenced by handleInputMessages().
|
private |
Definition at line 600 of file ssbdemodgui.cpp.
References m_channelMarker, and ChannelMarker::setHighlighted().
|
privateslot |
Definition at line 176 of file ssbdemodgui.cpp.
References applySettings(), SSBDemodSettings::m_agc, and m_settings.
|
privateslot |
Definition at line 182 of file ssbdemodgui.cpp.
References applySettings(), SSBDemodSettings::m_agcClamping, and m_settings.
|
privateslot |
Definition at line 196 of file ssbdemodgui.cpp.
References applySettings(), displayAGCPowerThreshold(), SSBDemodSettings::m_agcPowerThreshold, and m_settings.
|
privateslot |
Definition at line 203 of file ssbdemodgui.cpp.
References applySettings(), SSBDemodSettings::m_agcThresholdGate, m_settings, and ui.
|
privateslot |
Definition at line 188 of file ssbdemodgui.cpp.
References applySettings(), SSBDemodSettings::m_agcTimeLog2, m_settings, and ui.
|
privateslot |
Definition at line 130 of file ssbdemodgui.cpp.
References applySettings(), SSBDemodSettings::m_audioBinaural, m_audioBinaural, and m_settings.
|
privateslot |
Definition at line 137 of file ssbdemodgui.cpp.
References applySettings(), SSBDemodSettings::m_audioFlipChannels, m_audioFlipChannels, and m_settings.
|
privateslot |
Definition at line 212 of file ssbdemodgui.cpp.
References applySettings(), SSBDemodSettings::m_audioMute, m_audioMute, and m_settings.
|
privateslot |
Definition at line 157 of file ssbdemodgui.cpp.
References applyBandwidths(), and ui.
|
privateslot |
Definition at line 150 of file ssbdemodgui.cpp.
References applySettings(), ChannelMarker::getCenterFrequency(), m_channelMarker, SSBDemodSettings::m_inputFrequencyOffset, m_settings, and ChannelMarker::setCenterFrequency().
|
privateslot |
Definition at line 144 of file ssbdemodgui.cpp.
References applyBandwidths(), and ui.
|
privateslot |
|
privateslot |
Definition at line 163 of file ssbdemodgui.cpp.
References applyBandwidths(), and ui.
|
privateslot |
Definition at line 219 of file ssbdemodgui.cpp.
References applyBandwidths(), and ui.
|
privateslot |
Definition at line 169 of file ssbdemodgui.cpp.
References applySettings(), arg(), m_settings, SSBDemodSettings::m_volume, and ui.
|
privateslot |
Definition at line 237 of file ssbdemodgui.cpp.
References applySettings(), RollupWidget::ContextMenuChannelSettings, ChannelMarker::getCenterFrequency(), ChannelMarker::getColor(), BasicChannelSettingsDialog::getReverseAPIAddress(), BasicChannelSettingsDialog::getReverseAPIChannelIndex(), BasicChannelSettingsDialog::getReverseAPIDeviceIndex(), BasicChannelSettingsDialog::getReverseAPIPort(), ChannelMarker::getTitle(), m_channelMarker, RollupWidget::m_contextMenuType, SSBDemodSettings::m_inputFrequencyOffset, SSBDemodSettings::m_reverseAPIAddress, SSBDemodSettings::m_reverseAPIChannelIndex, SSBDemodSettings::m_reverseAPIDeviceIndex, SSBDemodSettings::m_reverseAPIPort, SSBDemodSettings::m_rgbColor, m_settings, SSBDemodSettings::m_title, SSBDemodSettings::m_useReverseAPI, RollupWidget::resetContextMenuType(), BasicChannelSettingsDialog::setReverseAPIAddress(), BasicChannelSettingsDialog::setReverseAPIChannelIndex(), BasicChannelSettingsDialog::setReverseAPIDeviceIndex(), BasicChannelSettingsDialog::setReverseAPIPort(), RollupWidget::setTitleColor(), BasicChannelSettingsDialog::setUseReverseAPI(), and BasicChannelSettingsDialog::useReverseAPI().
Referenced by SSBDemodGUI().
|
privateslot |
Definition at line 269 of file ssbdemodgui.cpp.
Referenced by SSBDemodGUI().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 54 of file ssbdemodgui.cpp.
References m_settings, and SSBDemodSettings::resetToDefaults().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 59 of file ssbdemodgui.cpp.
References m_settings, and SSBDemodSettings::serialize().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 47 of file ssbdemodgui.cpp.
References applySettings(), ChannelMarker::getCenterFrequency(), m_channelMarker, SSBDemodSettings::m_inputFrequencyOffset, m_settings, and ChannelMarker::setCenterFrequency().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 32 of file ssbdemodgui.cpp.
|
private |
Definition at line 375 of file ssbdemodgui.cpp.
References SSBDemod::getAudioSampleRate(), SSBDemod::getInputSampleRate(), and m_ssbDemod.
Referenced by applyBandwidths().
|
privateslot |
Definition at line 623 of file ssbdemodgui.cpp.
References arg(), CalcDb::dbPower(), SSBDemod::getAudioActive(), SSBDemod::getMagSqLevels(), SSBDemodSettings::m_mminPowerThresholdDBf, m_squelchOpen, m_ssbDemod, m_tickCount, and ui.
Referenced by SSBDemodGUI().
|
private |
Definition at line 55 of file ssbdemodgui.h.
Referenced by on_audioBinaural_toggled().
|
private |
Definition at line 56 of file ssbdemodgui.h.
Referenced by on_audioFlipChannels_toggled().
|
private |
Definition at line 57 of file ssbdemodgui.h.
Referenced by on_audioMute_toggled().
|
private |
Definition at line 51 of file ssbdemodgui.h.
Referenced by applyBandwidths(), applySettings(), channelMarkerChangedByCursor(), channelMarkerHighlightedByCursor(), displaySettings(), enterEvent(), getCenterFrequency(), leaveEvent(), on_deltaFrequency_changed(), onMenuDialogCalled(), setCenterFrequency(), and SSBDemodGUI().
|
private |
Definition at line 50 of file ssbdemodgui.h.
Referenced by SSBDemodGUI(), and ~SSBDemodGUI().
|
private |
Definition at line 53 of file ssbdemodgui.h.
Referenced by applySettings(), and blockApplySettings().
|
private |
Definition at line 66 of file ssbdemodgui.h.
Referenced by applyBandwidths(), displaySettings(), and SSBDemodGUI().
|
private |
Definition at line 65 of file ssbdemodgui.h.
Referenced by applyBandwidths(), displaySettings(), and SSBDemodGUI().
|
private |
Definition at line 63 of file ssbdemodgui.h.
|
private |
Definition at line 49 of file ssbdemodgui.h.
|
private |
Definition at line 52 of file ssbdemodgui.h.
Referenced by applyBandwidths(), applySettings(), audioSelect(), channelMarkerChangedByCursor(), deserialize(), displaySettings(), handleMessage(), on_agc_toggled(), on_agcClamping_toggled(), on_agcPowerThreshold_valueChanged(), on_agcThresholdGate_valueChanged(), on_agcTimeLog2_valueChanged(), on_audioBinaural_toggled(), on_audioFlipChannels_toggled(), on_audioMute_toggled(), on_deltaFrequency_changed(), on_volume_valueChanged(), onMenuDialogCalled(), resetToDefaults(), serialize(), setCenterFrequency(), and SSBDemodGUI().
|
private |
Definition at line 54 of file ssbdemodgui.h.
Referenced by applyBandwidths(), and SSBDemodGUI().
|
private |
Definition at line 62 of file ssbdemodgui.h.
Referenced by SSBDemodGUI(), and ~SSBDemodGUI().
|
private |
Definition at line 58 of file ssbdemodgui.h.
Referenced by tick().
|
private |
Definition at line 61 of file ssbdemodgui.h.
Referenced by applyBandwidths(), applySettings(), handleMessage(), spanLog2Limit(), SSBDemodGUI(), tick(), and ~SSBDemodGUI().
|
private |
Definition at line 59 of file ssbdemodgui.h.
Referenced by tick().
|
private |
Definition at line 48 of file ssbdemodgui.h.
Referenced by applyBandwidths(), channelMarkerChangedByCursor(), displayAGCPowerThreshold(), displayAGCThresholdGate(), displaySettings(), handleMessage(), on_agcThresholdGate_valueChanged(), on_agcTimeLog2_valueChanged(), on_BW_valueChanged(), on_dsb_toggled(), on_flipSidebands_clicked(), on_lowCut_valueChanged(), on_spanLog2_valueChanged(), on_volume_valueChanged(), SSBDemodGUI(), tick(), and ~SSBDemodGUI().