1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-07 16:34:45 -04:00

Hack to try ChannelAnalyzer channel plugin handled via DeviceUISet

This commit is contained in:
f4exb
2017-10-31 00:07:55 +01:00
parent edc427804c
commit da5f8aa6f9
9 changed files with 72 additions and 24 deletions
+11 -2
View File
@@ -63,6 +63,16 @@ DeviceUISet::~DeviceUISet()
delete m_spectrum;
}
void DeviceUISet::addChannelMarker(ChannelMarker* channelMarker)
{
m_spectrum->addChannelMarker(channelMarker);
}
void DeviceUISet::addRollupWidget(QWidget *widget)
{
m_channelWindow->addRollupWidget(widget);
}
void DeviceUISet::registerChannelInstance(const QString& channelName, PluginInstanceGUI* pluginGUI)
{
m_channelInstanceRegistrations.append(ChannelInstanceRegistration(channelName, pluginGUI));
@@ -136,11 +146,10 @@ void DeviceUISet::loadChannelSettings(const Preset *preset, PluginAPI *pluginAPI
if((*channelRegistrations)[i].m_channelName == channelConfig.m_channel)
{
qDebug("DeviceUISet::loadChannelSettings: creating new channel [%s]", qPrintable(channelConfig.m_channel));
// TOOO: replace m_deviceSourceAPI by this
reg = ChannelInstanceRegistration(
channelConfig.m_channel,
(*channelRegistrations)[i].
m_plugin->createRxChannel(channelConfig.m_channel, m_deviceSourceAPI)
m_plugin->createRxChannel(channelConfig.m_channel, this)
);
break;
}