1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-01 13:47:01 -04:00

Multi device support: channel plugin per device mechanism validation with AM demod

This commit is contained in:
f4exb
2016-05-16 03:21:21 +02:00
parent 7412ee0d54
commit bbb4bc28b4
20 changed files with 102 additions and 53 deletions
+21 -2
View File
@@ -15,10 +15,13 @@
///////////////////////////////////////////////////////////////////////////////////
#include "device/deviceapi.h"
#include "gui/glspectrum.h"
#include "gui/channelwindow.h"
DeviceAPI::DeviceAPI(DSPDeviceEngine *deviceEngine, GLSpectrum *glSpectrum) :
DeviceAPI::DeviceAPI(DSPDeviceEngine *deviceEngine, GLSpectrum *glSpectrum, ChannelWindow *channelWindow) :
m_deviceEngine(deviceEngine),
m_spectrum(glSpectrum)
m_spectrum(glSpectrum),
m_channelWindow(channelWindow)
{
}
@@ -100,3 +103,19 @@ GLSpectrum *DeviceAPI::getSpectrum()
{
return m_spectrum;
}
void DeviceAPI::addChannelMarker(ChannelMarker* channelMarker)
{
m_spectrum->addChannelMarker(channelMarker);
}
ChannelWindow *DeviceAPI::getChannelWindow()
{
return m_channelWindow;
}
void DeviceAPI::addRollupWidget(QWidget *widget)
{
m_channelWindow->addRollupWidget(widget);
}