![]() |
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 <udpsourcegui.h>
Inheritance diagram for UDPSourceGUI:
Collaboration diagram for UDPSourceGUI:Public Slots | |
| void | channelMarkerChangedByCursor () |
Public Member Functions | |
| virtual void | destroy () |
| void | setName (const QString &name) |
| QString | getName () const |
| virtual qint64 | getCenterFrequency () const |
| virtual void | setCenterFrequency (qint64 centerFrequency) |
| virtual void | resetToDefaults () |
| virtual QByteArray | serialize () const |
| virtual 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 UDPSourceGUI * | create (PluginAPI *pluginAPI, DeviceUISet *deviceUISet, BasebandSampleSource *channelTx) |
Private Slots | |
| void | handleSourceMessages () |
| void | on_deltaFrequency_changed (qint64 value) |
| void | on_sampleFormat_currentIndexChanged (int index) |
| void | on_localUDPAddress_editingFinished () |
| void | on_localUDPPort_editingFinished () |
| void | on_sampleRate_textEdited (const QString &arg1) |
| void | on_rfBandwidth_textEdited (const QString &arg1) |
| void | on_fmDeviation_textEdited (const QString &arg1) |
| void | on_amModPercent_textEdited (const QString &arg1) |
| void | on_applyBtn_clicked () |
| void | onWidgetRolled (QWidget *widget, bool rollDown) |
| void | onMenuDialogCalled (const QPoint &p) |
| void | on_gainIn_valueChanged (int value) |
| void | on_gainOut_valueChanged (int value) |
| void | on_squelch_valueChanged (int value) |
| void | on_squelchGate_valueChanged (int value) |
| void | on_channelMute_toggled (bool checked) |
| void | on_resetUDPReadIndex_clicked () |
| void | on_autoRWBalance_toggled (bool checked) |
| void | on_stereoInput_toggled (bool checked) |
| void | tick () |
Private Member Functions | |
| UDPSourceGUI (PluginAPI *pluginAPI, DeviceUISet *deviceUISet, BasebandSampleSource *channelTx, QWidget *parent=NULL) | |
| virtual | ~UDPSourceGUI () |
| void | blockApplySettings (bool block) |
| void | applySettings (bool force=false) |
| void | displaySettings () |
| void | setSampleFormat (int index) |
| void | setSampleFormatIndex (const UDPSourceSettings::SampleFormat &sampleFormat) |
| void | leaveEvent (QEvent *) |
| void | enterEvent (QEvent *) |
Private Attributes | |
| Ui::UDPSourceGUI * | ui |
| PluginAPI * | m_pluginAPI |
| DeviceUISet * | m_deviceUISet |
| SpectrumVis * | m_spectrumVis |
| UDPSource * | m_udpSource |
| MovingAverageUtil< double, double, 4 > | m_channelPowerAvg |
| MovingAverageUtil< double, double, 4 > | m_inPowerAvg |
| uint32_t | m_tickCount |
| ChannelMarker | m_channelMarker |
| UDPSourceSettings | m_settings |
| bool | m_rfBandwidthChanged |
| bool | m_doApplySettings |
| 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 41 of file udpsourcegui.h.
|
explicitprivate |
Definition at line 117 of file udpsourcegui.cpp.
References DeviceUISet::addChannelMarker(), DeviceUISet::addRollupWidget(), applySettings(), arg(), FFTWindow::BlackmanHarris, channelMarkerChangedByCursor(), SpectrumVis::configure(), displaySettings(), getInputMessageQueue(), BasebandSampleSink::getInputMessageQueue(), MainWindow::getInstance(), ColorMapper::GrayGold, handleSourceMessages(), UDPSource::m_channelIdURI, m_channelMarker, m_deviceUISet, UDPSourceSettings::m_rgbColor, m_settings, m_spectrumVis, m_udpSource, onMenuDialogCalled(), onWidgetRolled(), DeviceUISet::registerTxChannelInstance(), SDR_TX_SCALEF, ChannelMarker::setBandwidth(), ChannelMarker::setCenterFrequency(), ChannelMarker::setColor(), BasebandSampleSource::setMessageQueueToGUI(), ChannelMarker::setSourceOrSinkStream(), UDPSource::setSpectrumSink(), ChannelMarker::setTitle(), ChannelMarker::setVisible(), tick(), ui, and RollupWidget::widgetRolled().
Referenced by create().
Here is the call graph for this function:
Here is the caller graph for this function:
|
privatevirtual |
Definition at line 181 of file udpsourcegui.cpp.
References m_deviceUISet, m_spectrumVis, m_udpSource, DeviceUISet::removeTxChannelInstance(), and ui.
Here is the call graph for this function:
|
private |
Definition at line 194 of file udpsourcegui.cpp.
References UDPSource::MsgConfigureUDPSource::create(), UDPSource::MsgConfigureChannelizer::create(), BasebandSampleSource::getInputMessageQueue(), m_doApplySettings, UDPSourceSettings::m_inputFrequencyOffset, UDPSourceSettings::m_inputSampleRate, m_settings, m_udpSource, MessageQueue::push(), and ui.
Referenced by channelMarkerChangedByCursor(), deserialize(), on_applyBtn_clicked(), on_autoRWBalance_toggled(), on_channelMute_toggled(), on_deltaFrequency_changed(), on_gainIn_valueChanged(), on_gainOut_valueChanged(), on_squelch_valueChanged(), on_squelchGate_valueChanged(), on_stereoInput_toggled(), onMenuDialogCalled(), resetToDefaults(), setCenterFrequency(), and UDPSourceGUI().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 189 of file udpsourcegui.cpp.
References m_doApplySettings.
Referenced by displaySettings(), and handleMessage().
Here is the caller graph for this function:
|
slot |
Definition at line 263 of file udpsourcegui.cpp.
References applySettings(), ChannelMarker::getCenterFrequency(), m_channelMarker, UDPSourceSettings::m_inputFrequencyOffset, m_settings, and ui.
Referenced by UDPSourceGUI().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 31 of file udpsourcegui.cpp.
References UDPSourceGUI().
Referenced by UDPSourcePlugin::createTxChannelGUI().
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtual |
Implements PluginInstanceGUI.
Definition at line 74 of file udpsourcegui.cpp.
References applySettings(), UDPSourceSettings::deserialize(), displaySettings(), m_settings, and resetToDefaults().
Here is the call graph for this function:
|
virtual |
Implements PluginInstanceGUI.
Definition at line 37 of file udpsourcegui.cpp.
|
private |
Definition at line 211 of file udpsourcegui.cpp.
References arg(), blockApplySettings(), ChannelMarker::getTitle(), UDPSourceSettings::m_amModFactor, UDPSourceSettings::m_autoRWBalance, m_channelMarker, UDPSourceSettings::m_channelMute, UDPSourceSettings::m_fmDeviation, UDPSourceSettings::m_gainIn, UDPSourceSettings::m_gainOut, UDPSourceSettings::m_inputFrequencyOffset, UDPSourceSettings::m_inputSampleRate, UDPSourceSettings::m_rfBandwidth, UDPSourceSettings::m_rgbColor, UDPSourceSettings::m_sampleFormat, m_settings, UDPSourceSettings::m_squelch, UDPSourceSettings::m_squelchEnabled, UDPSourceSettings::m_squelchGate, UDPSourceSettings::m_stereoInput, UDPSourceSettings::m_udpAddress, UDPSourceSettings::m_udpPort, ChannelMarker::setBandwidth(), ChannelMarker::setCenterFrequency(), ChannelMarker::setColor(), setSampleFormatIndex(), RollupWidget::setTitleColor(), and ui.
Referenced by deserialize(), handleMessage(), resetToDefaults(), and UDPSourceGUI().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 509 of file udpsourcegui.cpp.
References m_channelMarker, and ChannelMarker::setHighlighted().
Here is the call graph for this function:
|
virtual |
Implements PluginInstanceGUI.
Definition at line 52 of file udpsourcegui.cpp.
References ChannelMarker::getCenterFrequency(), and m_channelMarker.
Here is the call graph for this function:
|
inlinevirtual |
Implements PluginInstanceGUI.
Definition at line 55 of file udpsourcegui.h.
Referenced by handleSourceMessages(), and UDPSourceGUI().
Here is the caller graph for this function:
|
virtual |
Implements PluginInstanceGUI.
Definition at line 47 of file udpsourcegui.cpp.
|
virtual |
Implements PluginInstanceGUI.
Definition at line 87 of file udpsourcegui.cpp.
References blockApplySettings(), displaySettings(), UDPSource::MsgConfigureUDPSource::getSettings(), m_settings, and Message::match().
Referenced by handleSourceMessages().
Here is the call graph for this function:
Here is the caller graph for this function:
|
privateslot |
Definition at line 104 of file udpsourcegui.cpp.
References getInputMessageQueue(), and handleMessage().
Referenced by UDPSourceGUI().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 504 of file udpsourcegui.cpp.
References m_channelMarker, and ChannelMarker::setHighlighted().
Here is the call graph for this function:
|
privateslot |
Definition at line 376 of file udpsourcegui.cpp.
References arg(), UDPSourceSettings::m_amModFactor, m_settings, and ui.
Here is the call graph for this function:
|
privateslot |
Definition at line 435 of file udpsourcegui.cpp.
References applySettings(), m_channelMarker, UDPSourceSettings::m_inputSampleRate, UDPSourceSettings::m_rfBandwidth, m_rfBandwidthChanged, m_settings, ChannelMarker::setBandwidth(), and ui.
Here is the call graph for this function:
|
privateslot |
Definition at line 453 of file udpsourcegui.cpp.
References applySettings(), UDPSourceSettings::m_autoRWBalance, and m_settings.
Here is the call graph for this function:
|
privateslot |
Definition at line 429 of file udpsourcegui.cpp.
References applySettings(), UDPSourceSettings::m_channelMute, and m_settings.
Here is the call graph for this function:
|
privateslot |
Definition at line 270 of file udpsourcegui.cpp.
References applySettings(), m_channelMarker, UDPSourceSettings::m_inputFrequencyOffset, m_settings, and ChannelMarker::setCenterFrequency().
Here is the call graph for this function:
|
privateslot |
Definition at line 359 of file udpsourcegui.cpp.
References arg(), UDPSourceSettings::m_fmDeviation, m_settings, and ui.
Here is the call graph for this function:
|
privateslot |
Definition at line 394 of file udpsourcegui.cpp.
References applySettings(), arg(), UDPSourceSettings::m_gainIn, m_settings, and ui.
Here is the call graph for this function:
|
privateslot |
Definition at line 401 of file udpsourcegui.cpp.
References applySettings(), arg(), UDPSourceSettings::m_gainOut, m_settings, and ui.
Here is the call graph for this function:
|
privateslot |
Definition at line 297 of file udpsourcegui.cpp.
References m_settings, UDPSourceSettings::m_udpAddress, and ui.
|
privateslot |
Definition at line 304 of file udpsourcegui.cpp.
References arg(), m_settings, UDPSourceSettings::m_udpPort, and ui.
Here is the call graph for this function:
|
privateslot |
Definition at line 448 of file udpsourcegui.cpp.
References m_udpSource, and UDPSource::resetReadIndex().
Here is the call graph for this function:
|
privateslot |
Definition at line 337 of file udpsourcegui.cpp.
References arg(), UDPSourceSettings::m_inputSampleRate, UDPSourceSettings::m_rfBandwidth, m_rfBandwidthChanged, m_settings, and ui.
Here is the call graph for this function:
|
privateslot |
Definition at line 277 of file udpsourcegui.cpp.
References UDPSourceSettings::FormatAM, UDPSourceSettings::FormatNFM, setSampleFormat(), and ui.
Here is the call graph for this function:
|
privateslot |
Definition at line 320 of file udpsourcegui.cpp.
References arg(), UDPSourceSettings::m_inputSampleRate, m_settings, and ui.
Here is the call graph for this function:
|
privateslot |
Definition at line 408 of file udpsourcegui.cpp.
References applySettings(), arg(), m_settings, UDPSourceSettings::m_squelch, UDPSourceSettings::m_squelchEnabled, and ui.
Here is the call graph for this function:
|
privateslot |
Definition at line 422 of file udpsourcegui.cpp.
References applySettings(), arg(), m_settings, UDPSourceSettings::m_squelchGate, and ui.
Here is the call graph for this function:
|
privateslot |
Definition at line 459 of file udpsourcegui.cpp.
References applySettings(), m_settings, and UDPSourceSettings::m_stereoInput.
Here is the call graph for this function:
|
privateslot |
Definition at line 473 of file udpsourcegui.cpp.
References applySettings(), RollupWidget::ContextMenuChannelSettings, ChannelMarker::getCenterFrequency(), ChannelMarker::getColor(), BasicChannelSettingsDialog::getReverseAPIAddress(), BasicChannelSettingsDialog::getReverseAPIChannelIndex(), BasicChannelSettingsDialog::getReverseAPIDeviceIndex(), BasicChannelSettingsDialog::getReverseAPIPort(), ChannelMarker::getTitle(), m_channelMarker, RollupWidget::m_contextMenuType, UDPSourceSettings::m_inputFrequencyOffset, UDPSourceSettings::m_reverseAPIAddress, UDPSourceSettings::m_reverseAPIChannelIndex, UDPSourceSettings::m_reverseAPIDeviceIndex, UDPSourceSettings::m_reverseAPIPort, UDPSourceSettings::m_rgbColor, m_settings, UDPSourceSettings::m_useReverseAPI, RollupWidget::resetContextMenuType(), BasicChannelSettingsDialog::setReverseAPIAddress(), BasicChannelSettingsDialog::setReverseAPIChannelIndex(), BasicChannelSettingsDialog::setReverseAPIDeviceIndex(), BasicChannelSettingsDialog::setReverseAPIPort(), RollupWidget::setTitleColor(), BasicChannelSettingsDialog::setUseReverseAPI(), and BasicChannelSettingsDialog::useReverseAPI().
Referenced by UDPSourceGUI().
Here is the call graph for this function:
Here is the caller graph for this function:
|
privateslot |
Definition at line 465 of file udpsourcegui.cpp.
References m_udpSource, UDPSource::setSpectrum(), and ui.
Referenced by UDPSourceGUI().
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtual |
Implements PluginInstanceGUI.
Definition at line 62 of file udpsourcegui.cpp.
References applySettings(), displaySettings(), m_settings, and UDPSourceSettings::resetToDefaults().
Referenced by deserialize().
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtual |
Implements PluginInstanceGUI.
Definition at line 69 of file udpsourcegui.cpp.
References m_settings, and UDPSourceSettings::serialize().
Here is the call graph for this function:
|
virtual |
Implements PluginInstanceGUI.
Definition at line 56 of file udpsourcegui.cpp.
References applySettings(), m_channelMarker, and ChannelMarker::setCenterFrequency().
Here is the call graph for this function:
|
virtual |
Implements PluginInstanceGUI.
Definition at line 42 of file udpsourcegui.cpp.
|
private |
Definition at line 581 of file udpsourcegui.cpp.
References UDPSourceSettings::FormatAM, UDPSourceSettings::FormatLSB, UDPSourceSettings::FormatNFM, UDPSourceSettings::FormatSnLE, UDPSourceSettings::FormatUSB, UDPSourceSettings::m_sampleFormat, m_settings, and ui.
Referenced by on_sampleFormat_currentIndexChanged().
Here is the caller graph for this function:
|
private |
Definition at line 542 of file udpsourcegui.cpp.
References UDPSourceSettings::FormatAM, UDPSourceSettings::FormatLSB, UDPSourceSettings::FormatNFM, UDPSourceSettings::FormatSnLE, UDPSourceSettings::FormatUSB, and ui.
Referenced by displaySettings().
Here is the caller graph for this function:
|
privateslot |
Definition at line 514 of file udpsourcegui.cpp.
References arg(), MovingAverageUtil< T, Total, N >::asDouble(), CalcDb::dbPower(), UDPSource::getBufferGauge(), UDPSource::getInMagSq(), UDPSource::getMagSq(), UDPSource::getSquelchOpen(), m_channelPowerAvg, m_inPowerAvg, m_tickCount, m_udpSource, and ui.
Referenced by UDPSourceGUI().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 70 of file udpsourcegui.h.
Referenced by channelMarkerChangedByCursor(), displaySettings(), enterEvent(), getCenterFrequency(), leaveEvent(), on_applyBtn_clicked(), on_deltaFrequency_changed(), onMenuDialogCalled(), setCenterFrequency(), and UDPSourceGUI().
|
private |
Definition at line 67 of file udpsourcegui.h.
Referenced by tick().
|
private |
Definition at line 64 of file udpsourcegui.h.
Referenced by UDPSourceGUI(), and ~UDPSourceGUI().
|
private |
Definition at line 75 of file udpsourcegui.h.
Referenced by applySettings(), and blockApplySettings().
|
private |
Definition at line 68 of file udpsourcegui.h.
Referenced by tick().
|
private |
Definition at line 76 of file udpsourcegui.h.
|
private |
Definition at line 63 of file udpsourcegui.h.
|
private |
Definition at line 74 of file udpsourcegui.h.
Referenced by on_applyBtn_clicked(), and on_rfBandwidth_textEdited().
|
private |
Definition at line 73 of file udpsourcegui.h.
Referenced by applySettings(), channelMarkerChangedByCursor(), deserialize(), displaySettings(), handleMessage(), on_amModPercent_textEdited(), on_applyBtn_clicked(), on_autoRWBalance_toggled(), on_channelMute_toggled(), on_deltaFrequency_changed(), on_fmDeviation_textEdited(), on_gainIn_valueChanged(), on_gainOut_valueChanged(), on_localUDPAddress_editingFinished(), on_localUDPPort_editingFinished(), on_rfBandwidth_textEdited(), on_sampleRate_textEdited(), on_squelch_valueChanged(), on_squelchGate_valueChanged(), on_stereoInput_toggled(), onMenuDialogCalled(), resetToDefaults(), serialize(), setSampleFormat(), and UDPSourceGUI().
|
private |
Definition at line 65 of file udpsourcegui.h.
Referenced by UDPSourceGUI(), and ~UDPSourceGUI().
|
private |
Definition at line 69 of file udpsourcegui.h.
Referenced by tick().
|
private |
Definition at line 66 of file udpsourcegui.h.
Referenced by applySettings(), on_resetUDPReadIndex_clicked(), onWidgetRolled(), tick(), UDPSourceGUI(), and ~UDPSourceGUI().
|
private |
Definition at line 62 of file udpsourcegui.h.
Referenced by applySettings(), channelMarkerChangedByCursor(), displaySettings(), on_amModPercent_textEdited(), on_applyBtn_clicked(), on_fmDeviation_textEdited(), on_gainIn_valueChanged(), on_gainOut_valueChanged(), on_localUDPAddress_editingFinished(), on_localUDPPort_editingFinished(), on_rfBandwidth_textEdited(), on_sampleFormat_currentIndexChanged(), on_sampleRate_textEdited(), on_squelch_valueChanged(), on_squelchGate_valueChanged(), onWidgetRolled(), setSampleFormat(), setSampleFormatIndex(), tick(), UDPSourceGUI(), and ~UDPSourceGUI().
1.8.13