mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2026-06-11 10:18:52 -04:00
Support ranged frequency input for center frequency
This commit is contained in:
@@ -2191,3 +2191,14 @@ void AppFrame::setSpectrumAvgSpeed(double avg) {
|
||||
spectrumAvgMeter->setUserInputValue(avg);
|
||||
}
|
||||
|
||||
void AppFrame::setViewState(long long center_freq, int bandwidth) {
|
||||
spectrumCanvas->setView(center_freq, bandwidth);
|
||||
waterfallCanvas->setView(center_freq, bandwidth);
|
||||
}
|
||||
|
||||
void AppFrame::setViewState(long long center_freq) {
|
||||
spectrumCanvas->setCenterFrequency(wxGetApp().getFrequency());
|
||||
waterfallCanvas->setCenterFrequency(wxGetApp().getFrequency());
|
||||
spectrumCanvas->disableView();
|
||||
waterfallCanvas->disableView();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user