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:
parent
d82e3051bf
commit
b4d24f6c44
@ -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)) {
|
||||
|
@ -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;
|
||||
|
||||
|
@ -192,6 +192,7 @@ DemodAnalyzerGUI::DemodAnalyzerGUI(PluginAPI* pluginAPI, FeatureUISet *featureUI
|
||||
makeUIConnections();
|
||||
DialPopup::addPopupsToChildDials(this);
|
||||
m_resizer.enableChildMouseTracking();
|
||||
m_demodAnalyzer->getAvailableChannelsReport();
|
||||
}
|
||||
|
||||
DemodAnalyzerGUI::~DemodAnalyzerGUI()
|
||||
|
@ -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() :
|
||||
|
@ -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)) {
|
||||
|
@ -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;
|
||||
|
@ -216,6 +216,7 @@ MorseDecoderGUI::MorseDecoderGUI(PluginAPI* pluginAPI, FeatureUISet *featureUISe
|
||||
makeUIConnections();
|
||||
DialPopup::addPopupsToChildDials(this);
|
||||
m_resizer.enableChildMouseTracking();
|
||||
m_morseDecoder->getAvailableChannelsReport();
|
||||
}
|
||||
|
||||
MorseDecoderGUI::~MorseDecoderGUI()
|
||||
|
Loading…
Reference in New Issue
Block a user