1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-07 08:24:43 -04:00

SSB mod: restored channel marker slot

This commit is contained in:
f4exb
2017-10-21 16:47:30 +02:00
parent 0ee4e4040a
commit fa393b2873
2 changed files with 10 additions and 1 deletions
+9
View File
@@ -114,6 +114,13 @@ bool SSBModGUI::handleMessage(const Message& message)
}
}
void SSBModGUI::channelMarkerChanged()
{
m_settings.m_inputFrequencyOffset = m_channelMarker.getCenterFrequency();
displaySettings();
applySettings();
}
void SSBModGUI::channelMarkerUpdate()
{
m_settings.m_rgbColor = m_channelMarker.getColor().rgb();
@@ -479,6 +486,8 @@ SSBModGUI::SSBModGUI(PluginAPI* pluginAPI, DeviceSinkAPI *deviceAPI, QWidget* pa
m_channelMarker.setCenterFrequency(0);
m_channelMarker.setVisible(true);
connect(&m_channelMarker, SIGNAL(changed()), this, SLOT(channelMarkerChanged()));
m_deviceAPI->registerChannelInstance(m_channelID, this);
m_deviceAPI->addChannelMarker(&m_channelMarker);
m_deviceAPI->addRollupWidget(this);