1
0
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:
f4exb
2022-05-13 22:24:48 +02:00
parent 0d7ca38ab0
commit 9e5c629473
235 changed files with 10257 additions and 115 deletions
+12
View File
@@ -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");