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 <kiwisdrgui.h>
Public Member Functions | |
KiwiSDRGui (DeviceUISet *deviceUISet, QWidget *parent=0) | |
virtual | ~KiwiSDRGui () |
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) |
Public Member Functions inherited from PluginInstanceGUI | |
PluginInstanceGUI () | |
virtual | ~PluginInstanceGUI () |
Private Slots | |
void | handleInputMessages () |
void | on_startStop_toggled (bool checked) |
void | on_centerFrequency_changed (quint64 value) |
void | on_record_toggled (bool checked) |
void | on_gain_valueChanged (int value) |
void | on_agc_toggled (bool checked) |
void | on_serverAddress_returnPressed () |
void | on_serverAddressApplyButton_clicked () |
void | on_dcBlock_toggled (bool checked) |
void | openDeviceSettingsDialog (const QPoint &p) |
void | updateStatus () |
void | updateHardware () |
Private Member Functions | |
void | blockApplySettings (bool block) |
void | displaySettings () |
void | sendSettings () |
void | updateSampleRateAndFrequency () |
Private Attributes | |
Ui::KiwiSDRGui * | ui |
DeviceUISet * | m_deviceUISet |
KiwiSDRSettings | m_settings |
QTimer | m_updateTimer |
QTimer | m_statusTimer |
bool | m_doApplySettings |
bool | m_forceSettings |
DeviceSampleSource * | m_sampleSource |
std::size_t | m_tickCount |
int | m_deviceSampleRate |
quint64 | m_deviceCenterFrequency |
Center frequency in device. More... | |
int | m_lastEngineState |
MessageQueue | m_inputMessageQueue |
std::vector< QString > | m_statusColors |
std::vector< QString > | m_statusTooltips |
Definition at line 37 of file kiwisdrgui.h.
|
explicit |
Definition at line 42 of file kiwisdrgui.cpp.
References displaySettings(), DeviceAPI::getSampleSource(), ColorMapper::GrayGold, handleInputMessages(), DeviceUISet::m_deviceAPI, m_deviceUISet, m_inputMessageQueue, m_sampleSource, m_statusColors, m_statusTimer, m_statusTooltips, m_updateTimer, openDeviceSettingsDialog(), DeviceSampleSource::setMessageQueueToGUI(), ui, updateHardware(), and updateStatus().
|
virtual |
Definition at line 85 of file kiwisdrgui.cpp.
References ui.
|
inlineprivate |
Definition at line 74 of file kiwisdrgui.h.
Referenced by displaySettings(), and handleMessage().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 129 of file kiwisdrgui.cpp.
References KiwiSDRSettings::deserialize(), displaySettings(), m_forceSettings, m_settings, resetToDefaults(), and sendSettings().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 90 of file kiwisdrgui.cpp.
|
private |
Definition at line 199 of file kiwisdrgui.cpp.
References blockApplySettings(), KiwiSDRSettings::m_centerFrequency, KiwiSDRSettings::m_dcBlock, KiwiSDRSettings::m_gain, KiwiSDRSettings::m_serverAddress, m_settings, KiwiSDRSettings::m_useAGC, and ui.
Referenced by deserialize(), handleMessage(), KiwiSDRGui(), resetToDefaults(), and setCenterFrequency().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 112 of file kiwisdrgui.cpp.
References KiwiSDRSettings::m_centerFrequency, and m_settings.
|
inlinevirtual |
|
virtual |
Implements PluginInstanceGUI.
Definition at line 100 of file kiwisdrgui.cpp.
|
privateslot |
Definition at line 296 of file kiwisdrgui.cpp.
References DSPSignalNotification::getCenterFrequency(), DSPSignalNotification::getSampleRate(), handleMessage(), m_deviceCenterFrequency, m_deviceSampleRate, m_inputMessageQueue, Message::match(), MessageQueue::pop(), and updateSampleRateAndFrequency().
Referenced by KiwiSDRGui().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 260 of file kiwisdrgui.cpp.
References blockApplySettings(), displaySettings(), KiwiSDRInput::MsgConfigureKiwiSDR::getSettings(), KiwiSDRInput::MsgStartStop::getStartStop(), KiwiSDRInput::MsgSetStatus::getStatus(), m_settings, m_statusColors, m_statusTooltips, Message::match(), and ui.
Referenced by handleInputMessages().
|
privateslot |
Definition at line 186 of file kiwisdrgui.cpp.
References m_settings, KiwiSDRSettings::m_useAGC, and sendSettings().
|
privateslot |
Definition at line 151 of file kiwisdrgui.cpp.
References KiwiSDRSettings::m_centerFrequency, m_settings, and sendSettings().
|
privateslot |
Definition at line 168 of file kiwisdrgui.cpp.
References KiwiSDRSettings::m_dcBlock, m_settings, and sendSettings().
|
privateslot |
Definition at line 192 of file kiwisdrgui.cpp.
References KiwiSDRSettings::m_gain, m_settings, sendSettings(), and ui.
|
privateslot |
Definition at line 174 of file kiwisdrgui.cpp.
References KiwiSDRInput::MsgFileRecord::create(), DeviceSampleSource::getInputMessageQueue(), m_sampleSource, MessageQueue::push(), and ui.
|
privateslot |
Definition at line 157 of file kiwisdrgui.cpp.
References on_serverAddressApplyButton_clicked().
|
privateslot |
Definition at line 162 of file kiwisdrgui.cpp.
References KiwiSDRSettings::m_serverAddress, m_settings, sendSettings(), and ui.
Referenced by on_serverAddress_returnPressed().
|
privateslot |
Definition at line 142 of file kiwisdrgui.cpp.
References KiwiSDRInput::MsgStartStop::create(), DeviceSampleSource::getInputMessageQueue(), m_doApplySettings, m_sampleSource, and MessageQueue::push().
|
privateslot |
Definition at line 331 of file kiwisdrgui.cpp.
References BasicDeviceSettingsDialog::getReverseAPIAddress(), BasicDeviceSettingsDialog::getReverseAPIDeviceIndex(), BasicDeviceSettingsDialog::getReverseAPIPort(), KiwiSDRSettings::m_reverseAPIAddress, KiwiSDRSettings::m_reverseAPIDeviceIndex, KiwiSDRSettings::m_reverseAPIPort, m_settings, KiwiSDRSettings::m_useReverseAPI, sendSettings(), BasicDeviceSettingsDialog::setReverseAPIAddress(), BasicDeviceSettingsDialog::setReverseAPIDeviceIndex(), BasicDeviceSettingsDialog::setReverseAPIPort(), BasicDeviceSettingsDialog::setUseReverseAPI(), and BasicDeviceSettingsDialog::useReverseAPI().
Referenced by KiwiSDRGui().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 105 of file kiwisdrgui.cpp.
References displaySettings(), m_settings, KiwiSDRSettings::resetToDefaults(), and sendSettings().
Referenced by deserialize().
|
private |
Definition at line 213 of file kiwisdrgui.cpp.
References m_updateTimer.
Referenced by deserialize(), on_agc_toggled(), on_centerFrequency_changed(), on_dcBlock_toggled(), on_gain_valueChanged(), on_serverAddressApplyButton_clicked(), openDeviceSettingsDialog(), resetToDefaults(), and setCenterFrequency().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 124 of file kiwisdrgui.cpp.
References m_settings, and KiwiSDRSettings::serialize().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 117 of file kiwisdrgui.cpp.
References displaySettings(), KiwiSDRSettings::m_centerFrequency, m_settings, and sendSettings().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 95 of file kiwisdrgui.cpp.
|
privateslot |
Definition at line 220 of file kiwisdrgui.cpp.
References KiwiSDRInput::MsgConfigureKiwiSDR::create(), DeviceSampleSource::getInputMessageQueue(), m_doApplySettings, m_forceSettings, m_sampleSource, m_settings, m_updateTimer, and MessageQueue::push().
Referenced by KiwiSDRGui().
|
private |
Definition at line 324 of file kiwisdrgui.cpp.
References arg(), DeviceUISet::getSpectrum(), m_deviceCenterFrequency, m_deviceSampleRate, m_deviceUISet, GLSpectrum::setCenterFrequency(), GLSpectrum::setSampleRate(), and ui.
Referenced by handleInputMessages().
|
privateslot |
Definition at line 231 of file kiwisdrgui.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 KiwiSDRGui().
|
private |
Center frequency in device.
Definition at line 68 of file kiwisdrgui.h.
Referenced by handleInputMessages(), and updateSampleRateAndFrequency().
|
private |
Definition at line 67 of file kiwisdrgui.h.
Referenced by handleInputMessages(), and updateSampleRateAndFrequency().
|
private |
Definition at line 59 of file kiwisdrgui.h.
Referenced by KiwiSDRGui(), updateSampleRateAndFrequency(), and updateStatus().
|
private |
Definition at line 63 of file kiwisdrgui.h.
Referenced by on_startStop_toggled(), and updateHardware().
|
private |
Definition at line 64 of file kiwisdrgui.h.
Referenced by deserialize(), and updateHardware().
|
private |
Definition at line 70 of file kiwisdrgui.h.
Referenced by handleInputMessages(), and KiwiSDRGui().
|
private |
Definition at line 69 of file kiwisdrgui.h.
Referenced by updateStatus().
|
private |
Definition at line 65 of file kiwisdrgui.h.
Referenced by KiwiSDRGui(), on_record_toggled(), on_startStop_toggled(), and updateHardware().
|
private |
Definition at line 60 of file kiwisdrgui.h.
Referenced by deserialize(), displaySettings(), getCenterFrequency(), handleMessage(), on_agc_toggled(), on_centerFrequency_changed(), on_dcBlock_toggled(), on_gain_valueChanged(), on_serverAddressApplyButton_clicked(), openDeviceSettingsDialog(), resetToDefaults(), serialize(), setCenterFrequency(), and updateHardware().
|
private |
Definition at line 71 of file kiwisdrgui.h.
Referenced by handleMessage(), and KiwiSDRGui().
|
private |
Definition at line 62 of file kiwisdrgui.h.
Referenced by KiwiSDRGui().
|
private |
Definition at line 72 of file kiwisdrgui.h.
Referenced by handleMessage(), and KiwiSDRGui().
|
private |
Definition at line 66 of file kiwisdrgui.h.
|
private |
Definition at line 61 of file kiwisdrgui.h.
Referenced by KiwiSDRGui(), sendSettings(), and updateHardware().
|
private |
Definition at line 57 of file kiwisdrgui.h.
Referenced by displaySettings(), handleMessage(), KiwiSDRGui(), on_gain_valueChanged(), on_record_toggled(), on_serverAddressApplyButton_clicked(), updateSampleRateAndFrequency(), updateStatus(), and ~KiwiSDRGui().