37 if ((deviceType == 0) || (deviceType == 2)) {
39 }
else if (deviceType == 1) {
58 font.setFamily(QStringLiteral(
"Liberation Sans"));
98 if(it->m_gui == pluginGUI)
112 if(it->m_gui == pluginGUI)
144 qDebug(
"DeviceUISet::deleteRxChennel: delete channel [%s] at %d",
157 qDebug(
"DeviceUISet::deleteTxChennel: delete channel [%s] at %d",
170 qDebug(
"DeviceUISet::loadRxChannelSettings: Loading preset [%s | %s]", qPrintable(preset->
getGroup()), qPrintable(preset->
getDescription()));
179 for(
int i = 0;
i < openChannels.count();
i++)
181 qDebug(
"DeviceUISet::loadRxChannelSettings: destroying old channel [%s]", qPrintable(openChannels[
i].m_channelName));
182 openChannels[
i].m_gui->destroy();
185 qDebug(
"DeviceUISet::loadRxChannelSettings: %d channel(s) in preset", preset->
getChannelCount());
194 for(
int i = 0;
i < channelRegistrations->count();
i++)
199 qDebug(
"DeviceUISet::loadRxChannelSettings: creating new channel [%s] from config [%s]",
200 qPrintable((*channelRegistrations)[
i].m_channelIdURI),
203 (*channelRegistrations)[
i].m_plugin->createRxChannelBS(
m_deviceAPI);
205 (*channelRegistrations)[
i].m_plugin->createRxChannelGUI(
this, rxChannel);
213 qDebug(
"DeviceUISet::loadRxChannelSettings: deserializing channel [%s]", qPrintable(channelConfig.
m_channelIdURI));
222 qDebug(
"DeviceUISet::loadRxChannelSettings: Loading preset [%s | %s] not a source preset", qPrintable(preset->
getGroup()), qPrintable(preset->
getDescription()));
240 qDebug(
"DeviceUISet::saveRxChannelSettings: not a source preset");
248 qDebug(
"DeviceUISet::loadTxChannelSettings: Loading preset [%s | %s] not a sink preset", qPrintable(preset->
getGroup()), qPrintable(preset->
getDescription()));
252 qDebug(
"DeviceUISet::loadTxChannelSettings: Loading preset [%s | %s]", qPrintable(preset->
getGroup()), qPrintable(preset->
getDescription()));
261 for(
int i = 0;
i < openChannels.count();
i++)
263 qDebug(
"DeviceUISet::loadTxChannelSettings: destroying old channel [%s]", qPrintable(openChannels[
i].m_channelName));
264 openChannels[
i].m_gui->destroy();
267 qDebug(
"DeviceUISet::loadTxChannelSettings: %d channel(s) in preset", preset->
getChannelCount());
276 for(
int i = 0;
i < channelRegistrations->count();
i++)
278 if ((*channelRegistrations)[
i].m_channelIdURI == channelConfig.
m_channelIdURI)
280 qDebug(
"DeviceUISet::loadTxChannelSettings: creating new channel [%s] from config [%s]",
281 qPrintable((*channelRegistrations)[
i].m_channelIdURI),
284 (*channelRegistrations)[
i].m_plugin->createTxChannelBS(
m_deviceAPI);
286 (*channelRegistrations)[
i].m_plugin->createTxChannelGUI(
this, txChannel);
294 qDebug(
"DeviceUISet::loadTxChannelSettings: deserializing channel [%s]", qPrintable(channelConfig.
m_channelIdURI));
307 qDebug(
"DeviceUISet::saveTxChannelSettings: not a sink preset");
340 if (m_gui && other.
m_gui)
359 if ((xChannelURI ==
"sdrangel.channel.chanalyzerng") || (xChannelURI ==
"sdrangel.channel.chanalyzer")) {
360 return registerdChannelURI ==
"sdrangel.channel.chanalyzer";
361 }
else if ((xChannelURI ==
"de.maintech.sdrangelove.channel.am") || (xChannelURI ==
"sdrangel.channel.amdemod")) {
362 return registerdChannelURI ==
"sdrangel.channel.amdemod";
363 }
else if ((xChannelURI ==
"de.maintech.sdrangelove.channel.nfm") || (xChannelURI ==
"sdrangel.channel.nfmdemod")) {
364 return registerdChannelURI ==
"sdrangel.channel.nfmdemod";
365 }
else if ((xChannelURI ==
"de.maintech.sdrangelove.channel.ssb") || (xChannelURI ==
"sdrangel.channel.ssbdemod")) {
366 return registerdChannelURI ==
"sdrangel.channel.ssbdemod";
367 }
else if ((xChannelURI ==
"de.maintech.sdrangelove.channel.wfm") || (xChannelURI ==
"sdrangel.channel.wfmdemod")) {
368 return registerdChannelURI ==
"sdrangel.channel.wfmdemod";
370 return registerdChannelURI == xChannelURI;
void removeTxChannelInstance(PluginInstanceGUI *pluginGUI)
int getChannelCount() const
bool compareRxChannelURIs(const QString ®isterdChannelURI, const QString &xChannelURI)
int m_nbAvailableRxChannels
Number of Rx channels available for selection.
ChannelRegistrations * getTxChannelRegistrations()
GLSpectrumGUI * m_spectrumGUI
QList< ChannelRegistration > ChannelRegistrations
void connectTimer(const QTimer &timer)
void loadTxChannelSettings(const Preset *preset, PluginAPI *pluginAPI)
void registerTxChannelInstance(const QString &channelName, PluginInstanceGUI *pluginGUI)
MessageQueue * getInputMessageQueue()
Get the queue for asynchronous inbound communication.
void saveTxChannelSettings(Preset *preset)
const ChannelConfig & getChannelConfig(int index) const
virtual qint64 getCenterFrequency() const =0
QList< ChannelInstanceRegistration > ChannelInstanceRegistrations
QString m_channelIdURI
Channel type ID in URI form.
bool isSourcePreset() const
ChannelInstanceRegistrations m_txChannelInstanceRegistrations
virtual QString getName() const =0
void addChannelMarker(ChannelMarker *channelMarker)
Add channel marker to spectrum.
void setBuddies(MessageQueue *messageQueue, SpectrumVis *spectrumVis, GLSpectrum *glSpectrum)
DSPDeviceSourceEngine * m_deviceSourceEngine
Fixed< IntType, IntBits > arg(const std::complex< Fixed< IntType, IntBits > > &val)
ChannelRegistrations * getRxChannelRegistrations()
SamplingDeviceControl * m_samplingDeviceControl
void addChannel(const QString &channel, const QByteArray &config)
void loadRxChannelSettings(const Preset *preset, PluginAPI *pluginAPI)
void saveRxChannelSettings(Preset *preset)
void addRollupWidget(QWidget *rollupWidget)
void registerRxChannelInstance(const QString &channelName, PluginInstanceGUI *pluginGUI)
void addRollupWidget(QWidget *widget)
Add rollup widget to channel window.
ChannelWindow * m_channelWindow
void removeRxChannelInstance(PluginInstanceGUI *pluginGUI)
ChannelInstanceRegistrations m_rxChannelInstanceRegistrations
void addChannelMarker(ChannelMarker *channelMarker)
int m_nbAvailableTxChannels
Number of Tx channels available for selection.
DeviceUISet(int tabIndex, int deviceType, QTimer &timer)
int m_nbAvailableMIMOChannels
Number of MIMO channels available for selection.
DSPDeviceSinkEngine * m_deviceSinkEngine
PluginInstanceGUI * m_gui
bool operator<(const ChannelInstanceRegistration &other) const
void deleteTxChannel(int channelIndex)
void renameRxChannelInstances()
void renameTxChannelInstances()
virtual bool deserialize(const QByteArray &data)=0
SpectrumVis * m_spectrumVis
const QString & getDescription() const
const QString & getGroup() const
DSPDeviceMIMOEngine * m_deviceMIMOEngine
void deleteRxChannel(int channelIndex)