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 <perseusgui.h>
Public Member Functions | |
PerseusGui (DeviceUISet *deviceUISet, QWidget *parent=0) | |
virtual | ~PerseusGui () |
virtual void | destroy () |
void | setName (const QString &name) |
QString | getName () const |
void | resetToDefaults () |
virtual qint64 | getCenterFrequency () const |
virtual void | setCenterFrequency (qint64 centerFrequency) |
QByteArray | serialize () const |
bool | deserialize (const QByteArray &data) |
virtual MessageQueue * | getInputMessageQueue () |
virtual bool | handleMessage (const Message &message) |
uint32_t | getDevSampleRate (unsigned int index) |
int | getDevSampleRateIndex (uint32_t sampleRate) |
Public Member Functions inherited from PluginInstanceGUI | |
PluginInstanceGUI () | |
virtual | ~PluginInstanceGUI () |
Private Slots | |
void | on_centerFrequency_changed (quint64 value) |
void | on_LOppm_valueChanged (int value) |
void | on_resetLOppm_clicked () |
void | on_sampleRate_currentIndexChanged (int index) |
void | on_wideband_toggled (bool checked) |
void | on_decim_currentIndexChanged (int index) |
void | on_startStop_toggled (bool checked) |
void | on_record_toggled (bool checked) |
void | on_transverter_clicked () |
void | on_attenuator_currentIndexChanged (int index) |
void | on_adcDither_toggled (bool checked) |
void | on_adcPreamp_toggled (bool checked) |
void | updateHardware () |
void | updateStatus () |
void | handleInputMessages () |
void | openDeviceSettingsDialog (const QPoint &p) |
Private Member Functions | |
void | blockApplySettings (bool block) |
void | displaySettings () |
void | displaySampleRates () |
void | updateFrequencyLimits () |
void | sendSettings () |
void | updateSampleRateAndFrequency () |
Private Attributes | |
Ui::PerseusGui * | ui |
DeviceUISet * | m_deviceUISet |
bool | m_doApplySettings |
bool | m_forceSettings |
PerseusSettings | m_settings |
QTimer | m_updateTimer |
QTimer | m_statusTimer |
std::vector< uint32_t > | m_rates |
PerseusInput * | m_sampleSource |
int | m_sampleRate |
quint64 | m_deviceCenterFrequency |
Center frequency in device. More... | |
int | m_lastEngineState |
MessageQueue | m_inputMessageQueue |
Definition at line 35 of file perseusgui.h.
|
explicit |
Definition at line 34 of file perseusgui.cpp.
References displaySampleRates(), displaySettings(), PerseusInput::getSampleRates(), DeviceAPI::getSampleSource(), ColorMapper::GrayGold, handleInputMessages(), DeviceUISet::m_deviceAPI, m_deviceUISet, m_inputMessageQueue, m_rates, m_sampleSource, m_statusTimer, m_updateTimer, openDeviceSettingsDialog(), sendSettings(), PerseusInput::setMessageQueueToGUI(), ui, updateFrequencyLimits(), updateHardware(), and updateStatus().
|
virtual |
Definition at line 67 of file perseusgui.cpp.
References ui.
|
inlineprivate |
Definition at line 72 of file perseusgui.h.
Referenced by displaySettings(), and handleMessage().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 111 of file perseusgui.cpp.
References PerseusSettings::deserialize(), displaySettings(), m_forceSettings, m_settings, resetToDefaults(), and sendSettings().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 72 of file perseusgui.cpp.
|
private |
Definition at line 204 of file perseusgui.cpp.
References arg(), i, PerseusSettings::m_devSampleRateIndex, m_rates, m_settings, and ui.
Referenced by PerseusGui().
|
private |
Definition at line 186 of file perseusgui.cpp.
References arg(), blockApplySettings(), PerseusSettings::m_adcDither, PerseusSettings::m_adcPreamp, PerseusSettings::m_attenuator, PerseusSettings::m_centerFrequency, PerseusSettings::m_devSampleRateIndex, PerseusSettings::m_log2Decim, PerseusSettings::m_LOppmTenths, m_settings, PerseusSettings::m_transverterDeltaFrequency, PerseusSettings::m_transverterMode, PerseusSettings::m_wideBand, ui, and updateFrequencyLimits().
Referenced by deserialize(), handleMessage(), PerseusGui(), resetToDefaults(), and setCenterFrequency().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 94 of file perseusgui.cpp.
References PerseusSettings::m_centerFrequency, and m_settings.
uint32_t PerseusGui::getDevSampleRate | ( | unsigned int | index | ) |
int PerseusGui::getDevSampleRateIndex | ( | uint32_t | sampleRate | ) |
Definition at line 394 of file perseusgui.cpp.
|
inlinevirtual |
|
virtual |
Implements PluginInstanceGUI.
Definition at line 82 of file perseusgui.cpp.
|
privateslot |
Definition at line 151 of file perseusgui.cpp.
References DSPSignalNotification::getCenterFrequency(), Message::getIdentifier(), DSPSignalNotification::getSampleRate(), handleMessage(), m_deviceCenterFrequency, m_inputMessageQueue, m_sampleRate, Message::match(), MessageQueue::pop(), and updateSampleRateAndFrequency().
Referenced by PerseusGui().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 124 of file perseusgui.cpp.
References blockApplySettings(), displaySettings(), PerseusInput::MsgConfigurePerseus::getSettings(), PerseusInput::MsgStartStop::getStartStop(), m_settings, Message::match(), and ui.
Referenced by handleInputMessages().
|
privateslot |
Definition at line 332 of file perseusgui.cpp.
References PerseusSettings::m_adcDither, m_settings, and sendSettings().
|
privateslot |
Definition at line 338 of file perseusgui.cpp.
References PerseusSettings::m_adcPreamp, m_settings, and sendSettings().
|
privateslot |
Definition at line 323 of file perseusgui.cpp.
References PerseusSettings::Attenuator_last, PerseusSettings::m_attenuator, m_settings, and sendSettings().
|
privateslot |
Definition at line 254 of file perseusgui.cpp.
References PerseusSettings::m_centerFrequency, m_settings, and sendSettings().
|
privateslot |
Definition at line 284 of file perseusgui.cpp.
References PerseusSettings::m_log2Decim, m_settings, and sendSettings().
|
privateslot |
Definition at line 260 of file perseusgui.cpp.
References arg(), PerseusSettings::m_LOppmTenths, m_settings, sendSettings(), and ui.
|
privateslot |
Definition at line 301 of file perseusgui.cpp.
References PerseusInput::MsgFileRecord::create(), DeviceSampleSource::getInputMessageQueue(), m_sampleSource, MessageQueue::push(), and ui.
|
privateslot |
Definition at line 267 of file perseusgui.cpp.
References ui.
|
privateslot |
Definition at line 272 of file perseusgui.cpp.
References PerseusSettings::m_devSampleRateIndex, m_settings, and sendSettings().
|
privateslot |
Definition at line 292 of file perseusgui.cpp.
References PerseusInput::MsgStartStop::create(), DeviceSampleSource::getInputMessageQueue(), m_doApplySettings, m_sampleSource, and MessageQueue::push().
|
privateslot |
Definition at line 313 of file perseusgui.cpp.
References PerseusSettings::m_centerFrequency, m_settings, PerseusSettings::m_transverterDeltaFrequency, PerseusSettings::m_transverterMode, sendSettings(), ui, and updateFrequencyLimits().
|
privateslot |
Definition at line 278 of file perseusgui.cpp.
References m_settings, PerseusSettings::m_wideBand, and sendSettings().
|
privateslot |
Definition at line 407 of file perseusgui.cpp.
References BasicDeviceSettingsDialog::getReverseAPIAddress(), BasicDeviceSettingsDialog::getReverseAPIDeviceIndex(), BasicDeviceSettingsDialog::getReverseAPIPort(), PerseusSettings::m_reverseAPIAddress, PerseusSettings::m_reverseAPIDeviceIndex, PerseusSettings::m_reverseAPIPort, m_settings, PerseusSettings::m_useReverseAPI, sendSettings(), BasicDeviceSettingsDialog::setReverseAPIAddress(), BasicDeviceSettingsDialog::setReverseAPIDeviceIndex(), BasicDeviceSettingsDialog::setReverseAPIPort(), BasicDeviceSettingsDialog::setUseReverseAPI(), and BasicDeviceSettingsDialog::useReverseAPI().
Referenced by PerseusGui().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 87 of file perseusgui.cpp.
References displaySettings(), m_settings, PerseusSettings::resetToDefaults(), and sendSettings().
Referenced by deserialize().
|
private |
Definition at line 248 of file perseusgui.cpp.
References m_updateTimer.
Referenced by deserialize(), on_adcDither_toggled(), on_adcPreamp_toggled(), on_attenuator_currentIndexChanged(), on_centerFrequency_changed(), on_decim_currentIndexChanged(), on_LOppm_valueChanged(), on_sampleRate_currentIndexChanged(), on_transverter_clicked(), on_wideband_toggled(), openDeviceSettingsDialog(), PerseusGui(), resetToDefaults(), and setCenterFrequency().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 106 of file perseusgui.cpp.
References m_settings, and PerseusSettings::serialize().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 99 of file perseusgui.cpp.
References displaySettings(), PerseusSettings::m_centerFrequency, m_settings, and sendSettings().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 77 of file perseusgui.cpp.
|
private |
Definition at line 232 of file perseusgui.cpp.
References m_settings, PerseusSettings::m_transverterDeltaFrequency, PerseusSettings::m_transverterMode, and ui.
Referenced by displaySettings(), on_transverter_clicked(), and PerseusGui().
|
privateslot |
Definition at line 344 of file perseusgui.cpp.
References PerseusInput::MsgConfigurePerseus::create(), DeviceSampleSource::getInputMessageQueue(), m_forceSettings, m_sampleSource, m_settings, m_updateTimer, and MessageQueue::push().
Referenced by PerseusGui().
|
private |
Definition at line 179 of file perseusgui.cpp.
References arg(), DeviceUISet::getSpectrum(), m_deviceCenterFrequency, m_deviceUISet, m_sampleRate, GLSpectrum::setCenterFrequency(), GLSpectrum::setSampleRate(), and ui.
Referenced by handleInputMessages().
|
privateslot |
Definition at line 353 of file perseusgui.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 PerseusGui().
|
private |
Center frequency in device.
Definition at line 68 of file perseusgui.h.
Referenced by handleInputMessages(), and updateSampleRateAndFrequency().
|
private |
Definition at line 59 of file perseusgui.h.
Referenced by PerseusGui(), updateSampleRateAndFrequency(), and updateStatus().
|
private |
Definition at line 60 of file perseusgui.h.
Referenced by on_startStop_toggled().
|
private |
Definition at line 61 of file perseusgui.h.
Referenced by deserialize(), and updateHardware().
|
private |
Definition at line 70 of file perseusgui.h.
Referenced by handleInputMessages(), and PerseusGui().
|
private |
Definition at line 69 of file perseusgui.h.
Referenced by updateStatus().
|
private |
Definition at line 65 of file perseusgui.h.
Referenced by displaySampleRates(), getDevSampleRate(), getDevSampleRateIndex(), and PerseusGui().
|
private |
Definition at line 67 of file perseusgui.h.
Referenced by handleInputMessages(), and updateSampleRateAndFrequency().
|
private |
Definition at line 66 of file perseusgui.h.
Referenced by on_record_toggled(), on_startStop_toggled(), PerseusGui(), and updateHardware().
|
private |
Definition at line 62 of file perseusgui.h.
Referenced by deserialize(), displaySampleRates(), displaySettings(), getCenterFrequency(), handleMessage(), on_adcDither_toggled(), on_adcPreamp_toggled(), on_attenuator_currentIndexChanged(), on_centerFrequency_changed(), on_decim_currentIndexChanged(), on_LOppm_valueChanged(), on_sampleRate_currentIndexChanged(), on_transverter_clicked(), on_wideband_toggled(), openDeviceSettingsDialog(), resetToDefaults(), serialize(), setCenterFrequency(), updateFrequencyLimits(), and updateHardware().
|
private |
Definition at line 64 of file perseusgui.h.
Referenced by PerseusGui().
|
private |
Definition at line 63 of file perseusgui.h.
Referenced by PerseusGui(), sendSettings(), and updateHardware().
|
private |
Definition at line 57 of file perseusgui.h.
Referenced by displaySampleRates(), displaySettings(), handleMessage(), on_LOppm_valueChanged(), on_record_toggled(), on_resetLOppm_clicked(), on_transverter_clicked(), PerseusGui(), updateFrequencyLimits(), updateSampleRateAndFrequency(), updateStatus(), and ~PerseusGui().