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:
@@ -72,6 +72,7 @@ bool MapGUI::deserialize(const QByteArray& data)
|
||||
{
|
||||
if (m_settings.deserialize(data))
|
||||
{
|
||||
m_feature->setWorkspaceIndex(m_settings.m_workspaceIndex);
|
||||
displaySettings();
|
||||
applySettings(true);
|
||||
return true;
|
||||
@@ -190,6 +191,7 @@ MapGUI::MapGUI(PluginAPI* pluginAPI, FeatureUISet *featureUISet, Feature *featur
|
||||
m_radioTimeDialog(this),
|
||||
m_cesium(nullptr)
|
||||
{
|
||||
m_feature = feature;
|
||||
setAttribute(Qt::WA_DeleteOnClose, true);
|
||||
m_helpURL = "plugins/feature/map/readme.md";
|
||||
RollupContents *rollupContents = getRollupContents();
|
||||
@@ -303,6 +305,12 @@ MapGUI::~MapGUI()
|
||||
delete ui;
|
||||
}
|
||||
|
||||
void MapGUI::setWorkspaceIndex(int index)
|
||||
{
|
||||
m_settings.m_workspaceIndex = index;
|
||||
m_feature->setWorkspaceIndex(index);
|
||||
}
|
||||
|
||||
// Update a map item or image
|
||||
void MapGUI::update(const QObject *source, SWGSDRangel::SWGMapItem *swgMapItem, const QString &group)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user