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 <sdrplaygui.h>
Public Member Functions | |
SDRPlayGui (DeviceUISet *deviceUISet, QWidget *parent=0) | |
virtual | ~SDRPlayGui () |
virtual void | destroy () |
void | setName (const QString &name) |
QString | getName () const |
virtual void | resetToDefaults () |
virtual qint64 | getCenterFrequency () const |
virtual void | setCenterFrequency (qint64 centerFrequency) |
virtual QByteArray | serialize () const |
virtual bool | deserialize (const QByteArray &data) |
virtual MessageQueue * | getInputMessageQueue () |
virtual bool | handleMessage (const Message &message) |
Public Member Functions inherited from PluginInstanceGUI | |
PluginInstanceGUI () | |
virtual | ~PluginInstanceGUI () |
Private Slots | |
void | updateHardware () |
void | updateStatus () |
void | handleInputMessages () |
void | on_centerFrequency_changed (quint64 value) |
void | on_ppm_valueChanged (int value) |
void | on_dcOffset_toggled (bool checked) |
void | on_iqImbalance_toggled (bool checked) |
void | on_fBand_currentIndexChanged (int index) |
void | on_bandwidth_currentIndexChanged (int index) |
void | on_samplerate_currentIndexChanged (int index) |
void | on_ifFrequency_currentIndexChanged (int index) |
void | on_decim_currentIndexChanged (int index) |
void | on_fcPos_currentIndexChanged (int index) |
void | on_gainTunerOn_toggled (bool checked) |
void | on_gainTuner_valueChanged (int value) |
void | on_gainManualOn_toggled (bool checked) |
void | on_gainLNA_toggled (bool checked) |
void | on_gainMixer_toggled (bool checked) |
void | on_gainBaseband_valueChanged (int value) |
void | on_startStop_toggled (bool checked) |
void | on_record_toggled (bool checked) |
void | openDeviceSettingsDialog (const QPoint &p) |
Private Member Functions | |
void | blockApplySettings (bool block) |
void | displaySettings () |
void | sendSettings () |
void | updateSampleRateAndFrequency () |
Private Attributes | |
Ui::SDRPlayGui * | ui |
DeviceUISet * | m_deviceUISet |
bool | m_doApplySettings |
bool | m_forceSettings |
SDRPlaySettings | m_settings |
QTimer | m_updateTimer |
QTimer | m_statusTimer |
DeviceSampleSource * | m_sampleSource |
int | m_sampleRate |
quint64 | m_deviceCenterFrequency |
Center frequency in device. More... | |
int | m_lastEngineState |
MessageQueue | m_inputMessageQueue |
Definition at line 37 of file sdrplaygui.h.
|
explicit |
Definition at line 35 of file sdrplaygui.cpp.
References displaySettings(), SDRPlayBands::getBandName(), SDRPlayBandwidths::getBandwidth(), SDRPlayIF::getIF(), SDRPlayBands::getNbBands(), SDRPlayBandwidths::getNbBandwidths(), SDRPlayIF::getNbIFs(), SDRPlaySampleRates::getNbRates(), SDRPlaySampleRates::getRate(), DeviceAPI::getSampleSource(), ColorMapper::GrayGold, handleInputMessages(), i, DeviceUISet::m_deviceAPI, m_deviceUISet, m_inputMessageQueue, m_sampleSource, m_statusTimer, m_updateTimer, openDeviceSettingsDialog(), DeviceSampleSource::setMessageQueueToGUI(), ui, updateHardware(), and updateStatus().
|
virtual |
Definition at line 85 of file sdrplaygui.cpp.
References ui.
|
inlineprivate |
Definition at line 71 of file sdrplaygui.h.
Referenced by handleMessage().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 129 of file sdrplaygui.cpp.
References SDRPlaySettings::deserialize(), displaySettings(), m_forceSettings, m_settings, resetToDefaults(), and sendSettings().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 90 of file sdrplaygui.cpp.
|
private |
Definition at line 234 of file sdrplaygui.cpp.
References arg(), SDRPlaySettings::m_bandwidthIndex, SDRPlaySettings::m_basebandGain, SDRPlaySettings::m_centerFrequency, SDRPlaySettings::m_dcBlock, SDRPlaySettings::m_devSampleRateIndex, SDRPlaySettings::m_fcPos, SDRPlaySettings::m_frequencyBandIndex, SDRPlaySettings::m_ifFrequencyIndex, SDRPlaySettings::m_iqCorrection, SDRPlaySettings::m_lnaOn, SDRPlaySettings::m_log2Decim, SDRPlaySettings::m_LOppmTenths, SDRPlaySettings::m_mixerAmpOn, m_settings, SDRPlaySettings::m_tunerGain, SDRPlaySettings::m_tunerGainMode, and ui.
Referenced by deserialize(), handleMessage(), resetToDefaults(), SDRPlayGui(), and setCenterFrequency().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 112 of file sdrplaygui.cpp.
References SDRPlaySettings::m_centerFrequency, and m_settings.
|
inlinevirtual |
|
virtual |
Implements PluginInstanceGUI.
Definition at line 100 of file sdrplaygui.cpp.
|
privateslot |
Definition at line 198 of file sdrplaygui.cpp.
References DSPSignalNotification::getCenterFrequency(), Message::getIdentifier(), DSPSignalNotification::getSampleRate(), handleMessage(), m_deviceCenterFrequency, m_inputMessageQueue, m_sampleRate, Message::match(), MessageQueue::pop(), and updateSampleRateAndFrequency().
Referenced by SDRPlayGui().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 145 of file sdrplaygui.cpp.
References blockApplySettings(), displaySettings(), SDRPlayInput::MsgReportSDRPlayGains::getBasebandGain(), SDRPlayInput::MsgReportSDRPlayGains::getLNAGain(), SDRPlayInput::MsgReportSDRPlayGains::getMixerGain(), SDRPlayInput::MsgConfigureSDRPlay::getSettings(), SDRPlayInput::MsgStartStop::getStartStop(), SDRPlayInput::MsgReportSDRPlayGains::getTunerGain(), m_settings, SDRPlaySettings::m_tunerGainMode, Message::match(), and ui.
Referenced by handleInputMessages().
|
privateslot |
Definition at line 372 of file sdrplaygui.cpp.
References SDRPlaySettings::m_bandwidthIndex, m_settings, and sendSettings().
|
privateslot |
Definition at line 332 of file sdrplaygui.cpp.
References SDRPlaySettings::m_centerFrequency, m_settings, and sendSettings().
|
privateslot |
Definition at line 345 of file sdrplaygui.cpp.
References SDRPlaySettings::m_dcBlock, m_settings, and sendSettings().
|
privateslot |
Definition at line 390 of file sdrplaygui.cpp.
References SDRPlaySettings::m_log2Decim, m_settings, and sendSettings().
|
privateslot |
Definition at line 358 of file sdrplaygui.cpp.
References SDRPlayBands::getBandHigh(), SDRPlayBands::getBandLow(), SDRPlaySettings::m_centerFrequency, SDRPlaySettings::m_frequencyBandIndex, m_settings, sendSettings(), and ui.
|
privateslot |
Definition at line 396 of file sdrplaygui.cpp.
References SDRPlaySettings::m_fcPos, m_settings, and sendSettings().
|
privateslot |
Definition at line 449 of file sdrplaygui.cpp.
References SDRPlaySettings::m_basebandGain, m_settings, sendSettings(), and ui.
|
privateslot |
Definition at line 437 of file sdrplaygui.cpp.
References SDRPlaySettings::m_lnaOn, m_settings, and sendSettings().
|
privateslot |
Definition at line 425 of file sdrplaygui.cpp.
References m_settings, SDRPlaySettings::m_tunerGainMode, sendSettings(), and ui.
|
privateslot |
Definition at line 443 of file sdrplaygui.cpp.
References SDRPlaySettings::m_mixerAmpOn, m_settings, and sendSettings().
|
privateslot |
Definition at line 414 of file sdrplaygui.cpp.
References m_settings, SDRPlaySettings::m_tunerGain, sendSettings(), and ui.
|
privateslot |
Definition at line 402 of file sdrplaygui.cpp.
References m_settings, SDRPlaySettings::m_tunerGainMode, sendSettings(), and ui.
|
privateslot |
Definition at line 384 of file sdrplaygui.cpp.
References SDRPlaySettings::m_ifFrequencyIndex, m_settings, and sendSettings().
|
privateslot |
Definition at line 352 of file sdrplaygui.cpp.
References SDRPlaySettings::m_iqCorrection, m_settings, and sendSettings().
|
privateslot |
Definition at line 338 of file sdrplaygui.cpp.
References arg(), SDRPlaySettings::m_LOppmTenths, m_settings, sendSettings(), and ui.
|
privateslot |
Definition at line 469 of file sdrplaygui.cpp.
References SDRPlayInput::MsgFileRecord::create(), DeviceSampleSource::getInputMessageQueue(), m_sampleSource, MessageQueue::push(), and ui.
|
privateslot |
Definition at line 378 of file sdrplaygui.cpp.
References SDRPlaySettings::m_devSampleRateIndex, m_settings, and sendSettings().
|
privateslot |
Definition at line 460 of file sdrplaygui.cpp.
References SDRPlayInput::MsgStartStop::create(), DeviceSampleSource::getInputMessageQueue(), m_doApplySettings, m_sampleSource, and MessageQueue::push().
|
privateslot |
Definition at line 481 of file sdrplaygui.cpp.
References BasicDeviceSettingsDialog::getReverseAPIAddress(), BasicDeviceSettingsDialog::getReverseAPIDeviceIndex(), BasicDeviceSettingsDialog::getReverseAPIPort(), SDRPlaySettings::m_reverseAPIAddress, SDRPlaySettings::m_reverseAPIDeviceIndex, SDRPlaySettings::m_reverseAPIPort, m_settings, SDRPlaySettings::m_useReverseAPI, sendSettings(), BasicDeviceSettingsDialog::setReverseAPIAddress(), BasicDeviceSettingsDialog::setReverseAPIDeviceIndex(), BasicDeviceSettingsDialog::setReverseAPIPort(), BasicDeviceSettingsDialog::setUseReverseAPI(), and BasicDeviceSettingsDialog::useReverseAPI().
Referenced by SDRPlayGui().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 105 of file sdrplaygui.cpp.
References displaySettings(), m_settings, SDRPlaySettings::resetToDefaults(), and sendSettings().
Referenced by deserialize().
|
private |
Definition at line 288 of file sdrplaygui.cpp.
References m_updateTimer.
Referenced by deserialize(), on_bandwidth_currentIndexChanged(), on_centerFrequency_changed(), on_dcOffset_toggled(), on_decim_currentIndexChanged(), on_fBand_currentIndexChanged(), on_fcPos_currentIndexChanged(), on_gainBaseband_valueChanged(), on_gainLNA_toggled(), on_gainManualOn_toggled(), on_gainMixer_toggled(), on_gainTuner_valueChanged(), on_gainTunerOn_toggled(), on_ifFrequency_currentIndexChanged(), on_iqImbalance_toggled(), on_ppm_valueChanged(), on_samplerate_currentIndexChanged(), openDeviceSettingsDialog(), resetToDefaults(), and setCenterFrequency().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 124 of file sdrplaygui.cpp.
References m_settings, and SDRPlaySettings::serialize().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 117 of file sdrplaygui.cpp.
References displaySettings(), SDRPlaySettings::m_centerFrequency, m_settings, and sendSettings().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 95 of file sdrplaygui.cpp.
|
privateslot |
Definition at line 294 of file sdrplaygui.cpp.
References SDRPlayInput::MsgConfigureSDRPlay::create(), DeviceSampleSource::getInputMessageQueue(), m_forceSettings, m_sampleSource, m_settings, m_updateTimer, and MessageQueue::push().
Referenced by SDRPlayGui().
|
private |
Definition at line 226 of file sdrplaygui.cpp.
References arg(), DeviceUISet::getSpectrum(), m_deviceCenterFrequency, m_deviceUISet, m_sampleRate, GLSpectrum::setCenterFrequency(), GLSpectrum::setSampleRate(), and ui.
Referenced by handleInputMessages().
|
privateslot |
Definition at line 303 of file sdrplaygui.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 SDRPlayGui().
|
private |
Center frequency in device.
Definition at line 67 of file sdrplaygui.h.
Referenced by handleInputMessages(), and updateSampleRateAndFrequency().
|
private |
Definition at line 59 of file sdrplaygui.h.
Referenced by SDRPlayGui(), updateSampleRateAndFrequency(), and updateStatus().
|
private |
Definition at line 60 of file sdrplaygui.h.
Referenced by on_startStop_toggled().
|
private |
Definition at line 61 of file sdrplaygui.h.
Referenced by deserialize(), and updateHardware().
|
private |
Definition at line 69 of file sdrplaygui.h.
Referenced by handleInputMessages(), and SDRPlayGui().
|
private |
Definition at line 68 of file sdrplaygui.h.
Referenced by updateStatus().
|
private |
Definition at line 66 of file sdrplaygui.h.
Referenced by handleInputMessages(), and updateSampleRateAndFrequency().
|
private |
Definition at line 65 of file sdrplaygui.h.
Referenced by on_record_toggled(), on_startStop_toggled(), SDRPlayGui(), and updateHardware().
|
private |
Definition at line 62 of file sdrplaygui.h.
Referenced by deserialize(), displaySettings(), getCenterFrequency(), handleMessage(), on_bandwidth_currentIndexChanged(), on_centerFrequency_changed(), on_dcOffset_toggled(), on_decim_currentIndexChanged(), on_fBand_currentIndexChanged(), on_fcPos_currentIndexChanged(), on_gainBaseband_valueChanged(), on_gainLNA_toggled(), on_gainManualOn_toggled(), on_gainMixer_toggled(), on_gainTuner_valueChanged(), on_gainTunerOn_toggled(), on_ifFrequency_currentIndexChanged(), on_iqImbalance_toggled(), on_ppm_valueChanged(), on_samplerate_currentIndexChanged(), openDeviceSettingsDialog(), resetToDefaults(), serialize(), setCenterFrequency(), and updateHardware().
|
private |
Definition at line 64 of file sdrplaygui.h.
Referenced by SDRPlayGui().
|
private |
Definition at line 63 of file sdrplaygui.h.
Referenced by SDRPlayGui(), sendSettings(), and updateHardware().
|
private |
Definition at line 57 of file sdrplaygui.h.
Referenced by displaySettings(), handleMessage(), on_fBand_currentIndexChanged(), on_gainBaseband_valueChanged(), on_gainManualOn_toggled(), on_gainTuner_valueChanged(), on_gainTunerOn_toggled(), on_ppm_valueChanged(), on_record_toggled(), SDRPlayGui(), updateSampleRateAndFrequency(), updateStatus(), and ~SDRPlayGui().