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 <udpsinkgui.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 UDPSinkGUI * | create (PluginAPI *pluginAPI, DeviceUISet *deviceUISet, BasebandSampleSink *rxChannel) |
Private Slots | |
void | handleSourceMessages () |
void | on_deltaFrequency_changed (qint64 value) |
void | on_sampleFormat_currentIndexChanged (int index) |
void | on_outputUDPAddress_editingFinished () |
void | on_outputUDPPort_editingFinished () |
void | on_inputUDPAudioPort_editingFinished () |
void | on_sampleRate_textEdited (const QString &arg1) |
void | on_rfBandwidth_textEdited (const QString &arg1) |
void | on_fmDeviation_textEdited (const QString &arg1) |
void | on_audioActive_toggled (bool active) |
void | on_audioStereo_toggled (bool stereo) |
void | on_applyBtn_clicked () |
void | onWidgetRolled (QWidget *widget, bool rollDown) |
void | onMenuDialogCalled (const QPoint &p) |
void | on_gain_valueChanged (int value) |
void | on_volume_valueChanged (int value) |
void | on_squelch_valueChanged (int value) |
void | on_squelchGate_valueChanged (int value) |
void | on_agc_toggled (bool agc) |
void | tick () |
Private Member Functions | |
UDPSinkGUI (PluginAPI *pluginAPI, DeviceUISet *deviceUISet, BasebandSampleSink *rxChannel, QWidget *parent=0) | |
virtual | ~UDPSinkGUI () |
void | blockApplySettings (bool block) |
void | applySettings (bool force=false) |
void | applySettingsImmediate (bool force=false) |
void | displaySettings () |
void | setSampleFormat (int index) |
void | setSampleFormatIndex (const UDPSinkSettings::SampleFormat &sampleFormat) |
void | leaveEvent (QEvent *) |
void | enterEvent (QEvent *) |
Private Attributes | |
Ui::UDPSinkGUI * | ui |
PluginAPI * | m_pluginAPI |
DeviceUISet * | m_deviceUISet |
UDPSink * | m_udpSink |
UDPSinkSettings | m_settings |
ChannelMarker | m_channelMarker |
MovingAverage< double > | m_channelPowerAvg |
MovingAverage< double > | m_inPowerAvg |
uint32_t | m_tickCount |
bool | m_doApplySettings |
bool | m_rfBandwidthChanged |
MessageQueue | m_inputMessageQueue |
SpectrumVis * | m_spectrumVis |
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 41 of file udpsinkgui.h.
|
explicitprivate |
Definition at line 155 of file udpsinkgui.cpp.
References DeviceUISet::addChannelMarker(), DeviceUISet::addRollupWidget(), applySettings(), applySettingsImmediate(), arg(), FFTWindow::BlackmanHarris, channelMarkerChangedByCursor(), channelMarkerHighlightedByCursor(), SpectrumVis::configure(), displaySettings(), ChannelMarker::getColor(), getInputMessageQueue(), BasebandSampleSink::getInputMessageQueue(), MainWindow::getInstance(), ColorMapper::GrayGold, handleSourceMessages(), UDPSink::m_channelIdURI, m_channelMarker, m_deviceUISet, UDPSinkSettings::m_rgbColor, m_settings, m_spectrumVis, m_udpSink, onMenuDialogCalled(), onWidgetRolled(), DeviceUISet::registerRxChannelInstance(), SDR_RX_SCALEF, ChannelMarker::setBandwidth(), ChannelMarker::setCenterFrequency(), UDPSinkSettings::setChannelMarker(), ChannelMarker::setColor(), BasebandSampleSink::setMessageQueueToGUI(), UDPSink::setSpectrum(), UDPSinkSettings::setSpectrumGUI(), ChannelMarker::setTitle(), RollupWidget::setTitleColor(), ChannelMarker::setVisible(), tick(), ui, and RollupWidget::widgetRolled().
Referenced by create().
|
privatevirtual |
Definition at line 228 of file udpsinkgui.cpp.
References m_deviceUISet, m_spectrumVis, m_udpSink, DeviceUISet::removeRxChannelInstance(), and ui.
|
private |
Definition at line 399 of file udpsinkgui.cpp.
References UDPSink::MsgConfigureUDPSource::create(), UDPSink::MsgConfigureChannelizer::create(), ChannelMarker::getCenterFrequency(), BasebandSampleSink::getInputMessageQueue(), m_channelMarker, m_doApplySettings, UDPSinkSettings::m_outputSampleRate, m_settings, m_udpSink, MessageQueue::push(), and ui.
Referenced by deserialize(), on_applyBtn_clicked(), on_deltaFrequency_changed(), resetToDefaults(), setCenterFrequency(), and UDPSinkGUI().
|
private |
Definition at line 390 of file udpsinkgui.cpp.
References UDPSink::MsgConfigureUDPSource::create(), BasebandSampleSink::getInputMessageQueue(), m_doApplySettings, m_settings, m_udpSink, and MessageQueue::push().
Referenced by channelMarkerChangedByCursor(), deserialize(), on_agc_toggled(), on_audioActive_toggled(), on_audioStereo_toggled(), on_gain_valueChanged(), on_squelch_valueChanged(), on_squelchGate_valueChanged(), on_volume_valueChanged(), onMenuDialogCalled(), resetToDefaults(), and UDPSinkGUI().
|
private |
Definition at line 236 of file udpsinkgui.cpp.
References m_doApplySettings.
Referenced by displaySettings(), and handleMessage().
|
slot |
Definition at line 121 of file udpsinkgui.cpp.
References applySettingsImmediate(), ChannelMarker::getCenterFrequency(), m_channelMarker, UDPSinkSettings::m_inputFrequencyOffset, m_settings, and ui.
Referenced by UDPSinkGUI().
|
slot |
Definition at line 128 of file udpsinkgui.cpp.
References ChannelMarker::getHighlighted(), m_channelMarker, and RollupWidget::setHighlighted().
Referenced by UDPSinkGUI().
|
static |
Definition at line 32 of file udpsinkgui.cpp.
References UDPSinkGUI().
Referenced by UDPSinkPlugin::createRxChannelGUI().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 77 of file udpsinkgui.cpp.
References applySettings(), applySettingsImmediate(), UDPSinkSettings::deserialize(), displaySettings(), m_settings, and resetToDefaults().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 38 of file udpsinkgui.cpp.
|
private |
Definition at line 241 of file udpsinkgui.cpp.
References arg(), blockApplySettings(), ChannelMarker::getCenterFrequency(), ChannelMarker::getTitle(), UDPSinkSettings::m_agc, UDPSinkSettings::m_audioActive, UDPSinkSettings::m_audioPort, UDPSinkSettings::m_audioStereo, m_channelMarker, UDPSinkSettings::m_fmDeviation, UDPSinkSettings::m_gain, UDPSinkSettings::m_inputFrequencyOffset, UDPSinkSettings::m_outputSampleRate, UDPSinkSettings::m_rfBandwidth, UDPSinkSettings::m_rgbColor, UDPSinkSettings::m_sampleFormat, m_settings, UDPSinkSettings::m_squelchdB, UDPSinkSettings::m_squelchGate, UDPSinkSettings::m_title, UDPSinkSettings::m_udpAddress, UDPSinkSettings::m_udpPort, UDPSinkSettings::m_volume, ChannelMarker::setBandwidth(), ChannelMarker::setCenterFrequency(), ChannelMarker::setColor(), setSampleFormatIndex(), ChannelMarker::setTitle(), RollupWidget::setTitleColor(), and ui.
Referenced by deserialize(), handleMessage(), resetToDefaults(), and UDPSinkGUI().
|
private |
Definition at line 652 of file udpsinkgui.cpp.
References m_channelMarker, and ChannelMarker::setHighlighted().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 48 of file udpsinkgui.cpp.
References ChannelMarker::getCenterFrequency(), and m_channelMarker.
|
inlinevirtual |
Implements PluginInstanceGUI.
Definition at line 56 of file udpsinkgui.h.
Referenced by handleSourceMessages(), and UDPSinkGUI().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 59 of file udpsinkgui.cpp.
|
virtual |
Implements PluginInstanceGUI.
Definition at line 91 of file udpsinkgui.cpp.
References blockApplySettings(), displaySettings(), UDPSink::MsgConfigureUDPSource::getSettings(), m_settings, and Message::match().
Referenced by handleSourceMessages().
|
privateslot |
Definition at line 108 of file udpsinkgui.cpp.
References getInputMessageQueue(), and handleMessage().
Referenced by UDPSinkGUI().
|
private |
Definition at line 647 of file udpsinkgui.cpp.
References m_channelMarker, and ChannelMarker::setHighlighted().
|
privateslot |
Definition at line 562 of file udpsinkgui.cpp.
References applySettingsImmediate(), UDPSinkSettings::m_agc, and m_settings.
|
privateslot |
Definition at line 537 of file udpsinkgui.cpp.
References applySettings(), m_channelMarker, UDPSinkSettings::m_outputSampleRate, UDPSinkSettings::m_rfBandwidth, m_rfBandwidthChanged, m_settings, ChannelMarker::setBandwidth(), and ui.
|
privateslot |
Definition at line 550 of file udpsinkgui.cpp.
References applySettingsImmediate(), UDPSinkSettings::m_audioActive, and m_settings.
|
privateslot |
Definition at line 556 of file udpsinkgui.cpp.
References applySettingsImmediate(), UDPSinkSettings::m_audioStereo, and m_settings.
|
privateslot |
Definition at line 415 of file udpsinkgui.cpp.
References applySettings(), ChannelMarker::getCenterFrequency(), m_channelMarker, UDPSinkSettings::m_inputFrequencyOffset, m_settings, and ChannelMarker::setCenterFrequency().
|
privateslot |
Definition at line 517 of file udpsinkgui.cpp.
References arg(), UDPSinkSettings::m_fmDeviation, m_settings, and ui.
|
privateslot |
Definition at line 568 of file udpsinkgui.cpp.
References applySettingsImmediate(), arg(), UDPSinkSettings::m_gain, m_settings, and ui.
|
privateslot |
Definition at line 459 of file udpsinkgui.cpp.
References arg(), UDPSinkSettings::m_audioPort, m_settings, and ui.
|
privateslot |
Definition at line 436 of file udpsinkgui.cpp.
References m_settings, UDPSinkSettings::m_udpAddress, and ui.
|
privateslot |
Definition at line 443 of file udpsinkgui.cpp.
References arg(), m_settings, UDPSinkSettings::m_udpPort, and ui.
|
privateslot |
Definition at line 495 of file udpsinkgui.cpp.
References arg(), UDPSinkSettings::m_outputSampleRate, UDPSinkSettings::m_rfBandwidth, m_rfBandwidthChanged, m_settings, and ui.
|
privateslot |
Definition at line 422 of file udpsinkgui.cpp.
References setSampleFormat(), and ui.
|
privateslot |
Definition at line 475 of file udpsinkgui.cpp.
References arg(), UDPSinkSettings::m_outputSampleRate, m_settings, and ui.
|
privateslot |
Definition at line 582 of file udpsinkgui.cpp.
References applySettingsImmediate(), arg(), m_settings, UDPSinkSettings::m_squelchdB, UDPSinkSettings::m_squelchEnabled, and ui.
|
privateslot |
Definition at line 600 of file udpsinkgui.cpp.
References applySettingsImmediate(), arg(), m_settings, UDPSinkSettings::m_squelchGate, and ui.
|
privateslot |
Definition at line 575 of file udpsinkgui.cpp.
References applySettingsImmediate(), arg(), m_settings, UDPSinkSettings::m_volume, and ui.
|
privateslot |
Definition at line 615 of file udpsinkgui.cpp.
References applySettingsImmediate(), RollupWidget::ContextMenuChannelSettings, ChannelMarker::getCenterFrequency(), ChannelMarker::getColor(), BasicChannelSettingsDialog::getReverseAPIAddress(), BasicChannelSettingsDialog::getReverseAPIChannelIndex(), BasicChannelSettingsDialog::getReverseAPIDeviceIndex(), BasicChannelSettingsDialog::getReverseAPIPort(), ChannelMarker::getTitle(), m_channelMarker, RollupWidget::m_contextMenuType, UDPSinkSettings::m_inputFrequencyOffset, UDPSinkSettings::m_reverseAPIAddress, UDPSinkSettings::m_reverseAPIChannelIndex, UDPSinkSettings::m_reverseAPIDeviceIndex, UDPSinkSettings::m_reverseAPIPort, UDPSinkSettings::m_rgbColor, m_settings, UDPSinkSettings::m_title, UDPSinkSettings::m_useReverseAPI, RollupWidget::resetContextMenuType(), BasicChannelSettingsDialog::setReverseAPIAddress(), BasicChannelSettingsDialog::setReverseAPIChannelIndex(), BasicChannelSettingsDialog::setReverseAPIDeviceIndex(), BasicChannelSettingsDialog::setReverseAPIPort(), RollupWidget::setTitleColor(), BasicChannelSettingsDialog::setUseReverseAPI(), and BasicChannelSettingsDialog::useReverseAPI().
Referenced by UDPSinkGUI().
|
privateslot |
Definition at line 607 of file udpsinkgui.cpp.
References BasebandSampleSink::getInputMessageQueue(), m_udpSink, UDPSink::setSpectrum(), and ui.
Referenced by UDPSinkGUI().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 64 of file udpsinkgui.cpp.
References applySettings(), applySettingsImmediate(), displaySettings(), m_settings, and UDPSinkSettings::resetToDefaults().
Referenced by deserialize().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 72 of file udpsinkgui.cpp.
References m_settings, and UDPSinkSettings::serialize().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 53 of file udpsinkgui.cpp.
References applySettings(), m_channelMarker, and ChannelMarker::setCenterFrequency().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 43 of file udpsinkgui.cpp.
|
private |
Definition at line 335 of file udpsinkgui.cpp.
References UDPSinkSettings::FormatAMBPFMono, UDPSinkSettings::FormatAMMono, UDPSinkSettings::FormatAMNoDCMono, UDPSinkSettings::FormatIQ16, UDPSinkSettings::FormatIQ24, UDPSinkSettings::FormatLSB, UDPSinkSettings::FormatLSBMono, UDPSinkSettings::FormatNFM, UDPSinkSettings::FormatNFMMono, UDPSinkSettings::FormatUSB, UDPSinkSettings::FormatUSBMono, UDPSinkSettings::m_sampleFormat, m_settings, and ui.
Referenced by on_sampleFormat_currentIndexChanged().
|
private |
Definition at line 292 of file udpsinkgui.cpp.
References UDPSinkSettings::FormatAMBPFMono, UDPSinkSettings::FormatAMMono, UDPSinkSettings::FormatAMNoDCMono, UDPSinkSettings::FormatIQ16, UDPSinkSettings::FormatIQ24, UDPSinkSettings::FormatLSB, UDPSinkSettings::FormatLSBMono, UDPSinkSettings::FormatNFM, UDPSinkSettings::FormatNFMMono, UDPSinkSettings::FormatUSB, UDPSinkSettings::FormatUSBMono, and ui.
Referenced by displaySettings().
|
privateslot |
Definition at line 133 of file udpsinkgui.cpp.
References MovingAverage< Type >::average(), CalcDb::dbPower(), MovingAverage< Type >::feed(), UDPSink::getInMagSq(), UDPSink::getMagSq(), UDPSink::getSquelchOpen(), m_inPowerAvg, m_tickCount, m_udpSink, and ui.
Referenced by UDPSinkGUI().
|
private |
Definition at line 69 of file udpsinkgui.h.
Referenced by applySettings(), channelMarkerChangedByCursor(), channelMarkerHighlightedByCursor(), displaySettings(), enterEvent(), getCenterFrequency(), leaveEvent(), on_applyBtn_clicked(), on_deltaFrequency_changed(), onMenuDialogCalled(), setCenterFrequency(), and UDPSinkGUI().
|
private |
Definition at line 70 of file udpsinkgui.h.
|
private |
Definition at line 66 of file udpsinkgui.h.
Referenced by UDPSinkGUI(), and ~UDPSinkGUI().
|
private |
Definition at line 75 of file udpsinkgui.h.
Referenced by applySettings(), applySettingsImmediate(), and blockApplySettings().
|
private |
Definition at line 71 of file udpsinkgui.h.
Referenced by tick().
|
private |
Definition at line 77 of file udpsinkgui.h.
|
private |
Definition at line 65 of file udpsinkgui.h.
|
private |
Definition at line 76 of file udpsinkgui.h.
Referenced by on_applyBtn_clicked(), and on_rfBandwidth_textEdited().
|
private |
Definition at line 68 of file udpsinkgui.h.
Referenced by applySettings(), applySettingsImmediate(), channelMarkerChangedByCursor(), deserialize(), displaySettings(), handleMessage(), on_agc_toggled(), on_applyBtn_clicked(), on_audioActive_toggled(), on_audioStereo_toggled(), on_deltaFrequency_changed(), on_fmDeviation_textEdited(), on_gain_valueChanged(), on_inputUDPAudioPort_editingFinished(), on_outputUDPAddress_editingFinished(), on_outputUDPPort_editingFinished(), on_rfBandwidth_textEdited(), on_sampleRate_textEdited(), on_squelch_valueChanged(), on_squelchGate_valueChanged(), on_volume_valueChanged(), onMenuDialogCalled(), resetToDefaults(), serialize(), setSampleFormat(), and UDPSinkGUI().
|
private |
Definition at line 80 of file udpsinkgui.h.
Referenced by UDPSinkGUI(), and ~UDPSinkGUI().
|
private |
Definition at line 72 of file udpsinkgui.h.
Referenced by tick().
|
private |
Definition at line 67 of file udpsinkgui.h.
Referenced by applySettings(), applySettingsImmediate(), onWidgetRolled(), tick(), UDPSinkGUI(), and ~UDPSinkGUI().
|
private |
Definition at line 64 of file udpsinkgui.h.
Referenced by applySettings(), channelMarkerChangedByCursor(), displaySettings(), on_applyBtn_clicked(), on_fmDeviation_textEdited(), on_gain_valueChanged(), on_inputUDPAudioPort_editingFinished(), on_outputUDPAddress_editingFinished(), on_outputUDPPort_editingFinished(), on_rfBandwidth_textEdited(), on_sampleFormat_currentIndexChanged(), on_sampleRate_textEdited(), on_squelch_valueChanged(), on_squelchGate_valueChanged(), on_volume_valueChanged(), onWidgetRolled(), setSampleFormat(), setSampleFormatIndex(), tick(), UDPSinkGUI(), and ~UDPSinkGUI().