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

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);

View File

@ -58,7 +58,7 @@ public:
private slots:
void handleSourceMessages();
void channelMarkerChanged();
void on_deltaFrequency_changed(qint64 value);
void on_dsb_toggled(bool checked);
void on_audioBinaural_toggled(bool checked);