1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2025-06-10 10:32:35 -04:00

Update channel list upon Morse Decoder and Demod Analyzer GUI creation. Fixes #2263

This commit is contained in:
f4exb 2024-10-05 17:13:03 +02:00
parent 9d1160e7cd
commit 22a8f160f0
7 changed files with 17 additions and 0 deletions

View File

@ -323,6 +323,12 @@ void DemodAnalyzer::notifyUpdate(const QStringList& renameFrom, const QStringLis
} }
} }
void DemodAnalyzer::getAvailableChannelsReport()
{
notifyUpdate(QStringList{}, QStringList{});
}
void DemodAnalyzer::setChannel(ChannelAPI *selectedChannel) void DemodAnalyzer::setChannel(ChannelAPI *selectedChannel)
{ {
if ((selectedChannel == m_selectedChannel) || (m_availableChannels.indexOfObject(selectedChannel) == -1)) { if ((selectedChannel == m_selectedChannel) || (m_availableChannels.indexOfObject(selectedChannel) == -1)) {

View File

@ -194,6 +194,8 @@ public:
const QStringList& featureSettingsKeys, const QStringList& featureSettingsKeys,
SWGSDRangel::SWGFeatureSettings& response); SWGSDRangel::SWGFeatureSettings& response);
void getAvailableChannelsReport();
static const char* const m_featureIdURI; static const char* const m_featureIdURI;
static const char* const m_featureId; static const char* const m_featureId;

View File

@ -192,6 +192,7 @@ DemodAnalyzerGUI::DemodAnalyzerGUI(PluginAPI* pluginAPI, FeatureUISet *featureUI
makeUIConnections(); makeUIConnections();
DialPopup::addPopupsToChildDials(this); DialPopup::addPopupsToChildDials(this);
m_resizer.enableChildMouseTracking(); m_resizer.enableChildMouseTracking();
m_demodAnalyzer->getAvailableChannelsReport();
} }
DemodAnalyzerGUI::~DemodAnalyzerGUI() DemodAnalyzerGUI::~DemodAnalyzerGUI()

View File

@ -48,6 +48,7 @@ const QStringList DemodAnalyzerSettings::m_channelURIs = {
QStringLiteral("sdrangel.channeltx.modssb"), QStringLiteral("sdrangel.channeltx.modssb"),
QStringLiteral("sdrangel.channel.wfmdemod"), QStringLiteral("sdrangel.channel.wfmdemod"),
QStringLiteral("sdrangel.channeltx.modwfm"), QStringLiteral("sdrangel.channeltx.modwfm"),
QStringLiteral("sdrangel.channel.wdsprx"),
}; };
DemodAnalyzerSettings::DemodAnalyzerSettings() : DemodAnalyzerSettings::DemodAnalyzerSettings() :

View File

@ -372,6 +372,11 @@ void MorseDecoder::notifyUpdate(const QStringList& renameFrom, const QStringList
} }
} }
void MorseDecoder::getAvailableChannelsReport()
{
notifyUpdate(QStringList{}, QStringList{});
}
void MorseDecoder::setChannel(ChannelAPI *selectedChannel) void MorseDecoder::setChannel(ChannelAPI *selectedChannel)
{ {
if ((selectedChannel == m_selectedChannel) || (m_availableChannels.indexOfObject(selectedChannel) == -1)) { if ((selectedChannel == m_selectedChannel) || (m_availableChannels.indexOfObject(selectedChannel) == -1)) {

View File

@ -216,6 +216,7 @@ public:
SWGSDRangel::SWGFeatureSettings& response); SWGSDRangel::SWGFeatureSettings& response);
ScopeVis *getScopeVis() { return &m_scopeVis; } ScopeVis *getScopeVis() { return &m_scopeVis; }
void getAvailableChannelsReport();
static const char* const m_featureIdURI; static const char* const m_featureIdURI;
static const char* const m_featureId; static const char* const m_featureId;

View File

@ -216,6 +216,7 @@ MorseDecoderGUI::MorseDecoderGUI(PluginAPI* pluginAPI, FeatureUISet *featureUISe
makeUIConnections(); makeUIConnections();
DialPopup::addPopupsToChildDials(this); DialPopup::addPopupsToChildDials(this);
m_resizer.enableChildMouseTracking(); m_resizer.enableChildMouseTracking();
m_morseDecoder->getAvailableChannelsReport();
} }
MorseDecoderGUI::~MorseDecoderGUI() MorseDecoderGUI::~MorseDecoderGUI()