mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-26 17:58:43 -05:00
Removed useless reference to device source and sink APIs in the sampling device control widget
This commit is contained in:
parent
7370eba0f7
commit
aea8de22a1
@ -23,9 +23,7 @@
|
|||||||
SamplingDeviceControl::SamplingDeviceControl(QWidget* parent) :
|
SamplingDeviceControl::SamplingDeviceControl(QWidget* parent) :
|
||||||
QWidget(parent),
|
QWidget(parent),
|
||||||
ui(new Ui::SamplingDeviceControl),
|
ui(new Ui::SamplingDeviceControl),
|
||||||
m_pluginManager(0),
|
m_pluginManager(0)
|
||||||
m_deviceSourceAPI(0),
|
|
||||||
m_deviceSinkAPI(0)
|
|
||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
}
|
}
|
||||||
|
@ -41,8 +41,6 @@ public:
|
|||||||
~SamplingDeviceControl();
|
~SamplingDeviceControl();
|
||||||
|
|
||||||
void setPluginManager(PluginManager *pluginManager) { m_pluginManager = pluginManager; }
|
void setPluginManager(PluginManager *pluginManager) { m_pluginManager = pluginManager; }
|
||||||
void setDeviceAPI(DeviceSourceAPI *deviceAPI) { m_deviceSourceAPI = deviceAPI; }
|
|
||||||
void setDeviceAPI(DeviceSinkAPI *deviceAPI) { m_deviceSinkAPI = deviceAPI; }
|
|
||||||
QComboBox *getDeviceSelector();
|
QComboBox *getDeviceSelector();
|
||||||
QPushButton *getDeviceSelectionConfirm();
|
QPushButton *getDeviceSelectionConfirm();
|
||||||
QComboBox *getChannelSelector();
|
QComboBox *getChannelSelector();
|
||||||
@ -51,8 +49,6 @@ public:
|
|||||||
private:
|
private:
|
||||||
Ui::SamplingDeviceControl* ui;
|
Ui::SamplingDeviceControl* ui;
|
||||||
PluginManager *m_pluginManager;
|
PluginManager *m_pluginManager;
|
||||||
DeviceSourceAPI *m_deviceSourceAPI;
|
|
||||||
DeviceSinkAPI *m_deviceSinkAPI;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -214,7 +214,6 @@ void MainWindow::addSourceDevice()
|
|||||||
DeviceSourceAPI *deviceSourceAPI = new DeviceSourceAPI(deviceTabIndex, dspDeviceSourceEngine);
|
DeviceSourceAPI *deviceSourceAPI = new DeviceSourceAPI(deviceTabIndex, dspDeviceSourceEngine);
|
||||||
|
|
||||||
m_deviceUIs.back()->m_deviceSourceAPI = deviceSourceAPI;
|
m_deviceUIs.back()->m_deviceSourceAPI = deviceSourceAPI;
|
||||||
m_deviceUIs.back()->m_samplingDeviceControl->setDeviceAPI(deviceSourceAPI);
|
|
||||||
m_deviceUIs.back()->m_samplingDeviceControl->setPluginManager(m_pluginManager);
|
m_deviceUIs.back()->m_samplingDeviceControl->setPluginManager(m_pluginManager);
|
||||||
QList<QString> channelNames;
|
QList<QString> channelNames;
|
||||||
m_pluginManager->listRxChannels(channelNames);
|
m_pluginManager->listRxChannels(channelNames);
|
||||||
@ -280,7 +279,6 @@ void MainWindow::addSinkDevice()
|
|||||||
|
|
||||||
m_deviceUIs.back()->m_deviceSourceAPI = 0;
|
m_deviceUIs.back()->m_deviceSourceAPI = 0;
|
||||||
m_deviceUIs.back()->m_deviceSinkAPI = deviceSinkAPI;
|
m_deviceUIs.back()->m_deviceSinkAPI = deviceSinkAPI;
|
||||||
m_deviceUIs.back()->m_samplingDeviceControl->setDeviceAPI(deviceSinkAPI);
|
|
||||||
m_deviceUIs.back()->m_samplingDeviceControl->setPluginManager(m_pluginManager);
|
m_deviceUIs.back()->m_samplingDeviceControl->setPluginManager(m_pluginManager);
|
||||||
QList<QString> channelNames;
|
QList<QString> channelNames;
|
||||||
m_pluginManager->listTxChannels(channelNames);
|
m_pluginManager->listTxChannels(channelNames);
|
||||||
|
Loading…
Reference in New Issue
Block a user