mirror of https://github.com/f4exb/sdrangel.git
SSB mod: restored channel marker slot
This commit is contained in:
parent
0ee4e4040a
commit
fa393b2873
|
@ -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()
|
void SSBModGUI::channelMarkerUpdate()
|
||||||
{
|
{
|
||||||
m_settings.m_rgbColor = m_channelMarker.getColor().rgb();
|
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.setCenterFrequency(0);
|
||||||
m_channelMarker.setVisible(true);
|
m_channelMarker.setVisible(true);
|
||||||
|
|
||||||
|
connect(&m_channelMarker, SIGNAL(changed()), this, SLOT(channelMarkerChanged()));
|
||||||
|
|
||||||
m_deviceAPI->registerChannelInstance(m_channelID, this);
|
m_deviceAPI->registerChannelInstance(m_channelID, this);
|
||||||
m_deviceAPI->addChannelMarker(&m_channelMarker);
|
m_deviceAPI->addChannelMarker(&m_channelMarker);
|
||||||
m_deviceAPI->addRollupWidget(this);
|
m_deviceAPI->addRollupWidget(this);
|
||||||
|
|
|
@ -58,7 +58,7 @@ public:
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void handleSourceMessages();
|
void handleSourceMessages();
|
||||||
|
void channelMarkerChanged();
|
||||||
void on_deltaFrequency_changed(qint64 value);
|
void on_deltaFrequency_changed(qint64 value);
|
||||||
void on_dsb_toggled(bool checked);
|
void on_dsb_toggled(bool checked);
|
||||||
void on_audioBinaural_toggled(bool checked);
|
void on_audioBinaural_toggled(bool checked);
|
||||||
|
|
Loading…
Reference in New Issue