Browse Source

v7: API: added workspace handling for device, spectrum, feature and channel. Implements #1242

chirpmodem-v8.0.0
f4exb 5 years ago
parent
commit
9e5c629473
  1. 10
      plugins/channelmimo/beamsteeringcwmod/beamsteeringcwmod.cpp
  2. 4
      plugins/channelmimo/beamsteeringcwmod/beamsteeringcwmod.h
  3. 10
      plugins/channelmimo/interferometer/interferometer.cpp
  4. 4
      plugins/channelmimo/interferometer/interferometer.h
  5. 10
      plugins/channelrx/chanalyzer/chanalyzer.cpp
  6. 4
      plugins/channelrx/chanalyzer/chanalyzer.h
  7. 10
      plugins/channelrx/demodadsb/adsbdemod.cpp
  8. 4
      plugins/channelrx/demodadsb/adsbdemod.h
  9. 10
      plugins/channelrx/demodais/aisdemod.cpp
  10. 4
      plugins/channelrx/demodais/aisdemod.h
  11. 10
      plugins/channelrx/demodam/amdemod.cpp
  12. 4
      plugins/channelrx/demodam/amdemod.h
  13. 10
      plugins/channelrx/demodapt/aptdemod.cpp
  14. 4
      plugins/channelrx/demodapt/aptdemod.h
  15. 10
      plugins/channelrx/demodbfm/bfmdemod.cpp
  16. 4
      plugins/channelrx/demodbfm/bfmdemod.h
  17. 10
      plugins/channelrx/demodchirpchat/chirpchatdemod.cpp
  18. 4
      plugins/channelrx/demodchirpchat/chirpchatdemod.h
  19. 10
      plugins/channelrx/demoddab/dabdemod.cpp
  20. 4
      plugins/channelrx/demoddab/dabdemod.h
  21. 10
      plugins/channelrx/demoddatv/datvdemod.cpp
  22. 4
      plugins/channelrx/demoddatv/datvdemod.h
  23. 10
      plugins/channelrx/demoddsd/dsddemod.cpp
  24. 4
      plugins/channelrx/demoddsd/dsddemod.h
  25. 10
      plugins/channelrx/demodfreedv/freedvdemod.cpp
  26. 4
      plugins/channelrx/demodfreedv/freedvdemod.h
  27. 10
      plugins/channelrx/demodnfm/nfmdemod.cpp
  28. 4
      plugins/channelrx/demodnfm/nfmdemod.h
  29. 10
      plugins/channelrx/demodpacket/packetdemod.cpp
  30. 4
      plugins/channelrx/demodpacket/packetdemod.h
  31. 10
      plugins/channelrx/demodpager/pagerdemod.cpp
  32. 4
      plugins/channelrx/demodpager/pagerdemod.h
  33. 10
      plugins/channelrx/demodradiosonde/radiosondedemod.cpp
  34. 4
      plugins/channelrx/demodradiosonde/radiosondedemod.h
  35. 10
      plugins/channelrx/demodssb/ssbdemod.cpp
  36. 4
      plugins/channelrx/demodssb/ssbdemod.h
  37. 10
      plugins/channelrx/demodvor/vordemod.cpp
  38. 4
      plugins/channelrx/demodvor/vordemod.h
  39. 10
      plugins/channelrx/demodwfm/wfmdemod.cpp
  40. 4
      plugins/channelrx/demodwfm/wfmdemod.h
  41. 10
      plugins/channelrx/filesink/filesink.cpp
  42. 4
      plugins/channelrx/filesink/filesink.h
  43. 10
      plugins/channelrx/freqtracker/freqtracker.cpp
  44. 4
      plugins/channelrx/freqtracker/freqtracker.h
  45. 10
      plugins/channelrx/localsink/localsink.cpp
  46. 4
      plugins/channelrx/localsink/localsink.h
  47. 10
      plugins/channelrx/noisefigure/noisefigure.cpp
  48. 4
      plugins/channelrx/noisefigure/noisefigure.h
  49. 10
      plugins/channelrx/radioastronomy/radioastronomy.cpp
  50. 4
      plugins/channelrx/radioastronomy/radioastronomy.h
  51. 10
      plugins/channelrx/radioclock/radioclock.cpp
  52. 4
      plugins/channelrx/radioclock/radioclock.h
  53. 10
      plugins/channelrx/remotesink/remotesink.cpp
  54. 4
      plugins/channelrx/remotesink/remotesink.h
  55. 10
      plugins/channelrx/sigmffilesink/sigmffilesink.cpp
  56. 4
      plugins/channelrx/sigmffilesink/sigmffilesink.h
  57. 10
      plugins/channelrx/udpsink/udpsink.cpp
  58. 4
      plugins/channelrx/udpsink/udpsink.h
  59. 10
      plugins/channeltx/filesource/filesource.cpp
  60. 4
      plugins/channeltx/filesource/filesource.h
  61. 10
      plugins/channeltx/localsource/localsource.cpp
  62. 4
      plugins/channeltx/localsource/localsource.h
  63. 10
      plugins/channeltx/mod802.15.4/ieee_802_15_4_mod.cpp
  64. 4
      plugins/channeltx/mod802.15.4/ieee_802_15_4_mod.h
  65. 10
      plugins/channeltx/modais/aismod.cpp
  66. 4
      plugins/channeltx/modais/aismod.h
  67. 10
      plugins/channeltx/modam/ammod.cpp
  68. 4
      plugins/channeltx/modam/ammod.h
  69. 10
      plugins/channeltx/modatv/atvmod.cpp
  70. 4
      plugins/channeltx/modatv/atvmod.h
  71. 10
      plugins/channeltx/modchirpchat/chirpchatmod.cpp
  72. 4
      plugins/channeltx/modchirpchat/chirpchatmod.h
  73. 10
      plugins/channeltx/moddatv/datvmod.cpp
  74. 4
      plugins/channeltx/moddatv/datvmod.h
  75. 10
      plugins/channeltx/modfreedv/freedvmod.cpp
  76. 4
      plugins/channeltx/modfreedv/freedvmod.h
  77. 10
      plugins/channeltx/modnfm/nfmmod.cpp
  78. 4
      plugins/channeltx/modnfm/nfmmod.h
  79. 10
      plugins/channeltx/modpacket/packetmod.cpp
  80. 4
      plugins/channeltx/modpacket/packetmod.h
  81. 10
      plugins/channeltx/modssb/ssbmod.cpp
  82. 4
      plugins/channeltx/modssb/ssbmod.h
  83. 10
      plugins/channeltx/modwfm/wfmmod.cpp
  84. 4
      plugins/channeltx/modwfm/wfmmod.h
  85. 10
      plugins/channeltx/remotesource/remotesource.cpp
  86. 4
      plugins/channeltx/remotesource/remotesource.h
  87. 10
      plugins/channeltx/udpsource/udpsource.cpp
  88. 4
      plugins/channeltx/udpsource/udpsource.h
  89. 8
      plugins/feature/afc/afcgui.cpp
  90. 2
      plugins/feature/afc/afcgui.h
  91. 8
      plugins/feature/ais/aisgui.cpp
  92. 2
      plugins/feature/ais/aisgui.h
  93. 8
      plugins/feature/antennatools/antennatoolsgui.cpp
  94. 2
      plugins/feature/antennatools/antennatoolsgui.h
  95. 8
      plugins/feature/aprs/aprsgui.cpp
  96. 2
      plugins/feature/aprs/aprsgui.h
  97. 8
      plugins/feature/demodanalyzer/demodanalyzergui.cpp
  98. 2
      plugins/feature/demodanalyzer/demodanalyzergui.h
  99. 8
      plugins/feature/gs232controller/gs232controllergui.cpp
  100. 2
      plugins/feature/gs232controller/gs232controllergui.h
  101. Some files were not shown because too many files have changed in this diff Show More

10
plugins/channelmimo/beamsteeringcwmod/beamsteeringcwmod.cpp

@ -22,6 +22,7 @@ @@ -22,6 +22,7 @@
#include <QNetworkReply>
#include "SWGChannelSettings.h"
#include "SWGWorkspaceInfo.h"
#include "device/deviceapi.h"
#include "dsp/hbfilterchainconverter.h"
@ -283,6 +284,15 @@ int BeamSteeringCWMod::webapiSettingsGet( @@ -283,6 +284,15 @@ int BeamSteeringCWMod::webapiSettingsGet(
return 200;
}
int BeamSteeringCWMod::webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage)
{
(void) errorMessage;
response.setIndex(m_settings.m_workspaceIndex);
return 200;
}
int BeamSteeringCWMod::webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

4
plugins/channelmimo/beamsteeringcwmod/beamsteeringcwmod.h

@ -134,6 +134,10 @@ public: @@ -134,6 +134,10 @@ public:
SWGSDRangel::SWGChannelSettings& response,
QString& errorMessage);
virtual int webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& query,
QString& errorMessage);
static void webapiFormatChannelSettings(
SWGSDRangel::SWGChannelSettings& response,
const BeamSteeringCWModSettings& settings);

10
plugins/channelmimo/interferometer/interferometer.cpp

@ -22,6 +22,7 @@ @@ -22,6 +22,7 @@
#include <QNetworkReply>
#include "SWGChannelSettings.h"
#include "SWGWorkspaceInfo.h"
#include "device/deviceapi.h"
#include "dsp/hbfilterchainconverter.h"
@ -305,6 +306,15 @@ int Interferometer::webapiSettingsGet( @@ -305,6 +306,15 @@ int Interferometer::webapiSettingsGet(
return 200;
}
int Interferometer::webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage)
{
(void) errorMessage;
response.setIndex(m_settings.m_workspaceIndex);
return 200;
}
int Interferometer::webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

4
plugins/channelmimo/interferometer/interferometer.h

@ -138,6 +138,10 @@ public: @@ -138,6 +138,10 @@ public:
SWGSDRangel::SWGChannelSettings& response,
QString& errorMessage);
virtual int webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& query,
QString& errorMessage);
static void webapiFormatChannelSettings(
SWGSDRangel::SWGChannelSettings& response,
const InterferometerSettings& settings);

10
plugins/channelrx/chanalyzer/chanalyzer.cpp

@ -25,6 +25,7 @@ @@ -25,6 +25,7 @@
#include <stdio.h>
#include "SWGChannelSettings.h"
#include "SWGWorkspaceInfo.h"
#include "SWGChannelAnalyzerSettings.h"
#include "device/deviceapi.h"
@ -333,6 +334,15 @@ int ChannelAnalyzer::webapiSettingsGet( @@ -333,6 +334,15 @@ int ChannelAnalyzer::webapiSettingsGet(
return 200;
}
int ChannelAnalyzer::webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage)
{
(void) errorMessage;
response.setIndex(m_settings.m_workspaceIndex);
return 200;
}
int ChannelAnalyzer::webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

4
plugins/channelrx/chanalyzer/chanalyzer.h

@ -109,6 +109,10 @@ public: @@ -109,6 +109,10 @@ public:
SWGSDRangel::SWGChannelSettings& response,
QString& errorMessage);
virtual int webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage);
virtual int webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

10
plugins/channelrx/demodadsb/adsbdemod.cpp

@ -31,6 +31,7 @@ @@ -31,6 +31,7 @@
#include <QThread>
#include "SWGChannelSettings.h"
#include "SWGWorkspaceInfo.h"
#include "SWGADSBDemodSettings.h"
#include "SWGChannelReport.h"
#include "SWGADSBDemodReport.h"
@ -374,6 +375,15 @@ int ADSBDemod::webapiSettingsGet( @@ -374,6 +375,15 @@ int ADSBDemod::webapiSettingsGet(
return 200;
}
int ADSBDemod::webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage)
{
(void) errorMessage;
response.setIndex(m_settings.m_workspaceIndex);
return 200;
}
int ADSBDemod::webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

4
plugins/channelrx/demodadsb/adsbdemod.h

@ -98,6 +98,10 @@ public: @@ -98,6 +98,10 @@ public:
SWGSDRangel::SWGChannelSettings& response,
QString& errorMessage);
virtual int webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage);
virtual int webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

10
plugins/channelrx/demodais/aisdemod.cpp

@ -29,6 +29,7 @@ @@ -29,6 +29,7 @@
#include <complex.h>
#include "SWGChannelSettings.h"
#include "SWGWorkspaceInfo.h"
#include "SWGChannelReport.h"
#include "dsp/dspengine.h"
@ -418,6 +419,15 @@ int AISDemod::webapiSettingsGet( @@ -418,6 +419,15 @@ int AISDemod::webapiSettingsGet(
return 200;
}
int AISDemod::webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage)
{
(void) errorMessage;
response.setIndex(m_settings.m_workspaceIndex);
return 200;
}
int AISDemod::webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

4
plugins/channelrx/demodais/aisdemod.h

@ -127,6 +127,10 @@ public: @@ -127,6 +127,10 @@ public:
SWGSDRangel::SWGChannelSettings& response,
QString& errorMessage);
virtual int webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage);
virtual int webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

10
plugins/channelrx/demodam/amdemod.cpp

@ -28,6 +28,7 @@ @@ -28,6 +28,7 @@
#include <complex.h>
#include "SWGChannelSettings.h"
#include "SWGWorkspaceInfo.h"
#include "SWGAMDemodSettings.h"
#include "SWGChannelReport.h"
#include "SWGAMDemodReport.h"
@ -358,6 +359,15 @@ int AMDemod::webapiSettingsGet( @@ -358,6 +359,15 @@ int AMDemod::webapiSettingsGet(
return 200;
}
int AMDemod::webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage)
{
(void) errorMessage;
response.setIndex(m_settings.m_workspaceIndex);
return 200;
}
int AMDemod::webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

4
plugins/channelrx/demodam/amdemod.h

@ -97,6 +97,10 @@ public: @@ -97,6 +97,10 @@ public:
SWGSDRangel::SWGChannelSettings& response,
QString& errorMessage);
virtual int webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage);
virtual int webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

10
plugins/channelrx/demodapt/aptdemod.cpp

@ -29,6 +29,7 @@ @@ -29,6 +29,7 @@
#include <complex.h>
#include "SWGChannelSettings.h"
#include "SWGWorkspaceInfo.h"
#include "SWGAPTDemodSettings.h"
#include "SWGChannelReport.h"
#include "SWGChannelActions.h"
@ -420,6 +421,15 @@ int APTDemod::webapiSettingsGet( @@ -420,6 +421,15 @@ int APTDemod::webapiSettingsGet(
return 200;
}
int APTDemod::webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage)
{
(void) errorMessage;
response.setIndex(m_settings.m_workspaceIndex);
return 200;
}
int APTDemod::webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

4
plugins/channelrx/demodapt/aptdemod.h

@ -232,6 +232,10 @@ public: @@ -232,6 +232,10 @@ public:
SWGSDRangel::SWGChannelSettings& response,
QString& errorMessage);
virtual int webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage);
virtual int webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

10
plugins/channelrx/demodbfm/bfmdemod.cpp

@ -26,6 +26,7 @@ @@ -26,6 +26,7 @@
#include <QThread>
#include "SWGChannelSettings.h"
#include "SWGWorkspaceInfo.h"
#include "SWGBFMDemodSettings.h"
#include "SWGChannelReport.h"
#include "SWGBFMDemodReport.h"
@ -307,6 +308,15 @@ int BFMDemod::webapiSettingsGet( @@ -307,6 +308,15 @@ int BFMDemod::webapiSettingsGet(
return 200;
}
int BFMDemod::webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage)
{
(void) errorMessage;
response.setIndex(m_settings.m_workspaceIndex);
return 200;
}
int BFMDemod::webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

4
plugins/channelrx/demodbfm/bfmdemod.h

@ -121,6 +121,10 @@ public: @@ -121,6 +121,10 @@ public:
SWGSDRangel::SWGChannelSettings& response,
QString& errorMessage);
virtual int webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage);
virtual int webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

10
plugins/channelrx/demodchirpchat/chirpchatdemod.cpp

@ -28,6 +28,7 @@ @@ -28,6 +28,7 @@
#include <QBuffer>
#include "SWGChannelSettings.h"
#include "SWGWorkspaceInfo.h"
#include "SWGChannelReport.h"
#include "SWGChirpChatDemodReport.h"
@ -510,6 +511,15 @@ int ChirpChatDemod::webapiSettingsGet( @@ -510,6 +511,15 @@ int ChirpChatDemod::webapiSettingsGet(
return 200;
}
int ChirpChatDemod::webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage)
{
(void) errorMessage;
response.setIndex(m_settings.m_workspaceIndex);
return 200;
}
int ChirpChatDemod::webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

4
plugins/channelrx/demodchirpchat/chirpchatdemod.h

@ -236,6 +236,10 @@ public: @@ -236,6 +236,10 @@ public:
SWGSDRangel::SWGChannelSettings& response,
QString& errorMessage);
virtual int webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage);
virtual int webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

10
plugins/channelrx/demoddab/dabdemod.cpp

@ -28,6 +28,7 @@ @@ -28,6 +28,7 @@
#include <complex.h>
#include "SWGChannelSettings.h"
#include "SWGWorkspaceInfo.h"
#include "SWGDABDemodSettings.h"
#include "SWGChannelReport.h"
#include "SWGMapItem.h"
@ -422,6 +423,15 @@ int DABDemod::webapiSettingsGet( @@ -422,6 +423,15 @@ int DABDemod::webapiSettingsGet(
return 200;
}
int DABDemod::webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage)
{
(void) errorMessage;
response.setIndex(m_settings.m_workspaceIndex);
return 200;
}
int DABDemod::webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

4
plugins/channelrx/demoddab/dabdemod.h

@ -347,6 +347,10 @@ public: @@ -347,6 +347,10 @@ public:
SWGSDRangel::SWGChannelSettings& response,
QString& errorMessage);
virtual int webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage);
virtual int webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

10
plugins/channelrx/demoddatv/datvdemod.cpp

@ -23,6 +23,7 @@ @@ -23,6 +23,7 @@
#include <QBuffer>
#include "SWGChannelSettings.h"
#include "SWGWorkspaceInfo.h"
#include "SWGDATVDemodSettings.h"
#include "SWGChannelReport.h"
@ -307,6 +308,15 @@ int DATVDemod::webapiSettingsGet( @@ -307,6 +308,15 @@ int DATVDemod::webapiSettingsGet(
return 200;
}
int DATVDemod::webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage)
{
(void) errorMessage;
response.setIndex(m_settings.m_workspaceIndex);
return 200;
}
int DATVDemod::webapiReportGet(
SWGSDRangel::SWGChannelReport& response,
QString& errorMessage)

4
plugins/channelrx/demoddatv/datvdemod.h

@ -78,6 +78,10 @@ public: @@ -78,6 +78,10 @@ public:
SWGSDRangel::SWGChannelSettings& response,
QString& errorMessage);
virtual int webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage);
virtual int webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

10
plugins/channelrx/demoddsd/dsddemod.cpp

@ -29,6 +29,7 @@ @@ -29,6 +29,7 @@
#include <QThread>
#include "SWGChannelSettings.h"
#include "SWGWorkspaceInfo.h"
#include "SWGDSDDemodSettings.h"
#include "SWGChannelReport.h"
#include "SWGDSDDemodReport.h"
@ -368,6 +369,15 @@ int DSDDemod::webapiSettingsGet( @@ -368,6 +369,15 @@ int DSDDemod::webapiSettingsGet(
return 200;
}
int DSDDemod::webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage)
{
(void) errorMessage;
response.setIndex(m_settings.m_workspaceIndex);
return 200;
}
int DSDDemod::webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

4
plugins/channelrx/demoddsd/dsddemod.h

@ -98,6 +98,10 @@ public: @@ -98,6 +98,10 @@ public:
SWGSDRangel::SWGChannelSettings& response,
QString& errorMessage);
virtual int webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage);
virtual int webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

10
plugins/channelrx/demodfreedv/freedvdemod.cpp

@ -22,6 +22,7 @@ @@ -22,6 +22,7 @@
#include <QThread>
#include "SWGChannelSettings.h"
#include "SWGWorkspaceInfo.h"
#include "SWGFreeDVDemodSettings.h"
#include "SWGChannelReport.h"
#include "SWGFreeDVDemodReport.h"
@ -309,6 +310,15 @@ int FreeDVDemod::webapiSettingsGet( @@ -309,6 +310,15 @@ int FreeDVDemod::webapiSettingsGet(
return 200;
}
int FreeDVDemod::webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage)
{
(void) errorMessage;
response.setIndex(m_settings.m_workspaceIndex);
return 200;
}
int FreeDVDemod::webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

4
plugins/channelrx/demodfreedv/freedvdemod.h

@ -125,6 +125,10 @@ public: @@ -125,6 +125,10 @@ public:
SWGSDRangel::SWGChannelSettings& response,
QString& errorMessage);
virtual int webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage);
virtual int webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

10
plugins/channelrx/demodnfm/nfmdemod.cpp

@ -27,6 +27,7 @@ @@ -27,6 +27,7 @@
#include <QThread>
#include "SWGChannelSettings.h"
#include "SWGWorkspaceInfo.h"
#include "SWGNFMDemodSettings.h"
#include "SWGChannelReport.h"
#include "SWGNFMDemodReport.h"
@ -358,6 +359,15 @@ int NFMDemod::webapiSettingsGet( @@ -358,6 +359,15 @@ int NFMDemod::webapiSettingsGet(
return 200;
}
int NFMDemod::webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage)
{
(void) errorMessage;
response.setIndex(m_settings.m_workspaceIndex);
return 200;
}
int NFMDemod::webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

4
plugins/channelrx/demodnfm/nfmdemod.h

@ -97,6 +97,10 @@ public: @@ -97,6 +97,10 @@ public:
SWGSDRangel::SWGChannelSettings& response,
QString& errorMessage);
virtual int webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage);
virtual int webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

10
plugins/channelrx/demodpacket/packetdemod.cpp

@ -29,6 +29,7 @@ @@ -29,6 +29,7 @@
#include <complex.h>
#include "SWGChannelSettings.h"
#include "SWGWorkspaceInfo.h"
#include "SWGPacketDemodSettings.h"
#include "SWGChannelReport.h"
#include "SWGMapItem.h"
@ -407,6 +408,15 @@ int PacketDemod::webapiSettingsGet( @@ -407,6 +408,15 @@ int PacketDemod::webapiSettingsGet(
return 200;
}
int PacketDemod::webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage)
{
(void) errorMessage;
response.setIndex(m_settings.m_workspaceIndex);
return 200;
}
int PacketDemod::webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

4
plugins/channelrx/demodpacket/packetdemod.h

@ -101,6 +101,10 @@ public: @@ -101,6 +101,10 @@ public:
SWGSDRangel::SWGChannelSettings& response,
QString& errorMessage);
virtual int webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage);
virtual int webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

10
plugins/channelrx/demodpager/pagerdemod.cpp

@ -25,6 +25,7 @@ @@ -25,6 +25,7 @@
#include <QThread>
#include "SWGChannelSettings.h"
#include "SWGWorkspaceInfo.h"
#include "SWGChannelReport.h"
#include "dsp/dspengine.h"
@ -392,6 +393,15 @@ int PagerDemod::webapiSettingsGet( @@ -392,6 +393,15 @@ int PagerDemod::webapiSettingsGet(
return 200;
}
int PagerDemod::webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage)
{
(void) errorMessage;
response.setIndex(m_settings.m_workspaceIndex);
return 200;
}
int PagerDemod::webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

4
plugins/channelrx/demodpager/pagerdemod.h

@ -156,6 +156,10 @@ public: @@ -156,6 +156,10 @@ public:
SWGSDRangel::SWGChannelSettings& response,
QString& errorMessage);
virtual int webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage);
virtual int webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

10
plugins/channelrx/demodradiosonde/radiosondedemod.cpp

@ -29,6 +29,7 @@ @@ -29,6 +29,7 @@
#include <complex.h>
#include "SWGChannelSettings.h"
#include "SWGWorkspaceInfo.h"
#include "SWGChannelReport.h"
#include "dsp/dspengine.h"
@ -439,6 +440,15 @@ int RadiosondeDemod::webapiSettingsGet( @@ -439,6 +440,15 @@ int RadiosondeDemod::webapiSettingsGet(
return 200;
}
int RadiosondeDemod::webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage)
{
(void) errorMessage;
response.setIndex(m_settings.m_workspaceIndex);
return 200;
}
int RadiosondeDemod::webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

4
plugins/channelrx/demodradiosonde/radiosondedemod.h

@ -136,6 +136,10 @@ public: @@ -136,6 +136,10 @@ public:
SWGSDRangel::SWGChannelSettings& response,
QString& errorMessage);
virtual int webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage);
virtual int webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

10
plugins/channelrx/demodssb/ssbdemod.cpp

@ -28,6 +28,7 @@ @@ -28,6 +28,7 @@
#include <QThread>
#include "SWGChannelSettings.h"
#include "SWGWorkspaceInfo.h"
#include "SWGSSBDemodSettings.h"
#include "SWGChannelReport.h"
#include "SWGSSBDemodReport.h"
@ -367,6 +368,15 @@ int SSBDemod::webapiSettingsGet( @@ -367,6 +368,15 @@ int SSBDemod::webapiSettingsGet(
return 200;
}
int SSBDemod::webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage)
{
(void) errorMessage;
response.setIndex(m_settings.m_workspaceIndex);
return 200;
}
int SSBDemod::webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

4
plugins/channelrx/demodssb/ssbdemod.h

@ -111,6 +111,10 @@ public: @@ -111,6 +111,10 @@ public:
SWGSDRangel::SWGChannelSettings& response,
QString& errorMessage);
virtual int webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage);
virtual int webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

10
plugins/channelrx/demodvor/vordemod.cpp

@ -27,6 +27,7 @@ @@ -27,6 +27,7 @@
#include <complex.h>
#include "SWGChannelSettings.h"
#include "SWGWorkspaceInfo.h"
#include "SWGVORDemodSettings.h"
#include "SWGChannelReport.h"
#include "SWGVORDemodReport.h"
@ -352,6 +353,15 @@ int VORDemod::webapiSettingsGet( @@ -352,6 +353,15 @@ int VORDemod::webapiSettingsGet(
return 200;
}
int VORDemod::webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage)
{
(void) errorMessage;
response.setIndex(m_settings.m_workspaceIndex);
return 200;
}
int VORDemod::webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

4
plugins/channelrx/demodvor/vordemod.h

@ -99,6 +99,10 @@ public: @@ -99,6 +99,10 @@ public:
SWGSDRangel::SWGChannelSettings& response,
QString& errorMessage);
virtual int webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage);
virtual int webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

10
plugins/channelrx/demodwfm/wfmdemod.cpp

@ -28,6 +28,7 @@ @@ -28,6 +28,7 @@
#include <QThread>
#include "SWGChannelSettings.h"
#include "SWGWorkspaceInfo.h"
#include "SWGWFMDemodSettings.h"
#include "SWGChannelReport.h"
#include "SWGWFMDemodReport.h"
@ -330,6 +331,15 @@ int WFMDemod::webapiSettingsGet( @@ -330,6 +331,15 @@ int WFMDemod::webapiSettingsGet(
return 200;
}
int WFMDemod::webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage)
{
(void) errorMessage;
response.setIndex(m_settings.m_workspaceIndex);
return 200;
}
int WFMDemod::webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

4
plugins/channelrx/demodwfm/wfmdemod.h

@ -102,6 +102,10 @@ public: @@ -102,6 +102,10 @@ public:
SWGSDRangel::SWGChannelSettings& response,
QString& errorMessage);
virtual int webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage);
virtual int webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

10
plugins/channelrx/filesink/filesink.cpp

@ -24,6 +24,7 @@ @@ -24,6 +24,7 @@
#include <QBuffer>
#include "SWGChannelSettings.h"
#include "SWGWorkspaceInfo.h"
#include "SWGChannelReport.h"
#include "SWGChannelActions.h"
@ -394,6 +395,15 @@ int FileSink::webapiSettingsGet( @@ -394,6 +395,15 @@ int FileSink::webapiSettingsGet(
return 200;
}
int FileSink::webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage)
{
(void) errorMessage;
response.setIndex(m_settings.m_workspaceIndex);
return 200;
}
int FileSink::webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

4
plugins/channelrx/filesink/filesink.h

@ -117,6 +117,10 @@ public: @@ -117,6 +117,10 @@ public:
SWGSDRangel::SWGChannelSettings& response,
QString& errorMessage);
virtual int webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage);
virtual int webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

10
plugins/channelrx/freqtracker/freqtracker.cpp

@ -29,6 +29,7 @@ @@ -29,6 +29,7 @@
#include <complex.h>
#include "SWGChannelSettings.h"
#include "SWGWorkspaceInfo.h"
#include "SWGFreqTrackerSettings.h"
#include "SWGChannelReport.h"
#include "SWGFreqTrackerReport.h"
@ -344,6 +345,15 @@ int FreqTracker::webapiSettingsGet( @@ -344,6 +345,15 @@ int FreqTracker::webapiSettingsGet(
return 200;
}
int FreqTracker::webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage)
{
(void) errorMessage;
response.setIndex(m_settings.m_workspaceIndex);
return 200;
}
int FreqTracker::webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

4
plugins/channelrx/freqtracker/freqtracker.h

@ -96,6 +96,10 @@ public: @@ -96,6 +96,10 @@ public:
SWGSDRangel::SWGChannelSettings& response,
QString& errorMessage);
virtual int webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage);
virtual int webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

10
plugins/channelrx/localsink/localsink.cpp

@ -24,6 +24,7 @@ @@ -24,6 +24,7 @@
#include <QBuffer>
#include "SWGChannelSettings.h"
#include "SWGWorkspaceInfo.h"
#include "util/simpleserializer.h"
#include "dsp/dspcommands.h"
@ -368,6 +369,15 @@ int LocalSink::webapiSettingsGet( @@ -368,6 +369,15 @@ int LocalSink::webapiSettingsGet(
return 200;
}
int LocalSink::webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage)
{
(void) errorMessage;
response.setIndex(m_settings.m_workspaceIndex);
return 200;
}
int LocalSink::webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

4
plugins/channelrx/localsink/localsink.h

@ -97,6 +97,10 @@ public: @@ -97,6 +97,10 @@ public:
SWGSDRangel::SWGChannelSettings& response,
QString& errorMessage);
virtual int webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage);
virtual int webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

10
plugins/channelrx/noisefigure/noisefigure.cpp

@ -31,6 +31,7 @@ @@ -31,6 +31,7 @@
#include <complex.h>
#include "SWGChannelSettings.h"
#include "SWGWorkspaceInfo.h"
#include "SWGChannelReport.h"
#include "dsp/dspengine.h"
@ -608,6 +609,15 @@ int NoiseFigure::webapiSettingsGet( @@ -608,6 +609,15 @@ int NoiseFigure::webapiSettingsGet(
return 200;
}
int NoiseFigure::webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage)
{
(void) errorMessage;
response.setIndex(m_settings.m_workspaceIndex);
return 200;
}
int NoiseFigure::webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

4
plugins/channelrx/noisefigure/noisefigure.h

@ -206,6 +206,10 @@ public: @@ -206,6 +206,10 @@ public:
SWGSDRangel::SWGChannelSettings& response,
QString& errorMessage);
virtual int webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage);
virtual int webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

10
plugins/channelrx/radioastronomy/radioastronomy.cpp

@ -31,6 +31,7 @@ @@ -31,6 +31,7 @@
#include <complex.h>
#include "SWGChannelSettings.h"
#include "SWGWorkspaceInfo.h"
#include "SWGChannelReport.h"
#include "SWGChannelActions.h"
#include "SWGRadioAstronomyActions.h"
@ -840,6 +841,15 @@ int RadioAstronomy::webapiSettingsGet( @@ -840,6 +841,15 @@ int RadioAstronomy::webapiSettingsGet(
return 200;
}
int RadioAstronomy::webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage)
{
(void) errorMessage;
response.setIndex(m_settings.m_workspaceIndex);
return 200;
}
int RadioAstronomy::webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

4
plugins/channelrx/radioastronomy/radioastronomy.h

@ -380,6 +380,10 @@ public: @@ -380,6 +380,10 @@ public:
SWGSDRangel::SWGChannelSettings& response,
QString& errorMessage) override;
virtual int webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage);
virtual int webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

10
plugins/channelrx/radioclock/radioclock.cpp

@ -29,6 +29,7 @@ @@ -29,6 +29,7 @@
#include <complex.h>
#include "SWGChannelSettings.h"
#include "SWGWorkspaceInfo.h"
#include "SWGChannelReport.h"
#include "dsp/dspengine.h"
@ -309,6 +310,15 @@ int RadioClock::webapiSettingsGet( @@ -309,6 +310,15 @@ int RadioClock::webapiSettingsGet(
return 200;
}
int RadioClock::webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage)
{
(void) errorMessage;
response.setIndex(m_settings.m_workspaceIndex);
return 200;
}
int RadioClock::webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

4
plugins/channelrx/radioclock/radioclock.h

@ -146,6 +146,10 @@ public: @@ -146,6 +146,10 @@ public:
SWGSDRangel::SWGChannelSettings& response,
QString& errorMessage);
virtual int webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage);
virtual int webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

10
plugins/channelrx/remotesink/remotesink.cpp

@ -29,6 +29,7 @@ @@ -29,6 +29,7 @@
#include <QThread>
#include "SWGChannelSettings.h"
#include "SWGWorkspaceInfo.h"
#include "util/simpleserializer.h"
#include "dsp/dspcommands.h"
@ -338,6 +339,15 @@ int RemoteSink::webapiSettingsGet( @@ -338,6 +339,15 @@ int RemoteSink::webapiSettingsGet(
return 200;
}
int RemoteSink::webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage)
{
(void) errorMessage;
response.setIndex(m_settings.m_workspaceIndex);
return 200;
}
int RemoteSink::webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

4
plugins/channelrx/remotesink/remotesink.h

@ -98,6 +98,10 @@ public: @@ -98,6 +98,10 @@ public:
SWGSDRangel::SWGChannelSettings& response,
QString& errorMessage);
virtual int webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage);
virtual int webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

10
plugins/channelrx/sigmffilesink/sigmffilesink.cpp

@ -24,6 +24,7 @@ @@ -24,6 +24,7 @@
#include <QBuffer>
#include "SWGChannelSettings.h"
#include "SWGWorkspaceInfo.h"
#include "SWGChannelReport.h"
#include "SWGChannelActions.h"
@ -394,6 +395,15 @@ int SigMFFileSink::webapiSettingsGet( @@ -394,6 +395,15 @@ int SigMFFileSink::webapiSettingsGet(
return 200;
}
int SigMFFileSink::webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage)
{
(void) errorMessage;
response.setIndex(m_settings.m_workspaceIndex);
return 200;
}
int SigMFFileSink::webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

4
plugins/channelrx/sigmffilesink/sigmffilesink.h

@ -117,6 +117,10 @@ public: @@ -117,6 +117,10 @@ public:
SWGSDRangel::SWGChannelSettings& response,
QString& errorMessage);
virtual int webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage);
virtual int webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

10
plugins/channelrx/udpsink/udpsink.cpp

@ -24,6 +24,7 @@ @@ -24,6 +24,7 @@
#include <QThread>
#include "SWGChannelSettings.h"
#include "SWGWorkspaceInfo.h"
#include "SWGUDPSinkSettings.h"
#include "SWGChannelReport.h"
#include "SWGUDPSinkReport.h"
@ -326,6 +327,15 @@ int UDPSink::webapiSettingsGet( @@ -326,6 +327,15 @@ int UDPSink::webapiSettingsGet(
return 200;
}
int UDPSink::webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage)
{
(void) errorMessage;
response.setIndex(m_settings.m_workspaceIndex);
return 200;
}
int UDPSink::webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

4
plugins/channelrx/udpsink/udpsink.h

@ -103,6 +103,10 @@ public: @@ -103,6 +103,10 @@ public:
SWGSDRangel::SWGChannelSettings& response,
QString& errorMessage);
virtual int webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage);
virtual int webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

10
plugins/channeltx/filesource/filesource.cpp

@ -24,6 +24,7 @@ @@ -24,6 +24,7 @@
#include <QThread>
#include "SWGChannelSettings.h"
#include "SWGWorkspaceInfo.h"
#include "SWGChannelReport.h"
#include "SWGChannelActions.h"
#include "SWGFileSourceReport.h"
@ -322,6 +323,15 @@ int FileSource::webapiSettingsGet( @@ -322,6 +323,15 @@ int FileSource::webapiSettingsGet(
return 200;
}
int FileSource::webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage)
{
(void) errorMessage;
response.setIndex(m_settings.m_workspaceIndex);
return 200;
}
int FileSource::webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

4
plugins/channeltx/filesource/filesource.h

@ -179,6 +179,10 @@ public: @@ -179,6 +179,10 @@ public:
SWGSDRangel::SWGChannelSettings& response,
QString& errorMessage);
virtual int webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage);
virtual int webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

10
plugins/channeltx/localsource/localsource.cpp

@ -23,6 +23,7 @@ @@ -23,6 +23,7 @@
#include <QThread>
#include "SWGChannelSettings.h"
#include "SWGWorkspaceInfo.h"
#include "util/simpleserializer.h"
#include "dsp/dspcommands.h"
@ -365,6 +366,15 @@ int LocalSource::webapiSettingsGet( @@ -365,6 +366,15 @@ int LocalSource::webapiSettingsGet(
return 200;
}
int LocalSource::webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage)
{
(void) errorMessage;
response.setIndex(m_settings.m_workspaceIndex);
return 200;
}
int LocalSource::webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

4
plugins/channeltx/localsource/localsource.h

@ -95,6 +95,10 @@ public: @@ -95,6 +95,10 @@ public:
SWGSDRangel::SWGChannelSettings& response,
QString& errorMessage);
virtual int webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage);
virtual int webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

10
plugins/channeltx/mod802.15.4/ieee_802_15_4_mod.cpp

@ -27,6 +27,7 @@ @@ -27,6 +27,7 @@
#include <QThread>
#include "SWGChannelSettings.h"
#include "SWGWorkspaceInfo.h"
#include "SWGChannelReport.h"
#include "SWGChannelActions.h"
#include "SWGIEEE_802_15_4_ModReport.h"
@ -437,6 +438,15 @@ int IEEE_802_15_4_Mod::webapiSettingsGet( @@ -437,6 +438,15 @@ int IEEE_802_15_4_Mod::webapiSettingsGet(
return 200;
}
int IEEE_802_15_4_Mod::webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage)
{
(void) errorMessage;
response.setIndex(m_settings.m_workspaceIndex);
return 200;
}
int IEEE_802_15_4_Mod::webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

4
plugins/channeltx/mod802.15.4/ieee_802_15_4_mod.h

@ -123,6 +123,10 @@ public: @@ -123,6 +123,10 @@ public:
SWGSDRangel::SWGChannelSettings& response,
QString& errorMessage);
virtual int webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage);
virtual int webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

10
plugins/channeltx/modais/aismod.cpp

@ -27,6 +27,7 @@ @@ -27,6 +27,7 @@
#include <QThread>
#include "SWGChannelSettings.h"
#include "SWGWorkspaceInfo.h"
#include "SWGChannelReport.h"
#include "SWGChannelActions.h"
@ -543,6 +544,15 @@ int AISMod::webapiSettingsGet( @@ -543,6 +544,15 @@ int AISMod::webapiSettingsGet(
return 200;
}
int AISMod::webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage)
{
(void) errorMessage;
response.setIndex(m_settings.m_workspaceIndex);
return 200;
}
int AISMod::webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

4
plugins/channeltx/modais/aismod.h

@ -184,6 +184,10 @@ public: @@ -184,6 +184,10 @@ public:
SWGSDRangel::SWGChannelSettings& response,
QString& errorMessage);
virtual int webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage);
virtual int webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

10
plugins/channeltx/modam/ammod.cpp

@ -27,6 +27,7 @@ @@ -27,6 +27,7 @@
#include <QThread>
#include "SWGChannelSettings.h"
#include "SWGWorkspaceInfo.h"
#include "SWGChannelReport.h"
#include "SWGAMModReport.h"
@ -416,6 +417,15 @@ int AMMod::webapiSettingsGet( @@ -416,6 +417,15 @@ int AMMod::webapiSettingsGet(
return 200;
}
int AMMod::webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage)
{
(void) errorMessage;
response.setIndex(m_settings.m_workspaceIndex);
return 200;
}
int AMMod::webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

4
plugins/channeltx/modam/ammod.h

@ -206,6 +206,10 @@ public: @@ -206,6 +206,10 @@ public:
SWGSDRangel::SWGChannelSettings& response,
QString& errorMessage);
virtual int webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage);
virtual int webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

10
plugins/channeltx/modatv/atvmod.cpp

@ -27,6 +27,7 @@ @@ -27,6 +27,7 @@
#include <QThread>
#include "SWGChannelSettings.h"
#include "SWGWorkspaceInfo.h"
#include "SWGChannelReport.h"
#include "SWGATVModReport.h"
@ -406,6 +407,15 @@ int ATVMod::webapiSettingsGet( @@ -406,6 +407,15 @@ int ATVMod::webapiSettingsGet(
return 200;
}
int ATVMod::webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage)
{
(void) errorMessage;
response.setIndex(m_settings.m_workspaceIndex);
return 200;
}
int ATVMod::webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

4
plugins/channeltx/modatv/atvmod.h

@ -278,6 +278,10 @@ public: @@ -278,6 +278,10 @@ public:
SWGSDRangel::SWGChannelSettings& response,
QString& errorMessage);
virtual int webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage);
virtual int webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

10
plugins/channeltx/modchirpchat/chirpchatmod.cpp

@ -26,6 +26,7 @@ @@ -26,6 +26,7 @@
#include <QThread>
#include "SWGChannelSettings.h"
#include "SWGWorkspaceInfo.h"
#include "SWGChannelReport.h"
#include "SWGChirpChatModReport.h"
@ -458,6 +459,15 @@ int ChirpChatMod::webapiSettingsGet( @@ -458,6 +459,15 @@ int ChirpChatMod::webapiSettingsGet(
return 200;
}
int ChirpChatMod::webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage)
{
(void) errorMessage;
response.setIndex(m_settings.m_workspaceIndex);
return 200;
}
int ChirpChatMod::webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

4
plugins/channeltx/modchirpchat/chirpchatmod.h

@ -121,6 +121,10 @@ public: @@ -121,6 +121,10 @@ public:
SWGSDRangel::SWGChannelSettings& response,
QString& errorMessage);
virtual int webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage);
virtual int webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

10
plugins/channeltx/moddatv/datvmod.cpp

@ -31,6 +31,7 @@ @@ -31,6 +31,7 @@
#include <QThread>
#include "SWGChannelSettings.h"
#include "SWGWorkspaceInfo.h"
#include "SWGChannelReport.h"
//#include "SWGDATVModReport.h"
@ -372,6 +373,15 @@ int DATVMod::webapiSettingsGet( @@ -372,6 +373,15 @@ int DATVMod::webapiSettingsGet(
return 200;
}
int DATVMod::webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage)
{
(void) errorMessage;
response.setIndex(m_settings.m_workspaceIndex);
return 200;
}
int DATVMod::webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

4
plugins/channeltx/moddatv/datvmod.h

@ -234,6 +234,10 @@ public: @@ -234,6 +234,10 @@ public:
SWGSDRangel::SWGChannelSettings& response,
QString& errorMessage);
virtual int webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage);
virtual int webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

10
plugins/channeltx/modfreedv/freedvmod.cpp

@ -28,6 +28,7 @@ @@ -28,6 +28,7 @@
#include <algorithm>
#include "SWGChannelSettings.h"
#include "SWGWorkspaceInfo.h"
#include "SWGChannelReport.h"
#include "SWGFreeDVModReport.h"
@ -391,6 +392,15 @@ int FreeDVMod::webapiSettingsGet( @@ -391,6 +392,15 @@ int FreeDVMod::webapiSettingsGet(
return 200;
}
int FreeDVMod::webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage)
{
(void) errorMessage;
response.setIndex(m_settings.m_workspaceIndex);
return 200;
}
int FreeDVMod::webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

4
plugins/channeltx/modfreedv/freedvmod.h

@ -210,6 +210,10 @@ public: @@ -210,6 +210,10 @@ public:
SWGSDRangel::SWGChannelSettings& response,
QString& errorMessage);
virtual int webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage);
virtual int webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

10
plugins/channeltx/modnfm/nfmmod.cpp

@ -24,6 +24,7 @@ @@ -24,6 +24,7 @@
#include <QThread>
#include "SWGChannelSettings.h"
#include "SWGWorkspaceInfo.h"
#include "SWGCWKeyerSettings.h"
#include "SWGChannelReport.h"
#include "SWGNFMModReport.h"
@ -463,6 +464,15 @@ int NFMMod::webapiSettingsGet( @@ -463,6 +464,15 @@ int NFMMod::webapiSettingsGet(
return 200;
}
int NFMMod::webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage)
{
(void) errorMessage;
response.setIndex(m_settings.m_workspaceIndex);
return 200;
}
int NFMMod::webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

4
plugins/channeltx/modnfm/nfmmod.h

@ -206,6 +206,10 @@ public: @@ -206,6 +206,10 @@ public:
SWGSDRangel::SWGChannelSettings& response,
QString& errorMessage);
virtual int webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage);
virtual int webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

10
plugins/channeltx/modpacket/packetmod.cpp

@ -27,6 +27,7 @@ @@ -27,6 +27,7 @@
#include <QThread>
#include "SWGChannelSettings.h"
#include "SWGWorkspaceInfo.h"
#include "SWGChannelReport.h"
#include "SWGChannelActions.h"
#include "SWGPacketModReport.h"
@ -492,6 +493,15 @@ int PacketMod::webapiSettingsGet( @@ -492,6 +493,15 @@ int PacketMod::webapiSettingsGet(
return 200;
}
int PacketMod::webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage)
{
(void) errorMessage;
response.setIndex(m_settings.m_workspaceIndex);
return 200;
}
int PacketMod::webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

4
plugins/channeltx/modpacket/packetmod.h

@ -174,6 +174,10 @@ public: @@ -174,6 +174,10 @@ public:
SWGSDRangel::SWGChannelSettings& response,
QString& errorMessage);
virtual int webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage);
virtual int webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

10
plugins/channeltx/modssb/ssbmod.cpp

@ -28,6 +28,7 @@ @@ -28,6 +28,7 @@
#include <algorithm>
#include "SWGChannelSettings.h"
#include "SWGWorkspaceInfo.h"
#include "SWGChannelReport.h"
#include "SWGSSBModReport.h"
@ -440,6 +441,15 @@ int SSBMod::webapiSettingsGet( @@ -440,6 +441,15 @@ int SSBMod::webapiSettingsGet(
return 200;
}
int SSBMod::webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage)
{
(void) errorMessage;
response.setIndex(m_settings.m_workspaceIndex);
return 200;
}
int SSBMod::webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

4
plugins/channeltx/modssb/ssbmod.h

@ -208,6 +208,10 @@ public: @@ -208,6 +208,10 @@ public:
SWGSDRangel::SWGChannelSettings& response,
QString& errorMessage);
virtual int webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage);
virtual int webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

10
plugins/channeltx/modwfm/wfmmod.cpp

@ -28,6 +28,7 @@ @@ -28,6 +28,7 @@
#include <algorithm>
#include "SWGChannelSettings.h"
#include "SWGWorkspaceInfo.h"
#include "SWGChannelReport.h"
#include "SWGAMModReport.h"
@ -402,6 +403,15 @@ int WFMMod::webapiSettingsGet( @@ -402,6 +403,15 @@ int WFMMod::webapiSettingsGet(
return 200;
}
int WFMMod::webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage)
{
(void) errorMessage;
response.setIndex(m_settings.m_workspaceIndex);
return 200;
}
int WFMMod::webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

4
plugins/channeltx/modwfm/wfmmod.h

@ -206,6 +206,10 @@ public: @@ -206,6 +206,10 @@ public:
SWGSDRangel::SWGChannelSettings& response,
QString& errorMessage);
virtual int webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage);
virtual int webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

10
plugins/channeltx/remotesource/remotesource.cpp

@ -24,6 +24,7 @@ @@ -24,6 +24,7 @@
#include <QThread>
#include "SWGChannelSettings.h"
#include "SWGWorkspaceInfo.h"
#include "SWGChannelReport.h"
#include "SWGRemoteSourceReport.h"
@ -300,6 +301,15 @@ int RemoteSource::webapiSettingsGet( @@ -300,6 +301,15 @@ int RemoteSource::webapiSettingsGet(
return 200;
}
int RemoteSource::webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage)
{
(void) errorMessage;
response.setIndex(m_settings.m_workspaceIndex);
return 200;
}
int RemoteSource::webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

4
plugins/channeltx/remotesource/remotesource.h

@ -188,6 +188,10 @@ public: @@ -188,6 +188,10 @@ public:
SWGSDRangel::SWGChannelSettings& response,
QString& errorMessage);
virtual int webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage);
virtual int webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

10
plugins/channeltx/udpsource/udpsource.cpp

@ -22,6 +22,7 @@ @@ -22,6 +22,7 @@
#include <QThread>
#include "SWGChannelSettings.h"
#include "SWGWorkspaceInfo.h"
#include "SWGChannelReport.h"
#include "SWGUDPSourceReport.h"
@ -340,6 +341,15 @@ int UDPSource::webapiSettingsGet( @@ -340,6 +341,15 @@ int UDPSource::webapiSettingsGet(
return 200;
}
int UDPSource::webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage)
{
(void) errorMessage;
response.setIndex(m_settings.m_workspaceIndex);
return 200;
}
int UDPSource::webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

4
plugins/channeltx/udpsource/udpsource.h

@ -127,6 +127,10 @@ public: @@ -127,6 +127,10 @@ public:
SWGSDRangel::SWGChannelSettings& response,
QString& errorMessage);
virtual int webapiWorkspaceGet(
SWGSDRangel::SWGWorkspaceInfo& response,
QString& errorMessage);
virtual int webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,

8
plugins/feature/afc/afcgui.cpp

@ -55,6 +55,7 @@ bool AFCGUI::deserialize(const QByteArray& data) @@ -55,6 +55,7 @@ bool AFCGUI::deserialize(const QByteArray& data)
{
if (m_settings.deserialize(data))
{
m_feature->setWorkspaceIndex(m_settings.m_workspaceIndex);
displaySettings();
applySettings(true);
return true;
@ -139,6 +140,7 @@ AFCGUI::AFCGUI(PluginAPI* pluginAPI, FeatureUISet *featureUISet, Feature *featur @@ -139,6 +140,7 @@ AFCGUI::AFCGUI(PluginAPI* pluginAPI, FeatureUISet *featureUISet, Feature *featur
m_doApplySettings(true),
m_lastFeatureState(0)
{
m_feature = feature;
setAttribute(Qt::WA_DeleteOnClose, true);
m_helpURL = "plugins/feature/afc/readme.md";
RollupContents *rollupContents = getRollupContents();
@ -179,6 +181,12 @@ AFCGUI::~AFCGUI() @@ -179,6 +181,12 @@ AFCGUI::~AFCGUI()
delete ui;
}
void AFCGUI::setWorkspaceIndex(int index)
{
m_settings.m_workspaceIndex = index;
m_feature->setWorkspaceIndex(index);
}
void AFCGUI::blockApplySettings(bool block)
{
m_doApplySettings = !block;

2
plugins/feature/afc/afcgui.h

@ -43,7 +43,7 @@ public: @@ -43,7 +43,7 @@ public:
QByteArray serialize() const;
bool deserialize(const QByteArray& data);
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
virtual void setWorkspaceIndex(int index) { m_settings.m_workspaceIndex = index; }
virtual void setWorkspaceIndex(int index);
virtual int getWorkspaceIndex() const { return m_settings.m_workspaceIndex; }
virtual void setGeometryBytes(const QByteArray& blob) { m_settings.m_geometryBytes = blob; }
virtual QByteArray getGeometryBytes() const { return m_settings.m_geometryBytes; }

8
plugins/feature/ais/aisgui.cpp

@ -112,6 +112,7 @@ bool AISGUI::deserialize(const QByteArray& data) @@ -112,6 +112,7 @@ bool AISGUI::deserialize(const QByteArray& data)
{
if (m_settings.deserialize(data))
{
m_feature->setWorkspaceIndex(m_settings.m_workspaceIndex);
displaySettings();
applySettings(true);
return true;
@ -189,6 +190,7 @@ AISGUI::AISGUI(PluginAPI* pluginAPI, FeatureUISet *featureUISet, Feature *featur @@ -189,6 +190,7 @@ AISGUI::AISGUI(PluginAPI* pluginAPI, FeatureUISet *featureUISet, Feature *featur
m_doApplySettings(true),
m_lastFeatureState(0)
{
m_feature = feature;
setAttribute(Qt::WA_DeleteOnClose, true);
m_helpURL = "plugins/feature/ais/readme.md";
RollupContents *rollupContents = getRollupContents();
@ -241,6 +243,12 @@ AISGUI::~AISGUI() @@ -241,6 +243,12 @@ AISGUI::~AISGUI()
delete ui;
}
void AISGUI::setWorkspaceIndex(int index)
{
m_settings.m_workspaceIndex = index;
m_feature->setWorkspaceIndex(index);
}
void AISGUI::blockApplySettings(bool block)
{
m_doApplySettings = !block;

2
plugins/feature/ais/aisgui.h

@ -57,7 +57,7 @@ public: @@ -57,7 +57,7 @@ public:
QByteArray serialize() const;
bool deserialize(const QByteArray& data);
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
virtual void setWorkspaceIndex(int index) { m_settings.m_workspaceIndex = index; }
virtual void setWorkspaceIndex(int index);
virtual int getWorkspaceIndex() const { return m_settings.m_workspaceIndex; }
virtual void setGeometryBytes(const QByteArray& blob) { m_settings.m_geometryBytes = blob; }
virtual QByteArray getGeometryBytes() const { return m_settings.m_geometryBytes; }

8
plugins/feature/antennatools/antennatoolsgui.cpp

@ -59,6 +59,7 @@ bool AntennaToolsGUI::deserialize(const QByteArray& data) @@ -59,6 +59,7 @@ bool AntennaToolsGUI::deserialize(const QByteArray& data)
{
if (m_settings.deserialize(data))
{
m_feature->setWorkspaceIndex(m_settings.m_workspaceIndex);
displaySettings();
applySettings(true);
return true;
@ -133,6 +134,7 @@ AntennaToolsGUI::AntennaToolsGUI(PluginAPI* pluginAPI, FeatureUISet *featureUISe @@ -133,6 +134,7 @@ AntennaToolsGUI::AntennaToolsGUI(PluginAPI* pluginAPI, FeatureUISet *featureUISe
m_doApplySettings(true),
m_deviceSets(0)
{
m_feature = feature;
setAttribute(Qt::WA_DeleteOnClose, true);
m_helpURL = "plugins/feature/antennatools/readme.md";
RollupContents *rollupContents = getRollupContents();
@ -163,6 +165,12 @@ AntennaToolsGUI::~AntennaToolsGUI() @@ -163,6 +165,12 @@ AntennaToolsGUI::~AntennaToolsGUI()
delete ui;
}
void AntennaToolsGUI::setWorkspaceIndex(int index)
{
m_settings.m_workspaceIndex = index;
m_feature->setWorkspaceIndex(index);
}
void AntennaToolsGUI::blockApplySettings(bool block)
{
m_doApplySettings = !block;

2
plugins/feature/antennatools/antennatoolsgui.h

@ -46,7 +46,7 @@ public: @@ -46,7 +46,7 @@ public:
QByteArray serialize() const;
bool deserialize(const QByteArray& data);
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
virtual void setWorkspaceIndex(int index) { m_settings.m_workspaceIndex = index; }
virtual void setWorkspaceIndex(int index);
virtual int getWorkspaceIndex() const { return m_settings.m_workspaceIndex; }
virtual void setGeometryBytes(const QByteArray& blob) { m_settings.m_geometryBytes = blob; }
virtual QByteArray getGeometryBytes() const { return m_settings.m_geometryBytes; }

8
plugins/feature/aprs/aprsgui.cpp

@ -132,6 +132,7 @@ bool APRSGUI::deserialize(const QByteArray& data) @@ -132,6 +132,7 @@ bool APRSGUI::deserialize(const QByteArray& data)
{
if (m_settings.deserialize(data))
{
m_feature->setWorkspaceIndex(m_settings.m_workspaceIndex);
displaySettings();
applySettings(true);
return true;
@ -430,6 +431,7 @@ APRSGUI::APRSGUI(PluginAPI* pluginAPI, FeatureUISet *featureUISet, Feature *feat @@ -430,6 +431,7 @@ APRSGUI::APRSGUI(PluginAPI* pluginAPI, FeatureUISet *featureUISet, Feature *feat
m_doApplySettings(true),
m_lastFeatureState(0)
{
m_feature = feature;
setAttribute(Qt::WA_DeleteOnClose, true);
m_helpURL = "plugins/feature/aprs/readme.md";
RollupContents *rollupContents = getRollupContents();
@ -572,6 +574,12 @@ APRSGUI::~APRSGUI() @@ -572,6 +574,12 @@ APRSGUI::~APRSGUI()
delete ui;
}
void APRSGUI::setWorkspaceIndex(int index)
{
m_settings.m_workspaceIndex = index;
m_feature->setWorkspaceIndex(index);
}
void APRSGUI::blockApplySettings(bool block)
{
m_doApplySettings = !block;

2
plugins/feature/aprs/aprsgui.h

@ -105,7 +105,7 @@ public: @@ -105,7 +105,7 @@ public:
QByteArray serialize() const;
bool deserialize(const QByteArray& data);
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
virtual void setWorkspaceIndex(int index) { m_settings.m_workspaceIndex = index; }
virtual void setWorkspaceIndex(int index);
virtual int getWorkspaceIndex() const { return m_settings.m_workspaceIndex; }
virtual void setGeometryBytes(const QByteArray& blob) { m_settings.m_geometryBytes = blob; }
virtual QByteArray getGeometryBytes() const { return m_settings.m_geometryBytes; }

8
plugins/feature/demodanalyzer/demodanalyzergui.cpp

@ -57,6 +57,7 @@ bool DemodAnalyzerGUI::deserialize(const QByteArray& data) @@ -57,6 +57,7 @@ bool DemodAnalyzerGUI::deserialize(const QByteArray& data)
{
if (m_settings.deserialize(data))
{
m_feature->setWorkspaceIndex(m_settings.m_workspaceIndex);
displaySettings();
applySettings(true);
return true;
@ -150,6 +151,7 @@ DemodAnalyzerGUI::DemodAnalyzerGUI(PluginAPI* pluginAPI, FeatureUISet *featureUI @@ -150,6 +151,7 @@ DemodAnalyzerGUI::DemodAnalyzerGUI(PluginAPI* pluginAPI, FeatureUISet *featureUI
m_lastFeatureState(0),
m_selectedChannel(nullptr)
{
m_feature = feature;
setAttribute(Qt::WA_DeleteOnClose, true);
m_helpURL = "plugins/feature/demodanalyzer/readme.md";
RollupContents *rollupContents = getRollupContents();
@ -201,6 +203,12 @@ void DemodAnalyzerGUI::blockApplySettings(bool block) @@ -201,6 +203,12 @@ void DemodAnalyzerGUI::blockApplySettings(bool block)
m_doApplySettings = !block;
}
void DemodAnalyzerGUI::setWorkspaceIndex(int index)
{
m_settings.m_workspaceIndex = index;
m_feature->setWorkspaceIndex(index);
}
void DemodAnalyzerGUI::displaySettings()
{
setTitleColor(m_settings.m_rgbColor);

2
plugins/feature/demodanalyzer/demodanalyzergui.h

@ -49,7 +49,7 @@ public: @@ -49,7 +49,7 @@ public:
QByteArray serialize() const;
bool deserialize(const QByteArray& data);
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
virtual void setWorkspaceIndex(int index) { m_settings.m_workspaceIndex = index; }
virtual void setWorkspaceIndex(int index);
virtual int getWorkspaceIndex() const { return m_settings.m_workspaceIndex; }
virtual void setGeometryBytes(const QByteArray& blob) { m_settings.m_geometryBytes = blob; }
virtual QByteArray getGeometryBytes() const { return m_settings.m_geometryBytes; }

8
plugins/feature/gs232controller/gs232controllergui.cpp

@ -60,6 +60,7 @@ bool GS232ControllerGUI::deserialize(const QByteArray& data) @@ -60,6 +60,7 @@ bool GS232ControllerGUI::deserialize(const QByteArray& data)
{
if (m_settings.deserialize(data))
{
m_feature->setWorkspaceIndex(m_settings.m_workspaceIndex);
displaySettings();
applySettings(true);
return true;
@ -149,6 +150,7 @@ GS232ControllerGUI::GS232ControllerGUI(PluginAPI* pluginAPI, FeatureUISet *featu @@ -149,6 +150,7 @@ GS232ControllerGUI::GS232ControllerGUI(PluginAPI* pluginAPI, FeatureUISet *featu
m_lastFeatureState(0),
m_lastOnTarget(false)
{
m_feature = feature;
setAttribute(Qt::WA_DeleteOnClose, true);
m_helpURL = "plugins/feature/gs232controller/readme.md";
RollupContents *rollupContents = getRollupContents();
@ -183,6 +185,12 @@ GS232ControllerGUI::~GS232ControllerGUI() @@ -183,6 +185,12 @@ GS232ControllerGUI::~GS232ControllerGUI()
delete ui;
}
void GS232ControllerGUI::setWorkspaceIndex(int index)
{
m_settings.m_workspaceIndex = index;
m_feature->setWorkspaceIndex(index);
}
void GS232ControllerGUI::blockApplySettings(bool block)
{
m_doApplySettings = !block;

2
plugins/feature/gs232controller/gs232controllergui.h

@ -45,7 +45,7 @@ public: @@ -45,7 +45,7 @@ public:
QByteArray serialize() const;
bool deserialize(const QByteArray& data);
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
virtual void setWorkspaceIndex(int index) { m_settings.m_workspaceIndex = index; }
virtual void setWorkspaceIndex(int index);
virtual int getWorkspaceIndex() const { return m_settings.m_workspaceIndex; }
virtual void setGeometryBytes(const QByteArray& blob) { m_settings.m_geometryBytes = blob; }
virtual QByteArray getGeometryBytes() const { return m_settings.m_geometryBytes; }

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save