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 <deviceuiset.h>
Classes | |
struct | ChannelInstanceRegistration |
Private Types | |
typedef QList< ChannelInstanceRegistration > | ChannelInstanceRegistrations |
Private Member Functions | |
void | renameRxChannelInstances () |
void | renameTxChannelInstances () |
bool | compareRxChannelURIs (const QString ®isterdChannelURI, const QString &xChannelURI) |
Private Attributes | |
ChannelInstanceRegistrations | m_rxChannelInstanceRegistrations |
ChannelInstanceRegistrations | m_txChannelInstanceRegistrations |
int | m_deviceTabIndex |
int | m_nbAvailableRxChannels |
Number of Rx channels available for selection. More... | |
int | m_nbAvailableTxChannels |
Number of Tx channels available for selection. More... | |
int | m_nbAvailableMIMOChannels |
Number of MIMO channels available for selection. More... | |
Definition at line 40 of file deviceuiset.h.
|
private |
Definition at line 103 of file deviceuiset.h.
DeviceUISet::DeviceUISet | ( | int | tabIndex, |
int | deviceType, | ||
QTimer & | timer | ||
) |
Definition at line 34 of file deviceuiset.cpp.
References GLSpectrum::connectTimer(), BasebandSampleSink::getInputMessageQueue(), m_channelWindow, m_deviceAPI, m_deviceMIMOEngine, m_deviceSinkEngine, m_deviceSourceEngine, m_deviceTabIndex, m_nbAvailableMIMOChannels, m_nbAvailableRxChannels, m_nbAvailableTxChannels, m_samplingDeviceControl, m_spectrum, m_spectrumGUI, m_spectrumVis, SDR_RX_SCALEF, SDR_TX_SCALEF, and GLSpectrumGUI::setBuddies().
DeviceUISet::~DeviceUISet | ( | ) |
Definition at line 63 of file deviceuiset.cpp.
References m_channelWindow, m_samplingDeviceControl, m_spectrum, m_spectrumGUI, and m_spectrumVis.
void DeviceUISet::addChannelMarker | ( | ChannelMarker * | channelMarker | ) |
Add channel marker to spectrum.
Definition at line 72 of file deviceuiset.cpp.
References GLSpectrum::addChannelMarker(), and m_spectrum.
Referenced by AMDemodGUI::AMDemodGUI(), AMModGUI::AMModGUI(), ATVDemodGUI::ATVDemodGUI(), ATVModGUI::ATVModGUI(), BFMDemodGUI::BFMDemodGUI(), ChannelAnalyzerGUI::ChannelAnalyzerGUI(), DATVDemodGUI::DATVDemodGUI(), DSDDemodGUI::DSDDemodGUI(), FileSourceGUI::FileSourceGUI(), FreeDVDemodGUI::FreeDVDemodGUI(), FreeDVModGUI::FreeDVModGUI(), FreqTrackerGUI::FreqTrackerGUI(), LocalSinkGUI::LocalSinkGUI(), LocalSourceGUI::LocalSourceGUI(), LoRaDemodGUI::LoRaDemodGUI(), NFMDemodGUI::NFMDemodGUI(), NFMModGUI::NFMModGUI(), RemoteSinkGUI::RemoteSinkGUI(), RemoteSourceGUI::RemoteSourceGUI(), SSBDemodGUI::SSBDemodGUI(), SSBModGUI::SSBModGUI(), UDPSinkGUI::UDPSinkGUI(), UDPSourceGUI::UDPSourceGUI(), WFMDemodGUI::WFMDemodGUI(), and WFMModGUI::WFMModGUI().
void DeviceUISet::addRollupWidget | ( | QWidget * | widget | ) |
Add rollup widget to channel window.
Definition at line 77 of file deviceuiset.cpp.
References ChannelWindow::addRollupWidget(), and m_channelWindow.
Referenced by AMDemodGUI::AMDemodGUI(), AMModGUI::AMModGUI(), ATVDemodGUI::ATVDemodGUI(), ATVModGUI::ATVModGUI(), BFMDemodGUI::BFMDemodGUI(), ChannelAnalyzerGUI::ChannelAnalyzerGUI(), DATVDemodGUI::DATVDemodGUI(), DSDDemodGUI::DSDDemodGUI(), FileSourceGUI::FileSourceGUI(), FreeDVDemodGUI::FreeDVDemodGUI(), FreeDVModGUI::FreeDVModGUI(), FreqTrackerGUI::FreqTrackerGUI(), LocalSinkGUI::LocalSinkGUI(), LocalSourceGUI::LocalSourceGUI(), LoRaDemodGUI::LoRaDemodGUI(), NFMDemodGUI::NFMDemodGUI(), NFMModGUI::NFMModGUI(), RemoteSinkGUI::RemoteSinkGUI(), RemoteSourceGUI::RemoteSourceGUI(), SSBDemodGUI::SSBDemodGUI(), SSBModGUI::SSBModGUI(), UDPSinkGUI::UDPSinkGUI(), UDPSourceGUI::UDPSourceGUI(), WFMDemodGUI::WFMDemodGUI(), and WFMModGUI::WFMModGUI().
|
private |
Use this function to support possible older identifiers in presets
Definition at line 357 of file deviceuiset.cpp.
Referenced by loadRxChannelSettings().
void DeviceUISet::deleteRxChannel | ( | int | channelIndex | ) |
Definition at line 140 of file deviceuiset.cpp.
References m_rxChannelInstanceRegistrations, and renameRxChannelInstances().
Referenced by MainWindow::deleteChannel().
void DeviceUISet::deleteTxChannel | ( | int | channelIndex | ) |
Definition at line 153 of file deviceuiset.cpp.
References m_txChannelInstanceRegistrations, and renameTxChannelInstances().
Referenced by MainWindow::deleteChannel().
void DeviceUISet::freeRxChannels | ( | ) |
Definition at line 122 of file deviceuiset.cpp.
References i, and m_rxChannelInstanceRegistrations.
void DeviceUISet::freeTxChannels | ( | ) |
Definition at line 131 of file deviceuiset.cpp.
References i, and m_txChannelInstanceRegistrations.
|
inline |
Definition at line 82 of file deviceuiset.h.
|
inline |
Definition at line 80 of file deviceuiset.h.
Referenced by MainWindow::channelAddClicked().
|
inline |
Definition at line 81 of file deviceuiset.h.
Referenced by MainWindow::channelAddClicked().
|
inline |
Definition at line 61 of file deviceuiset.h.
|
inline |
Definition at line 62 of file deviceuiset.h.
|
inline |
Direct spectrum getter.
Definition at line 57 of file deviceuiset.h.
Referenced by RemoteOutputSinkGui::analyzeApiReply(), RemoteOutputSinkGui::RemoteOutputSinkGui(), RemoteOutputSinkGui::updateSampleRate(), FCDProPlusGui::updateSampleRateAndFrequency(), FCDProGui::updateSampleRateAndFrequency(), SDRPlayGui::updateSampleRateAndFrequency(), TestSourceGui::updateSampleRateAndFrequency(), BladeRF2InputGui::updateSampleRateAndFrequency(), BladeRF2OutputGui::updateSampleRateAndFrequency(), Bladerf1OutputGui::updateSampleRateAndFrequency(), Bladerf1InputGui::updateSampleRateAndFrequency(), PlutoSDROutputGUI::updateSampleRateAndFrequency(), AirspyGui::updateSampleRateAndFrequency(), TestMIGui::updateSampleRateAndFrequency(), RTLSDRGui::updateSampleRateAndFrequency(), KiwiSDRGui::updateSampleRateAndFrequency(), PerseusGui::updateSampleRateAndFrequency(), PlutoSDRInputGui::updateSampleRateAndFrequency(), AirspyHFGui::updateSampleRateAndFrequency(), LimeSDRInputGUI::updateSampleRateAndFrequency(), XTRXOutputGUI::updateSampleRateAndFrequency(), LimeSDROutputGUI::updateSampleRateAndFrequency(), XTRXInputGUI::updateSampleRateAndFrequency(), FileInputGUI::updateSampleRateAndFrequency(), FileSinkGui::updateSampleRateAndFrequency(), HackRFInputGui::updateSampleRateAndFrequency(), HackRFOutputGui::updateSampleRateAndFrequency(), LocalOutputGui::updateSampleRateAndFrequency(), SoapySDRInputGui::updateSampleRateAndFrequency(), SoapySDROutputGui::updateSampleRateAndFrequency(), LocalInputGui::updateSampleRateAndFrequency(), and RemoteInputGui::updateSampleRateAndFrequency().
Definition at line 166 of file deviceuiset.cpp.
References compareRxChannelURIs(), PluginInstanceGUI::deserialize(), Preset::getChannelConfig(), Preset::getChannelCount(), Preset::getDescription(), Preset::getGroup(), PluginAPI::getRxChannelRegistrations(), i, Preset::isSourcePreset(), Preset::ChannelConfig::m_channelIdURI, Preset::ChannelConfig::m_config, m_deviceAPI, DeviceUISet::ChannelInstanceRegistration::m_gui, m_rxChannelInstanceRegistrations, and renameRxChannelInstances().
Referenced by MainWindow::loadPresetSettings().
Definition at line 244 of file deviceuiset.cpp.
References PluginInstanceGUI::deserialize(), Preset::getChannelConfig(), Preset::getChannelCount(), Preset::getDescription(), Preset::getGroup(), PluginAPI::getTxChannelRegistrations(), i, Preset::isSourcePreset(), Preset::ChannelConfig::m_channelIdURI, Preset::ChannelConfig::m_config, m_deviceAPI, DeviceUISet::ChannelInstanceRegistration::m_gui, m_txChannelInstanceRegistrations, and renameTxChannelInstances().
Referenced by MainWindow::loadPresetSettings().
void DeviceUISet::registerRxChannelInstance | ( | const QString & | channelName, |
PluginInstanceGUI * | pluginGUI | ||
) |
Definition at line 82 of file deviceuiset.cpp.
References m_rxChannelInstanceRegistrations, and renameRxChannelInstances().
Referenced by AMDemodGUI::AMDemodGUI(), ATVDemodGUI::ATVDemodGUI(), BFMDemodGUI::BFMDemodGUI(), ChannelAnalyzerGUI::ChannelAnalyzerGUI(), DATVDemodGUI::DATVDemodGUI(), DSDDemodGUI::DSDDemodGUI(), FreeDVDemodGUI::FreeDVDemodGUI(), FreqTrackerGUI::FreqTrackerGUI(), LocalSinkGUI::LocalSinkGUI(), LoRaDemodGUI::LoRaDemodGUI(), NFMDemodGUI::NFMDemodGUI(), RemoteSinkGUI::RemoteSinkGUI(), SSBDemodGUI::SSBDemodGUI(), UDPSinkGUI::UDPSinkGUI(), and WFMDemodGUI::WFMDemodGUI().
void DeviceUISet::registerTxChannelInstance | ( | const QString & | channelName, |
PluginInstanceGUI * | pluginGUI | ||
) |
Definition at line 88 of file deviceuiset.cpp.
References m_txChannelInstanceRegistrations, and renameTxChannelInstances().
Referenced by AMModGUI::AMModGUI(), ATVModGUI::ATVModGUI(), FileSourceGUI::FileSourceGUI(), FreeDVModGUI::FreeDVModGUI(), LocalSourceGUI::LocalSourceGUI(), NFMModGUI::NFMModGUI(), RemoteSourceGUI::RemoteSourceGUI(), SSBModGUI::SSBModGUI(), UDPSourceGUI::UDPSourceGUI(), and WFMModGUI::WFMModGUI().
void DeviceUISet::removeRxChannelInstance | ( | PluginInstanceGUI * | pluginGUI | ) |
Definition at line 94 of file deviceuiset.cpp.
References m_rxChannelInstanceRegistrations, and renameRxChannelInstances().
Referenced by AMDemodGUI::~AMDemodGUI(), ATVDemodGUI::~ATVDemodGUI(), BFMDemodGUI::~BFMDemodGUI(), ChannelAnalyzerGUI::~ChannelAnalyzerGUI(), DATVDemodGUI::~DATVDemodGUI(), DSDDemodGUI::~DSDDemodGUI(), FreeDVDemodGUI::~FreeDVDemodGUI(), FreqTrackerGUI::~FreqTrackerGUI(), LocalSinkGUI::~LocalSinkGUI(), LoRaDemodGUI::~LoRaDemodGUI(), NFMDemodGUI::~NFMDemodGUI(), RemoteSinkGUI::~RemoteSinkGUI(), SSBDemodGUI::~SSBDemodGUI(), UDPSinkGUI::~UDPSinkGUI(), and WFMDemodGUI::~WFMDemodGUI().
void DeviceUISet::removeTxChannelInstance | ( | PluginInstanceGUI * | pluginGUI | ) |
Definition at line 108 of file deviceuiset.cpp.
References m_txChannelInstanceRegistrations, and renameTxChannelInstances().
Referenced by AMModGUI::~AMModGUI(), ATVModGUI::~ATVModGUI(), FileSourceGUI::~FileSourceGUI(), FreeDVModGUI::~FreeDVModGUI(), LocalSourceGUI::~LocalSourceGUI(), NFMModGUI::~NFMModGUI(), RemoteSourceGUI::~RemoteSourceGUI(), SSBModGUI::~SSBModGUI(), UDPSourceGUI::~UDPSourceGUI(), and WFMModGUI::~WFMModGUI().
|
private |
Definition at line 321 of file deviceuiset.cpp.
References arg(), i, and m_rxChannelInstanceRegistrations.
Referenced by deleteRxChannel(), loadRxChannelSettings(), registerRxChannelInstance(), and removeRxChannelInstance().
|
private |
Definition at line 329 of file deviceuiset.cpp.
References arg(), i, and m_txChannelInstanceRegistrations.
Referenced by deleteTxChannel(), loadTxChannelSettings(), registerTxChannelInstance(), and removeTxChannelInstance().
void DeviceUISet::saveRxChannelSettings | ( | Preset * | preset | ) |
Definition at line 226 of file deviceuiset.cpp.
References Preset::addChannel(), i, Preset::isSourcePreset(), and m_rxChannelInstanceRegistrations.
Referenced by MainWindow::savePresetSettings().
void DeviceUISet::saveTxChannelSettings | ( | Preset * | preset | ) |
Definition at line 303 of file deviceuiset.cpp.
References Preset::addChannel(), i, Preset::isSourcePreset(), and m_txChannelInstanceRegistrations.
Referenced by MainWindow::savePresetSettings().
|
inline |
Definition at line 79 of file deviceuiset.h.
|
inline |
Definition at line 77 of file deviceuiset.h.
|
inline |
Definition at line 78 of file deviceuiset.h.
ChannelWindow* DeviceUISet::m_channelWindow |
Definition at line 46 of file deviceuiset.h.
Referenced by MainWindow::addChannelRollup(), addRollupWidget(), DeviceUISet(), and ~DeviceUISet().
DeviceAPI* DeviceUISet::m_deviceAPI |
Definition at line 48 of file deviceuiset.h.
Referenced by AirspyGui::AirspyGui(), AirspyHFGui::AirspyHFGui(), Bladerf1InputGui::Bladerf1InputGui(), Bladerf1OutputGui::Bladerf1OutputGui(), BladeRF2InputGui::BladeRF2InputGui(), BladeRF2OutputGui::BladeRF2OutputGui(), MainWindow::channelAddClicked(), WebAPIAdapterGUI::devicesetChannelReportGet(), WebAPIAdapterGUI::devicesetChannelSettingsGet(), WebAPIAdapterGUI::devicesetChannelSettingsPutPatch(), WebAPIAdapterGUI::devicesetDeviceReportGet(), WebAPIAdapterGUI::devicesetDeviceRunDelete(), WebAPIAdapterGUI::devicesetDeviceRunGet(), WebAPIAdapterGUI::devicesetDeviceRunPost(), WebAPIAdapterGUI::devicesetDeviceSettingsGet(), WebAPIAdapterGUI::devicesetDeviceSettingsPutPatch(), DeviceUISet(), FCDProGui::FCDProGui(), FCDProPlusGui::FCDProPlusGui(), FileInputGUI::FileInputGUI(), FileSinkGui::FileSinkGui(), FileSourceGUI::FileSourceGUI(), WebAPIAdapterGUI::getChannelsDetail(), WebAPIAdapterGUI::getDeviceSet(), HackRFInputGui::HackRFInputGui(), HackRFOutputGui::HackRFOutputGui(), KiwiSDRGui::KiwiSDRGui(), LimeSDRInputGUI::LimeSDRInputGUI(), LimeSDROutputGUI::LimeSDROutputGUI(), MainWindow::loadPresetSettings(), loadRxChannelSettings(), loadTxChannelSettings(), LocalInputGui::LocalInputGui(), LocalOutputGui::LocalOutputGui(), TestMIGui::on_spectrumSource_currentIndexChanged(), TestMIGui::on_streamIndex_currentIndexChanged(), PerseusGui::PerseusGui(), PlutoSDRInputGui::PlutoSDRInputGui(), PlutoSDROutputGUI::PlutoSDROutputGUI(), RemoteInputGui::RemoteInputGui(), RemoteOutputSinkGui::RemoteOutputSinkGui(), RemoteSourceGUI::RemoteSourceGUI(), RTLSDRGui::RTLSDRGui(), MainWindow::sampleMIMOChanged(), MainWindow::sampleSinkChanged(), MainWindow::sampleSourceChanged(), MainWindow::savePresetSettings(), SDRPlayGui::SDRPlayGui(), SoapySDRInputGui::SoapySDRInputGui(), SoapySDROutputGui::SoapySDROutputGui(), TestMIGui::TestMIGui(), TestSourceGui::TestSourceGui(), SDRPlayGui::updateStatus(), Bladerf1OutputGui::updateStatus(), KiwiSDRGui::updateStatus(), BladeRF2OutputGui::updateStatus(), LocalOutputGui::updateStatus(), PerseusGui::updateStatus(), FileSinkGui::updateStatus(), FCDProPlusGui::updateStatus(), Bladerf1InputGui::updateStatus(), AirspyGui::updateStatus(), PlutoSDROutputGUI::updateStatus(), BladeRF2InputGui::updateStatus(), AirspyHFGui::updateStatus(), XTRXOutputGUI::updateStatus(), FileInputGUI::updateStatus(), RTLSDRGui::updateStatus(), TestSourceGui::updateStatus(), HackRFOutputGui::updateStatus(), LimeSDROutputGUI::updateStatus(), PlutoSDRInputGui::updateStatus(), HackRFInputGui::updateStatus(), FCDProGui::updateStatus(), XTRXInputGUI::updateStatus(), TestMIGui::updateStatus(), LimeSDRInputGUI::updateStatus(), LocalInputGui::updateStatus(), RemoteInputGui::updateStatus(), SoapySDROutputGui::updateStatus(), SoapySDRInputGui::updateStatus(), RemoteOutputSinkGui::updateStatus(), XTRXInputGUI::XTRXInputGUI(), and XTRXOutputGUI::XTRXOutputGUI().
DSPDeviceMIMOEngine* DeviceUISet::m_deviceMIMOEngine |
Definition at line 51 of file deviceuiset.h.
Referenced by MainWindow::channelAddClicked(), DeviceUISet(), AMDemodGUI::displayStreamIndex(), and AMDemodGUI::onMenuDialogCalled().
DSPDeviceSinkEngine* DeviceUISet::m_deviceSinkEngine |
Definition at line 50 of file deviceuiset.h.
Referenced by MainWindow::channelAddClicked(), MainWindow::deleteChannel(), WebAPIAdapterGUI::devicesetChannelDelete(), WebAPIAdapterGUI::devicesetChannelPost(), WebAPIAdapterGUI::devicesetChannelReportGet(), WebAPIAdapterGUI::devicesetChannelSettingsGet(), WebAPIAdapterGUI::devicesetChannelSettingsPutPatch(), WebAPIAdapterGUI::devicesetDevicePut(), WebAPIAdapterGUI::devicesetDeviceReportGet(), WebAPIAdapterGUI::devicesetDeviceRunDelete(), WebAPIAdapterGUI::devicesetDeviceRunGet(), WebAPIAdapterGUI::devicesetDeviceRunPost(), WebAPIAdapterGUI::devicesetDeviceSettingsGet(), WebAPIAdapterGUI::devicesetDeviceSettingsPutPatch(), DeviceUISet(), WebAPIAdapterGUI::getChannelsDetail(), WebAPIAdapterGUI::getDeviceSet(), WebAPIAdapterGUI::instancePresetPatch(), WebAPIAdapterGUI::instancePresetPost(), WebAPIAdapterGUI::instancePresetPut(), MainWindow::loadPresetSettings(), and MainWindow::savePresetSettings().
DSPDeviceSourceEngine* DeviceUISet::m_deviceSourceEngine |
Definition at line 49 of file deviceuiset.h.
Referenced by MainWindow::channelAddClicked(), MainWindow::deleteChannel(), WebAPIAdapterGUI::devicesetChannelDelete(), WebAPIAdapterGUI::devicesetChannelPost(), WebAPIAdapterGUI::devicesetChannelReportGet(), WebAPIAdapterGUI::devicesetChannelSettingsGet(), WebAPIAdapterGUI::devicesetChannelSettingsPutPatch(), WebAPIAdapterGUI::devicesetDevicePut(), WebAPIAdapterGUI::devicesetDeviceReportGet(), WebAPIAdapterGUI::devicesetDeviceRunDelete(), WebAPIAdapterGUI::devicesetDeviceRunGet(), WebAPIAdapterGUI::devicesetDeviceRunPost(), WebAPIAdapterGUI::devicesetDeviceSettingsGet(), WebAPIAdapterGUI::devicesetDeviceSettingsPutPatch(), DeviceUISet(), WebAPIAdapterGUI::getChannelsDetail(), WebAPIAdapterGUI::getDeviceSet(), WebAPIAdapterGUI::instancePresetPatch(), WebAPIAdapterGUI::instancePresetPost(), WebAPIAdapterGUI::instancePresetPut(), MainWindow::loadPresetSettings(), and MainWindow::savePresetSettings().
|
private |
Definition at line 107 of file deviceuiset.h.
Referenced by DeviceUISet().
QByteArray DeviceUISet::m_mainWindowState |
Definition at line 52 of file deviceuiset.h.
Referenced by MainWindow::tabInputViewIndexChanged().
|
private |
Number of MIMO channels available for selection.
Definition at line 110 of file deviceuiset.h.
Referenced by DeviceUISet().
|
private |
Number of Rx channels available for selection.
Definition at line 108 of file deviceuiset.h.
Referenced by DeviceUISet().
|
private |
Number of Tx channels available for selection.
Definition at line 109 of file deviceuiset.h.
Referenced by DeviceUISet().
|
private |
Definition at line 105 of file deviceuiset.h.
Referenced by deleteRxChannel(), freeRxChannels(), loadRxChannelSettings(), registerRxChannelInstance(), removeRxChannelInstance(), renameRxChannelInstances(), and saveRxChannelSettings().
SamplingDeviceControl* DeviceUISet::m_samplingDeviceControl |
Definition at line 47 of file deviceuiset.h.
Referenced by MainWindow::channelAddClicked(), DeviceUISet(), MainWindow::handleMessage(), MainWindow::sampleMIMOChanged(), MainWindow::sampleSinkChanged(), MainWindow::sampleSourceChanged(), and ~DeviceUISet().
GLSpectrum* DeviceUISet::m_spectrum |
Definition at line 44 of file deviceuiset.h.
Referenced by addChannelMarker(), DeviceUISet(), TestMIGui::on_spectrumSource_currentIndexChanged(), TestMIGui::on_streamIndex_currentIndexChanged(), and ~DeviceUISet().
GLSpectrumGUI* DeviceUISet::m_spectrumGUI |
Definition at line 45 of file deviceuiset.h.
Referenced by DeviceUISet(), MainWindow::loadPresetSettings(), MainWindow::savePresetSettings(), and ~DeviceUISet().
SpectrumVis* DeviceUISet::m_spectrumVis |
Definition at line 43 of file deviceuiset.h.
Referenced by DeviceUISet(), and ~DeviceUISet().
|
private |
Definition at line 106 of file deviceuiset.h.
Referenced by deleteTxChannel(), freeTxChannels(), loadTxChannelSettings(), registerTxChannelInstance(), removeTxChannelInstance(), renameTxChannelInstances(), and saveTxChannelSettings().