mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-01 21:54:55 -04:00
v7: API: added workspace handling for device, spectrum, feature and channel. Implements #1242
This commit is contained in:
@@ -79,6 +79,7 @@ bool StarTrackerGUI::deserialize(const QByteArray& data)
|
||||
{
|
||||
if (m_settings.deserialize(data))
|
||||
{
|
||||
m_feature->setWorkspaceIndex(m_settings.m_workspaceIndex);
|
||||
displaySettings();
|
||||
applySettings(true);
|
||||
return true;
|
||||
@@ -265,6 +266,7 @@ StarTrackerGUI::StarTrackerGUI(PluginAPI* pluginAPI, FeatureUISet *featureUISet,
|
||||
m_moonRA(0.0),
|
||||
m_moonDec(0.0)
|
||||
{
|
||||
m_feature = feature;
|
||||
setAttribute(Qt::WA_DeleteOnClose, true);
|
||||
m_helpURL = "plugins/feature/startracker/readme.md";
|
||||
RollupContents *rollupContents = getRollupContents();
|
||||
@@ -397,6 +399,12 @@ StarTrackerGUI::~StarTrackerGUI()
|
||||
delete ui;
|
||||
}
|
||||
|
||||
void StarTrackerGUI::setWorkspaceIndex(int index)
|
||||
{
|
||||
m_settings.m_workspaceIndex = index;
|
||||
m_feature->setWorkspaceIndex(index);
|
||||
}
|
||||
|
||||
void StarTrackerGUI::blockApplySettings(bool block)
|
||||
{
|
||||
m_doApplySettings = !block;
|
||||
|
||||
Reference in New Issue
Block a user