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 <localoutputgui.h>
Public Member Functions | |
LocalOutputGui (DeviceUISet *deviceUISet, QWidget *parent=0) | |
virtual | ~LocalOutputGui () |
virtual void | destroy () |
void | setName (const QString &name) |
QString | getName () const |
void | resetToDefaults () |
QByteArray | serialize () const |
bool | deserialize (const QByteArray &data) |
virtual qint64 | getCenterFrequency () const |
virtual void | setCenterFrequency (qint64 centerFrequency) |
virtual MessageQueue * | getInputMessageQueue () |
virtual bool | handleMessage (const Message &message) |
Public Member Functions inherited from PluginInstanceGUI | |
PluginInstanceGUI () | |
virtual | ~PluginInstanceGUI () |
Private Slots | |
void | handleInputMessages () |
void | on_startStop_toggled (bool checked) |
void | updateHardware () |
void | updateStatus () |
void | openDeviceSettingsDialog (const QPoint &p) |
Private Member Functions | |
void | blockApplySettings (bool block) |
void | displaySettings () |
void | sendSettings () |
void | updateSampleRateAndFrequency () |
Private Attributes | |
Ui::LocalOutputGui * | ui |
DeviceUISet * | m_deviceUISet |
LocalOutputSettings | m_settings |
current settings More... | |
LocalOutput * | m_sampleSink |
bool | m_acquisition |
int | m_streamSampleRate |
Sample rate of received stream. More... | |
quint64 | m_streamCenterFrequency |
Center frequency of received stream. More... | |
QTimer | m_updateTimer |
QTimer | m_statusTimer |
int | m_lastEngineState |
MessageQueue | m_inputMessageQueue |
int | m_samplesCount |
std::size_t | m_tickCount |
bool | m_doApplySettings |
bool | m_forceSettings |
QPalette | m_paletteGreenText |
QPalette | m_paletteWhiteText |
QNetworkAccessManager * | m_networkManager |
QNetworkRequest | m_networkRequest |
Definition at line 39 of file localoutputgui.h.
|
explicit |
Definition at line 47 of file localoutputgui.cpp.
References displaySettings(), DeviceAPI::getSampleSink(), ColorMapper::GrayGold, handleInputMessages(), DeviceUISet::m_deviceAPI, m_deviceUISet, m_forceSettings, m_inputMessageQueue, m_networkManager, m_paletteGreenText, m_paletteWhiteText, m_sampleSink, m_statusTimer, m_updateTimer, openDeviceSettingsDialog(), sendSettings(), LocalOutput::setMessageQueueToGUI(), ui, updateHardware(), and updateStatus().
|
virtual |
Definition at line 94 of file localoutputgui.cpp.
References m_networkManager, and ui.
|
private |
Definition at line 101 of file localoutputgui.cpp.
References m_doApplySettings.
Referenced by displaySettings(), handleMessage(), and updateSampleRateAndFrequency().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 134 of file localoutputgui.cpp.
References LocalOutputSettings::deserialize(), displaySettings(), m_forceSettings, m_settings, and sendSettings().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 106 of file localoutputgui.cpp.
|
private |
Definition at line 244 of file localoutputgui.cpp.
References arg(), blockApplySettings(), m_streamCenterFrequency, m_streamSampleRate, and ui.
Referenced by deserialize(), handleMessage(), LocalOutputGui(), and resetToDefaults().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 152 of file localoutputgui.cpp.
References m_streamCenterFrequency.
|
inlinevirtual |
|
virtual |
Implements PluginInstanceGUI.
Definition at line 116 of file localoutputgui.cpp.
|
privateslot |
Definition at line 197 of file localoutputgui.cpp.
References DSPSignalNotification::getCenterFrequency(), DeviceSampleSink::getInputMessageQueue(), DSPSignalNotification::getSampleRate(), handleMessage(), m_inputMessageQueue, m_sampleSink, m_streamCenterFrequency, m_streamSampleRate, Message::match(), MessageQueue::pop(), MessageQueue::push(), and updateSampleRateAndFrequency().
Referenced by LocalOutputGui().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 162 of file localoutputgui.cpp.
References blockApplySettings(), displaySettings(), LocalOutput::MsgReportSampleRateAndFrequency::getCenterFrequency(), LocalOutput::MsgReportSampleRateAndFrequency::getSampleRate(), LocalOutput::MsgConfigureLocalOutput::getSettings(), LocalOutput::MsgStartStop::getStartStop(), m_settings, m_streamCenterFrequency, m_streamSampleRate, Message::match(), ui, and updateSampleRateAndFrequency().
Referenced by handleInputMessages().
|
privateslot |
Definition at line 261 of file localoutputgui.cpp.
References LocalOutput::MsgStartStop::create(), DeviceSampleSink::getInputMessageQueue(), m_doApplySettings, m_sampleSink, and MessageQueue::push().
|
privateslot |
Definition at line 312 of file localoutputgui.cpp.
References BasicDeviceSettingsDialog::getReverseAPIAddress(), BasicDeviceSettingsDialog::getReverseAPIDeviceIndex(), BasicDeviceSettingsDialog::getReverseAPIPort(), LocalOutputSettings::m_reverseAPIAddress, LocalOutputSettings::m_reverseAPIDeviceIndex, LocalOutputSettings::m_reverseAPIPort, m_settings, LocalOutputSettings::m_useReverseAPI, sendSettings(), BasicDeviceSettingsDialog::setReverseAPIAddress(), BasicDeviceSettingsDialog::setReverseAPIDeviceIndex(), BasicDeviceSettingsDialog::setReverseAPIPort(), BasicDeviceSettingsDialog::setUseReverseAPI(), and BasicDeviceSettingsDialog::useReverseAPI().
Referenced by LocalOutputGui().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 121 of file localoutputgui.cpp.
References displaySettings(), m_forceSettings, m_settings, LocalOutputSettings::resetToDefaults(), and sendSettings().
|
private |
Definition at line 255 of file localoutputgui.cpp.
References m_updateTimer.
Referenced by deserialize(), LocalOutputGui(), openDeviceSettingsDialog(), and resetToDefaults().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 129 of file localoutputgui.cpp.
References m_settings, and LocalOutputSettings::serialize().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 157 of file localoutputgui.cpp.
|
virtual |
Implements PluginInstanceGUI.
Definition at line 111 of file localoutputgui.cpp.
|
privateslot |
Definition at line 270 of file localoutputgui.cpp.
References LocalOutput::MsgConfigureLocalOutput::create(), DeviceSampleSink::getInputMessageQueue(), m_doApplySettings, m_forceSettings, m_sampleSink, m_settings, m_updateTimer, and MessageQueue::push().
Referenced by LocalOutputGui().
|
private |
Definition at line 233 of file localoutputgui.cpp.
References arg(), blockApplySettings(), DeviceUISet::getSpectrum(), m_deviceUISet, m_streamCenterFrequency, m_streamSampleRate, GLSpectrum::setCenterFrequency(), GLSpectrum::setSampleRate(), and ui.
Referenced by handleInputMessages(), and handleMessage().
|
privateslot |
Definition at line 283 of file localoutputgui.cpp.
References DeviceAPI::errorMessage(), DeviceUISet::m_deviceAPI, m_deviceUISet, m_lastEngineState, DeviceAPI::state(), DeviceAPI::StError, DeviceAPI::StIdle, DeviceAPI::StNotStarted, DeviceAPI::StRunning, and ui.
Referenced by LocalOutputGui().
|
private |
Definition at line 64 of file localoutputgui.h.
|
private |
Definition at line 61 of file localoutputgui.h.
Referenced by LocalOutputGui(), updateSampleRateAndFrequency(), and updateStatus().
|
private |
Definition at line 75 of file localoutputgui.h.
Referenced by blockApplySettings(), on_startStop_toggled(), and updateHardware().
|
private |
Definition at line 76 of file localoutputgui.h.
Referenced by deserialize(), LocalOutputGui(), resetToDefaults(), and updateHardware().
|
private |
Definition at line 70 of file localoutputgui.h.
Referenced by handleInputMessages(), and LocalOutputGui().
|
private |
Definition at line 69 of file localoutputgui.h.
Referenced by updateStatus().
|
private |
Definition at line 81 of file localoutputgui.h.
Referenced by LocalOutputGui(), and ~LocalOutputGui().
|
private |
Definition at line 82 of file localoutputgui.h.
|
private |
Definition at line 78 of file localoutputgui.h.
Referenced by LocalOutputGui().
|
private |
Definition at line 79 of file localoutputgui.h.
Referenced by LocalOutputGui().
|
private |
Definition at line 72 of file localoutputgui.h.
|
private |
Definition at line 63 of file localoutputgui.h.
Referenced by handleInputMessages(), LocalOutputGui(), on_startStop_toggled(), and updateHardware().
|
private |
current settings
Definition at line 62 of file localoutputgui.h.
Referenced by deserialize(), handleMessage(), openDeviceSettingsDialog(), resetToDefaults(), serialize(), and updateHardware().
|
private |
Definition at line 68 of file localoutputgui.h.
Referenced by LocalOutputGui().
|
private |
Center frequency of received stream.
Definition at line 66 of file localoutputgui.h.
Referenced by displaySettings(), getCenterFrequency(), handleInputMessages(), handleMessage(), and updateSampleRateAndFrequency().
|
private |
Sample rate of received stream.
Definition at line 65 of file localoutputgui.h.
Referenced by displaySettings(), handleInputMessages(), handleMessage(), and updateSampleRateAndFrequency().
|
private |
Definition at line 73 of file localoutputgui.h.
|
private |
Definition at line 67 of file localoutputgui.h.
Referenced by LocalOutputGui(), sendSettings(), and updateHardware().
|
private |
Definition at line 59 of file localoutputgui.h.
Referenced by displaySettings(), handleMessage(), LocalOutputGui(), updateSampleRateAndFrequency(), updateStatus(), and ~LocalOutputGui().