mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-15 21:01:45 -05:00
Multi device support: store device tab index in plugin manager
This commit is contained in:
parent
f612327a51
commit
ef81b11640
@ -195,7 +195,7 @@ void MainWindow::addDevice()
|
|||||||
m_deviceUIs.push_back(new DeviceUISet(m_masterTimer));
|
m_deviceUIs.push_back(new DeviceUISet(m_masterTimer));
|
||||||
m_deviceUIs.back()->m_deviceEngine = dspDeviceEngine;
|
m_deviceUIs.back()->m_deviceEngine = dspDeviceEngine;
|
||||||
|
|
||||||
PluginManager *pluginManager = new PluginManager(this, dspDeviceEngine, m_deviceUIs.back()->m_spectrum);
|
PluginManager *pluginManager = new PluginManager(this, m_deviceUIs.size()-1, dspDeviceEngine, m_deviceUIs.back()->m_spectrum);
|
||||||
m_deviceUIs.back()->m_pluginManager = pluginManager;
|
m_deviceUIs.back()->m_pluginManager = pluginManager;
|
||||||
pluginManager->loadPlugins();
|
pluginManager->loadPlugins();
|
||||||
|
|
||||||
|
@ -10,10 +10,11 @@
|
|||||||
|
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
|
|
||||||
PluginManager::PluginManager(MainWindow* mainWindow, DSPDeviceEngine* dspDeviceEngine, GLSpectrum *spectrum, QObject* parent) :
|
PluginManager::PluginManager(MainWindow* mainWindow, uint deviceTabIndex, DSPDeviceEngine* dspDeviceEngine, GLSpectrum *spectrum, QObject* parent) :
|
||||||
QObject(parent),
|
QObject(parent),
|
||||||
m_pluginAPI(this, mainWindow),
|
m_pluginAPI(this, mainWindow),
|
||||||
m_mainWindow(mainWindow),
|
m_mainWindow(mainWindow),
|
||||||
|
m_deviceTabIndex(deviceTabIndex),
|
||||||
m_dspDeviceEngine(dspDeviceEngine),
|
m_dspDeviceEngine(dspDeviceEngine),
|
||||||
m_spectrum(spectrum),
|
m_spectrum(spectrum),
|
||||||
m_sampleSourceId(),
|
m_sampleSourceId(),
|
||||||
|
@ -39,7 +39,7 @@ public:
|
|||||||
|
|
||||||
typedef QList<Plugin> Plugins;
|
typedef QList<Plugin> Plugins;
|
||||||
|
|
||||||
explicit PluginManager(MainWindow* mainWindow, DSPDeviceEngine* dspDeviceEngine, GLSpectrum *spectrum, QObject* parent = NULL);
|
explicit PluginManager(MainWindow* mainWindow, uint deviceTabIndex, DSPDeviceEngine* dspDeviceEngine, GLSpectrum *spectrum, QObject* parent = NULL);
|
||||||
~PluginManager();
|
~PluginManager();
|
||||||
void loadPlugins();
|
void loadPlugins();
|
||||||
|
|
||||||
@ -147,6 +147,7 @@ private:
|
|||||||
|
|
||||||
PluginAPI m_pluginAPI;
|
PluginAPI m_pluginAPI;
|
||||||
MainWindow* m_mainWindow;
|
MainWindow* m_mainWindow;
|
||||||
|
uint m_deviceTabIndex;
|
||||||
DSPDeviceEngine* m_dspDeviceEngine;
|
DSPDeviceEngine* m_dspDeviceEngine;
|
||||||
GLSpectrum* m_spectrum;
|
GLSpectrum* m_spectrum;
|
||||||
Plugins m_plugins;
|
Plugins m_plugins;
|
||||||
|
Loading…
Reference in New Issue
Block a user