mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-07-24 11:04:10 -04:00
v7: API: added workspace handling for device, spectrum, feature and channel. Implements #1242
This commit is contained in:
@@ -46,7 +46,6 @@
|
||||
BladeRF2MIMOGui::BladeRF2MIMOGui(DeviceUISet *deviceUISet, QWidget* parent) :
|
||||
DeviceGUI(parent),
|
||||
ui(new Ui::BladeRF2MIMOGui),
|
||||
m_deviceUISet(deviceUISet),
|
||||
m_settings(),
|
||||
m_rxElseTx(true),
|
||||
m_streamIndex(0),
|
||||
@@ -66,6 +65,7 @@ BladeRF2MIMOGui::BladeRF2MIMOGui(DeviceUISet *deviceUISet, QWidget* parent) :
|
||||
m_sampleRateMode(true)
|
||||
{
|
||||
qDebug("BladeRF2MIMOGui::BladeRF2MIMOGui");
|
||||
m_deviceUISet = deviceUISet;
|
||||
setAttribute(Qt::WA_DeleteOnClose, true);
|
||||
ui->setupUi(getContents());
|
||||
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
|
||||
|
||||
@@ -51,7 +51,6 @@ protected:
|
||||
private:
|
||||
Ui::BladeRF2MIMOGui* ui;
|
||||
|
||||
DeviceUISet* m_deviceUISet;
|
||||
BladeRF2MIMOSettings m_settings;
|
||||
bool m_rxElseTx; //!< Which side is being dealt with
|
||||
int m_streamIndex; //!< Current stream index being dealt with
|
||||
|
||||
@@ -46,7 +46,6 @@
|
||||
LimeSDRMIMOGUI::LimeSDRMIMOGUI(DeviceUISet *deviceUISet, QWidget* parent) :
|
||||
DeviceGUI(parent),
|
||||
ui(new Ui::LimeSDRMIMOGUI),
|
||||
m_deviceUISet(deviceUISet),
|
||||
m_settings(),
|
||||
m_rxElseTx(true),
|
||||
m_streamIndex(0),
|
||||
@@ -68,6 +67,7 @@ LimeSDRMIMOGUI::LimeSDRMIMOGUI(DeviceUISet *deviceUISet, QWidget* parent) :
|
||||
m_sampleRateMode(true)
|
||||
{
|
||||
qDebug("LimeSDRMIMOGUI::LimeSDRMIMOGUI");
|
||||
m_deviceUISet = deviceUISet;
|
||||
setAttribute(Qt::WA_DeleteOnClose, true);
|
||||
ui->setupUi(getContents());
|
||||
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
|
||||
|
||||
@@ -51,7 +51,6 @@ protected:
|
||||
private:
|
||||
Ui::LimeSDRMIMOGUI* ui;
|
||||
|
||||
DeviceUISet* m_deviceUISet;
|
||||
LimeSDRMIMOSettings m_settings;
|
||||
bool m_rxElseTx; //!< Which side is being dealt with
|
||||
int m_streamIndex; //!< Current stream index being dealt with
|
||||
|
||||
@@ -43,7 +43,6 @@
|
||||
MetisMISOGui::MetisMISOGui(DeviceUISet *deviceUISet, QWidget* parent) :
|
||||
DeviceGUI(parent),
|
||||
ui(new Ui::MetisMISOGui),
|
||||
m_deviceUISet(deviceUISet),
|
||||
m_settings(),
|
||||
m_doApplySettings(true),
|
||||
m_forceSettings(true),
|
||||
@@ -52,6 +51,7 @@ MetisMISOGui::MetisMISOGui(DeviceUISet *deviceUISet, QWidget* parent) :
|
||||
m_lastEngineState(DeviceAPI::StNotStarted)
|
||||
{
|
||||
qDebug("MetisMISOGui::MetisMISOGui");
|
||||
m_deviceUISet = deviceUISet;
|
||||
setAttribute(Qt::WA_DeleteOnClose, true);
|
||||
m_sampleMIMO = m_deviceUISet->m_deviceAPI->getSampleMIMO();
|
||||
m_rxSampleRate = 48000;
|
||||
|
||||
@@ -52,7 +52,6 @@ protected:
|
||||
private:
|
||||
Ui::MetisMISOGui* ui;
|
||||
|
||||
DeviceUISet* m_deviceUISet;
|
||||
MetisMISOSettings m_settings;
|
||||
int m_rxSampleRate;
|
||||
int m_txSampleRate;
|
||||
|
||||
@@ -47,7 +47,6 @@
|
||||
PlutoSDRMIMOGUI::PlutoSDRMIMOGUI(DeviceUISet *deviceUISet, QWidget* parent) :
|
||||
DeviceGUI(parent),
|
||||
ui(new Ui::PlutoSDRMIMOGUI),
|
||||
m_deviceUISet(deviceUISet),
|
||||
m_settings(),
|
||||
m_rxElseTx(true),
|
||||
m_streamIndex(0),
|
||||
@@ -68,6 +67,7 @@ PlutoSDRMIMOGUI::PlutoSDRMIMOGUI(DeviceUISet *deviceUISet, QWidget* parent) :
|
||||
m_sampleRateMode(true)
|
||||
{
|
||||
qDebug("PlutoSDRMIMOGui::PlutoSDRMIMOGui");
|
||||
m_deviceUISet = deviceUISet;
|
||||
setAttribute(Qt::WA_DeleteOnClose, true);
|
||||
ui->setupUi(getContents());
|
||||
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
|
||||
|
||||
@@ -51,7 +51,6 @@ protected:
|
||||
private:
|
||||
Ui::PlutoSDRMIMOGUI* ui;
|
||||
|
||||
DeviceUISet* m_deviceUISet;
|
||||
PlutoSDRMIMOSettings m_settings;
|
||||
bool m_rxElseTx; //!< Which side is being dealt with
|
||||
int m_streamIndex; //!< Current stream index being dealt with
|
||||
|
||||
@@ -43,7 +43,6 @@
|
||||
TestMIGui::TestMIGui(DeviceUISet *deviceUISet, QWidget* parent) :
|
||||
DeviceGUI(parent),
|
||||
ui(new Ui::TestMIGui),
|
||||
m_deviceUISet(deviceUISet),
|
||||
m_settings(),
|
||||
m_streamIndex(0),
|
||||
m_spectrumStreamIndex(0),
|
||||
@@ -54,6 +53,7 @@ TestMIGui::TestMIGui(DeviceUISet *deviceUISet, QWidget* parent) :
|
||||
m_lastEngineState(DeviceAPI::StNotStarted)
|
||||
{
|
||||
qDebug("TestMIGui::TestMIGui");
|
||||
m_deviceUISet = deviceUISet;
|
||||
setAttribute(Qt::WA_DeleteOnClose, true);
|
||||
m_helpURL = "plugins/samplemimo/testmi/readme.md";
|
||||
ui->setupUi(getContents());
|
||||
|
||||
@@ -52,7 +52,6 @@ protected:
|
||||
private:
|
||||
Ui::TestMIGui* ui;
|
||||
|
||||
DeviceUISet* m_deviceUISet;
|
||||
TestMISettings m_settings;
|
||||
int m_streamIndex; //!< Current stream index being dealt with
|
||||
int m_spectrumStreamIndex; //!< Index of the stream displayed on main spectrum
|
||||
|
||||
@@ -39,7 +39,6 @@
|
||||
TestMOSyncGui::TestMOSyncGui(DeviceUISet *deviceUISet, QWidget* parent) :
|
||||
DeviceGUI(parent),
|
||||
ui(new Ui::TestMOSyncGui),
|
||||
m_deviceUISet(deviceUISet),
|
||||
m_doApplySettings(true),
|
||||
m_forceSettings(true),
|
||||
m_settings(),
|
||||
@@ -50,6 +49,7 @@ TestMOSyncGui::TestMOSyncGui(DeviceUISet *deviceUISet, QWidget* parent) :
|
||||
m_tickCount(0),
|
||||
m_lastEngineState(DeviceAPI::StNotStarted)
|
||||
{
|
||||
m_deviceUISet = deviceUISet;
|
||||
setAttribute(Qt::WA_DeleteOnClose, true);
|
||||
m_helpURL = "plugins/samplemimo/testmosync/readme.md";
|
||||
QWidget *contents = getContents();
|
||||
|
||||
@@ -51,7 +51,6 @@ public:
|
||||
private:
|
||||
Ui::TestMOSyncGui* ui;
|
||||
|
||||
DeviceUISet* m_deviceUISet;
|
||||
bool m_doApplySettings;
|
||||
bool m_forceSettings;
|
||||
TestMOSyncSettings m_settings;
|
||||
|
||||
@@ -44,7 +44,6 @@
|
||||
XTRXMIMOGUI::XTRXMIMOGUI(DeviceUISet *deviceUISet, QWidget* parent) :
|
||||
DeviceGUI(parent),
|
||||
ui(new Ui::XTRXMIMOGUI),
|
||||
m_deviceUISet(deviceUISet),
|
||||
m_settings(),
|
||||
m_rxElseTx(true),
|
||||
m_streamIndex(0),
|
||||
@@ -65,6 +64,7 @@ XTRXMIMOGUI::XTRXMIMOGUI(DeviceUISet *deviceUISet, QWidget* parent) :
|
||||
m_sampleRateMode(true)
|
||||
{
|
||||
qDebug("XTRXMIMOGUI::XTRXMIMOGUI");
|
||||
m_deviceUISet = deviceUISet;
|
||||
setAttribute(Qt::WA_DeleteOnClose, true);
|
||||
ui->setupUi(getContents());
|
||||
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
|
||||
|
||||
@@ -51,7 +51,6 @@ protected:
|
||||
private:
|
||||
Ui::XTRXMIMOGUI* ui;
|
||||
|
||||
DeviceUISet* m_deviceUISet;
|
||||
XTRXMIMOSettings m_settings;
|
||||
bool m_rxElseTx; //!< Which side is being dealt with
|
||||
int m_streamIndex; //!< Current stream index being dealt with
|
||||
|
||||
Reference in New Issue
Block a user