mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-12-20 16:41:01 -05:00
Multi device support: interim state #2
This commit is contained in:
parent
ef81b11640
commit
f5a65ddc97
@ -268,14 +268,19 @@ void MainWindow::removeChannelMarker(ChannelMarker* channelMarker)
|
||||
m_deviceUIs.back()->m_spectrum->removeChannelMarker(channelMarker);
|
||||
}
|
||||
|
||||
void MainWindow::setInputGUI(QWidget* gui)
|
||||
//void MainWindow::setInputGUI(QWidget* gui)
|
||||
//{
|
||||
// // FIXME: Ceci est un tres tres gros CACA!
|
||||
// if(m_inputGUI != 0)
|
||||
// ui->inputDock->widget()->layout()->removeWidget(m_inputGUI);
|
||||
// if(gui != 0)
|
||||
// ui->inputDock->widget()->layout()->addWidget(gui);
|
||||
// m_inputGUI = gui;
|
||||
//}
|
||||
|
||||
void MainWindow::setInputGUI(int deviceTabIndex, QWidget* gui)
|
||||
{
|
||||
// FIXME: Ceci est un tres tres gros CACA!
|
||||
if(m_inputGUI != 0)
|
||||
ui->inputDock->widget()->layout()->removeWidget(m_inputGUI);
|
||||
if(gui != 0)
|
||||
ui->inputDock->widget()->layout()->addWidget(gui);
|
||||
m_inputGUI = gui;
|
||||
ui->stackInputs->addWidget(gui);
|
||||
}
|
||||
|
||||
void MainWindow::loadSettings()
|
||||
|
@ -78,7 +78,8 @@ public:
|
||||
void addChannelMarker(ChannelMarker* channelMarker);
|
||||
void removeChannelMarker(ChannelMarker* channelMarker);
|
||||
|
||||
void setInputGUI(QWidget* gui);
|
||||
// void setInputGUI(QWidget* gui);
|
||||
void setInputGUI(int deviceTabIndex, QWidget* gui);
|
||||
const QTimer& getMasterTimer() const { return m_masterTimer; }
|
||||
|
||||
private:
|
||||
|
@ -7,7 +7,7 @@
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>1012</width>
|
||||
<height>621</height>
|
||||
<height>635</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="font">
|
||||
@ -432,6 +432,9 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QStackedWidget" name="stackInputs"/>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</widget>
|
||||
|
@ -21,7 +21,7 @@ MessageQueue* PluginAPI::getMainWindowMessageQueue()
|
||||
|
||||
void PluginAPI::setInputGUI(QWidget* inputGUI)
|
||||
{
|
||||
m_mainWindow->setInputGUI(inputGUI);
|
||||
m_pluginManager->setInputGUI(inputGUI);
|
||||
}
|
||||
|
||||
void PluginAPI::registerChannel(const QString& channelName, PluginInterface* plugin, QAction* action)
|
||||
@ -46,12 +46,12 @@ void PluginAPI::removeChannelInstance(PluginGUI* pluginGUI)
|
||||
|
||||
void PluginAPI::addChannelMarker(ChannelMarker* channelMarker)
|
||||
{
|
||||
m_mainWindow->addChannelMarker(channelMarker);
|
||||
m_mainWindow->addChannelMarker(channelMarker); // TODO: suspect verify. No ref to main window expected.
|
||||
}
|
||||
|
||||
void PluginAPI::removeChannelMarker(ChannelMarker* channelMarker)
|
||||
{
|
||||
m_mainWindow->removeChannelMarker(channelMarker);
|
||||
m_mainWindow->removeChannelMarker(channelMarker); // TODO: suspect verify. No ref to main window expected.
|
||||
}
|
||||
|
||||
void PluginAPI::registerSampleSource(const QString& sourceName, PluginInterface* plugin)
|
||||
|
@ -88,6 +88,12 @@ void PluginManager::registerSampleSource(const QString& sourceName, PluginInterf
|
||||
m_sampleSourceRegistrations.append(SampleSourceRegistration(sourceName, plugin));
|
||||
}
|
||||
|
||||
void PluginManager::setInputGUI(QWidget* gui)
|
||||
{
|
||||
//m_mainWindow->setInputGUI(gui);
|
||||
m_mainWindow->setInputGUI(m_deviceTabIndex, gui);
|
||||
}
|
||||
|
||||
void PluginManager::addSink(SampleSink* sink)
|
||||
{
|
||||
m_dspDeviceEngine->addSink(sink);
|
||||
|
@ -51,6 +51,7 @@ public:
|
||||
void removeChannelInstance(PluginGUI* pluginGUI);
|
||||
|
||||
void registerSampleSource(const QString& sourceName, PluginInterface* plugin);
|
||||
void setInputGUI(QWidget* gui);
|
||||
|
||||
void addSink(SampleSink* sink);
|
||||
void removeSink(SampleSink* sink);
|
||||
|
Loading…
Reference in New Issue
Block a user