mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-07 00:14:49 -04:00
v7: API: added workspace handling for device, spectrum, feature and channel. Implements #1242
This commit is contained in:
@@ -29,10 +29,13 @@
|
||||
#include "mainwindow.h"
|
||||
#include "gui/workspaceselectiondialog.h"
|
||||
#include "gui/samplingdevicedialog.h"
|
||||
#include "device/deviceuiset.h"
|
||||
#include "device/deviceapi.h"
|
||||
#include "devicegui.h"
|
||||
|
||||
DeviceGUI::DeviceGUI(QWidget *parent) :
|
||||
QMdiSubWindow(parent),
|
||||
m_deviceUISet(nullptr),
|
||||
m_deviceType(DeviceRx),
|
||||
m_deviceSetIndex(0),
|
||||
m_contextMenuType(ContextMenuNone),
|
||||
@@ -223,6 +226,15 @@ DeviceGUI::~DeviceGUI()
|
||||
qDebug("DeviceGUI::~DeviceGUI: end");
|
||||
}
|
||||
|
||||
void DeviceGUI::setWorkspaceIndex(int index)
|
||||
{
|
||||
m_workspaceIndex = index;
|
||||
|
||||
if (m_deviceUISet) {
|
||||
m_deviceUISet->m_deviceAPI->setWorkspaceIndex(index);
|
||||
}
|
||||
}
|
||||
|
||||
void DeviceGUI::closeEvent(QCloseEvent *event)
|
||||
{
|
||||
qDebug("DeviceGUI::closeEvent");
|
||||
|
||||
Reference in New Issue
Block a user