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:
parent
9d1160e7cd
commit
22a8f160f0
@ -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)) {
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
@ -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()
|
||||||
|
@ -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() :
|
||||||
|
@ -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)) {
|
||||||
|
@ -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;
|
||||||
|
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user