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 <remotesinkgui.h>
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 RemoteSinkGUI * | create (PluginAPI *pluginAPI, DeviceUISet *deviceUISet, BasebandSampleSink *rxChannel) |
Private Slots | |
void | handleSourceMessages () |
void | on_decimationFactor_currentIndexChanged (int index) |
void | on_position_valueChanged (int value) |
void | on_dataAddress_returnPressed () |
void | on_dataPort_returnPressed () |
void | on_dataApplyButton_clicked (bool checked) |
void | on_nbFECBlocks_valueChanged (int value) |
void | on_txDelay_valueChanged (int value) |
void | onWidgetRolled (QWidget *widget, bool rollDown) |
void | onMenuDialogCalled (const QPoint &p) |
void | tick () |
Private Member Functions | |
RemoteSinkGUI (PluginAPI *pluginAPI, DeviceUISet *deviceUISet, BasebandSampleSink *rxChannel, QWidget *parent=0) | |
virtual | ~RemoteSinkGUI () |
void | blockApplySettings (bool block) |
void | applySettings (bool force=false) |
void | applyChannelSettings () |
void | displaySettings () |
void | displayRateAndShift () |
void | updateTxDelayTime () |
void | leaveEvent (QEvent *) |
void | enterEvent (QEvent *) |
void | applyDecimation () |
void | applyPosition () |
Private Attributes | |
Ui::RemoteSinkGUI * | ui |
PluginAPI * | m_pluginAPI |
DeviceUISet * | m_deviceUISet |
ChannelMarker | m_channelMarker |
RemoteSinkSettings | m_settings |
int | m_sampleRate |
quint64 | m_deviceCenterFrequency |
Center frequency in device. More... | |
double | m_shiftFrequencyFactor |
Channel frequency shift factor. More... | |
bool | m_doApplySettings |
RemoteSink * | m_remoteSink |
MessageQueue | m_inputMessageQueue |
QTime | m_time |
uint32_t | m_tickCount |
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 42 of file remotesinkgui.h.
|
explicitprivate |
Definition at line 109 of file remotesinkgui.cpp.
References DeviceUISet::addChannelMarker(), DeviceUISet::addRollupWidget(), applySettings(), displaySettings(), getInputMessageQueue(), handleSourceMessages(), RemoteSink::m_channelIdURI, m_channelMarker, m_deviceUISet, m_remoteSink, RemoteSinkSettings::m_rgbColor, m_settings, m_time, onMenuDialogCalled(), onWidgetRolled(), DeviceUISet::registerRxChannelInstance(), ChannelMarker::setCenterFrequency(), RemoteSinkSettings::setChannelMarker(), ChannelMarker::setColor(), BasebandSampleSink::setMessageQueueToGUI(), ChannelMarker::setTitle(), ChannelMarker::setVisible(), ui, and RollupWidget::widgetRolled().
Referenced by create().
|
privatevirtual |
Definition at line 147 of file remotesinkgui.cpp.
References m_deviceUISet, m_remoteSink, DeviceUISet::removeRxChannelInstance(), and ui.
|
private |
Definition at line 170 of file remotesinkgui.cpp.
References RemoteSink::MsgConfigureChannelizer::create(), BasebandSampleSink::getInputMessageQueue(), m_doApplySettings, RemoteSinkSettings::m_filterChainHash, RemoteSinkSettings::m_log2Decim, m_remoteSink, m_settings, and MessageQueue::push().
Referenced by applyPosition().
|
private |
Definition at line 359 of file remotesinkgui.cpp.
References applyPosition(), i, RemoteSinkSettings::m_filterChainHash, RemoteSinkSettings::m_log2Decim, m_settings, and ui.
Referenced by displaySettings(), and on_decimationFactor_currentIndexChanged().
|
private |
Definition at line 373 of file remotesinkgui.cpp.
References applyChannelSettings(), arg(), HBFilterChainConverter::convertToString(), displayRateAndShift(), RemoteSinkSettings::m_filterChainHash, RemoteSinkSettings::m_log2Decim, m_settings, m_shiftFrequencyFactor, and ui.
Referenced by applyDecimation(), and on_position_valueChanged().
|
private |
Definition at line 159 of file remotesinkgui.cpp.
References RemoteSink::MsgConfigureRemoteSink::create(), ChannelMarker::getColor(), BasebandSampleSink::getInputMessageQueue(), m_channelMarker, m_doApplySettings, m_remoteSink, m_settings, MessageQueue::push(), and RollupWidget::setTitleColor().
Referenced by deserialize(), on_dataAddress_returnPressed(), on_dataApplyButton_clicked(), on_dataPort_returnPressed(), on_nbFECBlocks_valueChanged(), on_txDelay_valueChanged(), onMenuDialogCalled(), RemoteSinkGUI(), and resetToDefaults().
|
private |
Definition at line 154 of file remotesinkgui.cpp.
References m_doApplySettings.
Referenced by displaySettings(), and handleMessage().
|
static |
Definition at line 29 of file remotesinkgui.cpp.
References RemoteSinkGUI().
Referenced by RemoteSinkPlugin::createRxChannelGUI().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 71 of file remotesinkgui.cpp.
References applySettings(), RemoteSinkSettings::deserialize(), displaySettings(), m_settings, and resetToDefaults().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 35 of file remotesinkgui.cpp.
|
private |
Definition at line 208 of file remotesinkgui.cpp.
References arg(), m_channelMarker, RemoteSinkSettings::m_log2Decim, m_sampleRate, m_settings, m_shiftFrequencyFactor, ChannelMarker::setBandwidth(), ChannelMarker::setCenterFrequency(), and ui.
Referenced by applyPosition(), and handleMessage().
|
private |
Definition at line 181 of file remotesinkgui.cpp.
References applyDecimation(), arg(), blockApplySettings(), ChannelMarker::getTitle(), m_channelMarker, RemoteSinkSettings::m_dataAddress, RemoteSinkSettings::m_dataPort, RemoteSinkSettings::m_log2Decim, RemoteSinkSettings::m_nbFECBlocks, RemoteSinkSettings::m_rgbColor, m_sampleRate, m_settings, RemoteSinkSettings::m_title, RemoteSinkSettings::m_txDelay, ChannelMarker::setBandwidth(), ChannelMarker::setCenterFrequency(), ChannelMarker::setColor(), ChannelMarker::setMovable(), ChannelMarker::setTitle(), RollupWidget::setTitleColor(), ui, and updateTxDelayTime().
Referenced by deserialize(), handleMessage(), RemoteSinkGUI(), and resetToDefaults().
|
private |
Definition at line 224 of file remotesinkgui.cpp.
References m_channelMarker, and ChannelMarker::setHighlighted().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 50 of file remotesinkgui.cpp.
|
inlinevirtual |
Implements PluginInstanceGUI.
Definition at line 56 of file remotesinkgui.h.
Referenced by handleSourceMessages(), and RemoteSinkGUI().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 45 of file remotesinkgui.cpp.
|
virtual |
Implements PluginInstanceGUI.
Definition at line 83 of file remotesinkgui.cpp.
References blockApplySettings(), displayRateAndShift(), displaySettings(), RemoteSink::MsgSampleRateNotification::getSampleRate(), RemoteSink::MsgConfigureRemoteSink::getSettings(), m_sampleRate, m_settings, Message::match(), and updateTxDelayTime().
Referenced by handleSourceMessages().
|
privateslot |
Definition at line 229 of file remotesinkgui.cpp.
References getInputMessageQueue(), and handleMessage().
Referenced by RemoteSinkGUI().
|
private |
Definition at line 219 of file remotesinkgui.cpp.
References m_channelMarker, and ChannelMarker::setHighlighted().
|
privateslot |
Definition at line 291 of file remotesinkgui.cpp.
References applySettings(), RemoteSinkSettings::m_dataAddress, m_settings, and ui.
|
privateslot |
Definition at line 314 of file remotesinkgui.cpp.
References applySettings(), RemoteSinkSettings::m_dataAddress, RemoteSinkSettings::m_dataPort, m_settings, and ui.
|
privateslot |
Definition at line 297 of file remotesinkgui.cpp.
References applySettings(), RemoteSinkSettings::m_dataPort, m_settings, and ui.
|
privateslot |
Definition at line 279 of file remotesinkgui.cpp.
References applyDecimation(), RemoteSinkSettings::m_log2Decim, and m_settings.
|
privateslot |
Definition at line 338 of file remotesinkgui.cpp.
References applySettings(), arg(), RemoteSinkSettings::m_nbFECBlocks, m_settings, ui, and updateTxDelayTime().
|
privateslot |
Definition at line 285 of file remotesinkgui.cpp.
References applyPosition(), RemoteSinkSettings::m_filterChainHash, and m_settings.
|
privateslot |
Definition at line 330 of file remotesinkgui.cpp.
References applySettings(), arg(), m_settings, RemoteSinkSettings::m_txDelay, ui, and updateTxDelayTime().
|
privateslot |
Definition at line 248 of file remotesinkgui.cpp.
References applySettings(), RollupWidget::ContextMenuChannelSettings, ChannelMarker::getColor(), BasicChannelSettingsDialog::getReverseAPIAddress(), BasicChannelSettingsDialog::getReverseAPIChannelIndex(), BasicChannelSettingsDialog::getReverseAPIDeviceIndex(), BasicChannelSettingsDialog::getReverseAPIPort(), ChannelMarker::getTitle(), m_channelMarker, RollupWidget::m_contextMenuType, RemoteSinkSettings::m_reverseAPIAddress, RemoteSinkSettings::m_reverseAPIChannelIndex, RemoteSinkSettings::m_reverseAPIDeviceIndex, RemoteSinkSettings::m_reverseAPIPort, RemoteSinkSettings::m_rgbColor, m_settings, RemoteSinkSettings::m_title, RemoteSinkSettings::m_useReverseAPI, RollupWidget::resetContextMenuType(), BasicChannelSettingsDialog::setReverseAPIAddress(), BasicChannelSettingsDialog::setReverseAPIChannelIndex(), BasicChannelSettingsDialog::setReverseAPIDeviceIndex(), BasicChannelSettingsDialog::setReverseAPIPort(), RollupWidget::setTitleColor(), BasicChannelSettingsDialog::setUseReverseAPI(), and BasicChannelSettingsDialog::useReverseAPI().
Referenced by RemoteSinkGUI().
|
privateslot |
Definition at line 242 of file remotesinkgui.cpp.
Referenced by RemoteSinkGUI().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 59 of file remotesinkgui.cpp.
References applySettings(), displaySettings(), m_settings, and RemoteSinkSettings::resetToDefaults().
Referenced by deserialize().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 66 of file remotesinkgui.cpp.
References m_settings, and RemoteSinkSettings::serialize().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 54 of file remotesinkgui.cpp.
|
virtual |
Implements PluginInstanceGUI.
Definition at line 40 of file remotesinkgui.cpp.
|
privateslot |
|
private |
Definition at line 350 of file remotesinkgui.cpp.
References m_settings, and RemoteSinkSettings::m_txDelay.
Referenced by displaySettings(), handleMessage(), on_nbFECBlocks_valueChanged(), and on_txDelay_valueChanged().
|
private |
Definition at line 63 of file remotesinkgui.h.
Referenced by applySettings(), displayRateAndShift(), displaySettings(), enterEvent(), leaveEvent(), onMenuDialogCalled(), and RemoteSinkGUI().
|
private |
Center frequency in device.
Definition at line 66 of file remotesinkgui.h.
|
private |
Definition at line 62 of file remotesinkgui.h.
Referenced by RemoteSinkGUI(), and ~RemoteSinkGUI().
|
private |
Definition at line 68 of file remotesinkgui.h.
Referenced by applyChannelSettings(), applySettings(), and blockApplySettings().
|
private |
Definition at line 71 of file remotesinkgui.h.
|
private |
Definition at line 61 of file remotesinkgui.h.
|
private |
Definition at line 70 of file remotesinkgui.h.
Referenced by applyChannelSettings(), applySettings(), RemoteSinkGUI(), and ~RemoteSinkGUI().
|
private |
Definition at line 65 of file remotesinkgui.h.
Referenced by displayRateAndShift(), displaySettings(), and handleMessage().
|
private |
Definition at line 64 of file remotesinkgui.h.
Referenced by applyChannelSettings(), applyDecimation(), applyPosition(), applySettings(), deserialize(), displayRateAndShift(), displaySettings(), handleMessage(), on_dataAddress_returnPressed(), on_dataApplyButton_clicked(), on_dataPort_returnPressed(), on_decimationFactor_currentIndexChanged(), on_nbFECBlocks_valueChanged(), on_position_valueChanged(), on_txDelay_valueChanged(), onMenuDialogCalled(), RemoteSinkGUI(), resetToDefaults(), serialize(), and updateTxDelayTime().
|
private |
Channel frequency shift factor.
Definition at line 67 of file remotesinkgui.h.
Referenced by applyPosition(), and displayRateAndShift().
|
private |
Definition at line 74 of file remotesinkgui.h.
Referenced by tick().
|
private |
Definition at line 73 of file remotesinkgui.h.
Referenced by RemoteSinkGUI().
|
private |
Definition at line 60 of file remotesinkgui.h.
Referenced by applyDecimation(), applyPosition(), displayRateAndShift(), displaySettings(), on_dataAddress_returnPressed(), on_dataApplyButton_clicked(), on_dataPort_returnPressed(), on_nbFECBlocks_valueChanged(), on_txDelay_valueChanged(), RemoteSinkGUI(), and ~RemoteSinkGUI().