mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-02 14:04:46 -04:00
v7: API: added workspace handling for device, spectrum, feature and channel. Implements #1242
This commit is contained in:
@@ -48,7 +48,6 @@ void RigCtlServerGUI::resetToDefaults()
|
||||
|
||||
QByteArray RigCtlServerGUI::serialize() const
|
||||
{
|
||||
qDebug("RigCtlServerGUI::serialize: %d", m_settings.m_channelIndex);
|
||||
return m_settings.serialize();
|
||||
}
|
||||
|
||||
@@ -56,7 +55,7 @@ bool RigCtlServerGUI::deserialize(const QByteArray& data)
|
||||
{
|
||||
if (m_settings.deserialize(data))
|
||||
{
|
||||
qDebug("RigCtlServerGUI::deserialize: %d", m_settings.m_channelIndex);
|
||||
m_feature->setWorkspaceIndex(m_settings.m_workspaceIndex);
|
||||
updateDeviceSetList();
|
||||
displaySettings();
|
||||
applySettings(true);
|
||||
@@ -135,6 +134,7 @@ RigCtlServerGUI::RigCtlServerGUI(PluginAPI* pluginAPI, FeatureUISet *featureUISe
|
||||
m_doApplySettings(true),
|
||||
m_lastFeatureState(0)
|
||||
{
|
||||
m_feature = feature;
|
||||
setAttribute(Qt::WA_DeleteOnClose, true);
|
||||
m_helpURL = "plugins/feature/rigctlserver/readme.md";
|
||||
RollupContents *rollupContents = getRollupContents();
|
||||
@@ -165,6 +165,12 @@ RigCtlServerGUI::~RigCtlServerGUI()
|
||||
delete ui;
|
||||
}
|
||||
|
||||
void RigCtlServerGUI::setWorkspaceIndex(int index)
|
||||
{
|
||||
m_settings.m_workspaceIndex = index;
|
||||
m_feature->setWorkspaceIndex(index);
|
||||
}
|
||||
|
||||
void RigCtlServerGUI::blockApplySettings(bool block)
|
||||
{
|
||||
m_doApplySettings = !block;
|
||||
|
||||
Reference in New Issue
Block a user