mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-04-04 10:38:45 -04:00
Removed main window reference from device sink API
This commit is contained in:
parent
7d746755c1
commit
933542e289
@ -22,12 +22,11 @@
|
||||
#include "plugin/plugininterface.h"
|
||||
#include "gui/glspectrum.h"
|
||||
#include "gui/channelwindow.h"
|
||||
#include "mainwindow.h"
|
||||
#include "settings/preset.h"
|
||||
#include "dsp/dspengine.h"
|
||||
|
||||
// TODO: extract GUI dependencies in a separate object
|
||||
DeviceSinkAPI::DeviceSinkAPI(MainWindow *mainWindow,
|
||||
int deviceTabIndex,
|
||||
DeviceSinkAPI::DeviceSinkAPI(int deviceTabIndex,
|
||||
DSPDeviceSinkEngine *deviceSinkEngine,
|
||||
GLSpectrum *glSpectrum,
|
||||
ChannelWindow *channelWindow) :
|
||||
@ -40,7 +39,7 @@ DeviceSinkAPI::DeviceSinkAPI(MainWindow *mainWindow,
|
||||
m_sampleSinkPluginInstanceUI(0),
|
||||
m_buddySharedPtr(0),
|
||||
m_isBuddyLeader(false),
|
||||
m_masterTimer(mainWindow->getMasterTimer()) // TODO: get master timer directly not from main window
|
||||
m_masterTimer(DSPEngine::instance()->getMasterTimer())
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -23,7 +23,6 @@
|
||||
#include "dsp/dspdevicesinkengine.h"
|
||||
#include "util/export.h"
|
||||
|
||||
class MainWindow;
|
||||
class GLSpectrum;
|
||||
class ChannelWindow;
|
||||
class BasebandSampleSource;
|
||||
@ -130,8 +129,7 @@ protected:
|
||||
|
||||
typedef QList<ChannelInstanceRegistration> ChannelInstanceRegistrations;
|
||||
|
||||
DeviceSinkAPI(MainWindow *mainWindow,
|
||||
int deviceTabIndex,
|
||||
DeviceSinkAPI(int deviceTabIndex,
|
||||
DSPDeviceSinkEngine *deviceEngine,
|
||||
GLSpectrum *glSpectrum,
|
||||
ChannelWindow *channelWindow);
|
||||
|
@ -39,7 +39,7 @@ DeviceSourceAPI::DeviceSourceAPI(int deviceTabIndex,
|
||||
m_sampleSourcePluginInstanceUI(0),
|
||||
m_buddySharedPtr(0),
|
||||
m_isBuddyLeader(false),
|
||||
m_masterTimer(DSPEngine::instance()->getMasterTimer()) // TODO: get master timer directly not from main window
|
||||
m_masterTimer(DSPEngine::instance()->getMasterTimer())
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -258,7 +258,7 @@ void MainWindow::addSinkDevice()
|
||||
char tabNameCStr[16];
|
||||
sprintf(tabNameCStr, "T%d", deviceTabIndex);
|
||||
|
||||
DeviceSinkAPI *deviceSinkAPI = new DeviceSinkAPI(this, deviceTabIndex, dspDeviceSinkEngine, m_deviceUIs.back()->m_spectrum, m_deviceUIs.back()->m_channelWindow);
|
||||
DeviceSinkAPI *deviceSinkAPI = new DeviceSinkAPI(deviceTabIndex, dspDeviceSinkEngine, m_deviceUIs.back()->m_spectrum, m_deviceUIs.back()->m_channelWindow);
|
||||
|
||||
m_deviceUIs.back()->m_deviceSourceAPI = 0;
|
||||
m_deviceUIs.back()->m_deviceSinkAPI = deviceSinkAPI;
|
||||
|
Loading…
Reference in New Issue
Block a user