1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-21 23:55:13 -05: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 d82e3051bf
commit b4d24f6c44
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)
{
if ((selectedChannel == m_selectedChannel) || (m_availableChannels.indexOfObject(selectedChannel) == -1)) {

View File

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

View File

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

View File

@ -48,6 +48,7 @@ const QStringList DemodAnalyzerSettings::m_channelURIs = {
QStringLiteral("sdrangel.channeltx.modssb"),
QStringLiteral("sdrangel.channel.wfmdemod"),
QStringLiteral("sdrangel.channeltx.modwfm"),
QStringLiteral("sdrangel.channel.wdsprx"),
};
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)
{
if ((selectedChannel == m_selectedChannel) || (m_availableChannels.indexOfObject(selectedChannel) == -1)) {

View File

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

View File

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