mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2025-09-03 05:37:55 -04:00
Update waterfall helptip
This commit is contained in:
parent
9de1abd539
commit
58fb313d6f
@ -363,18 +363,15 @@ void WaterfallCanvas::OnKeyDown(wxKeyEvent& event) {
|
|||||||
|
|
||||||
if (freq < minFreq) {
|
if (freq < minFreq) {
|
||||||
wxGetApp().setFrequency(freq+(wxGetApp().getSampleRate()/2));
|
wxGetApp().setFrequency(freq+(wxGetApp().getSampleRate()/2));
|
||||||
setStatusText("Set center frequency: %s", freq);
|
|
||||||
}
|
}
|
||||||
if (freq > maxFreq) {
|
if (freq > maxFreq) {
|
||||||
wxGetApp().setFrequency(freq-(wxGetApp().getSampleRate()/2));
|
wxGetApp().setFrequency(freq-(wxGetApp().getSampleRate()/2));
|
||||||
setStatusText("Set center frequency: %s", freq);
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (spectrumCanvas) {
|
if (spectrumCanvas) {
|
||||||
spectrumCanvas->setCenterFrequency(freq);
|
spectrumCanvas->setCenterFrequency(freq);
|
||||||
}
|
}
|
||||||
wxGetApp().setFrequency(freq);
|
wxGetApp().setFrequency(freq);
|
||||||
setStatusText("Set center frequency: %s", freq);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -412,7 +409,6 @@ void WaterfallCanvas::OnMouseMoved(wxMouseEvent& event) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
demod->setBandwidth(currentBW);
|
demod->setBandwidth(currentBW);
|
||||||
setStatusText("Set demodulator bandwidth: %s", demod->getBandwidth());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dragState == WF_DRAG_FREQUENCY) {
|
if (dragState == WF_DRAG_FREQUENCY) {
|
||||||
@ -430,8 +426,6 @@ void WaterfallCanvas::OnMouseMoved(wxMouseEvent& event) {
|
|||||||
currentFreq = demod->getFrequency();
|
currentFreq = demod->getFrequency();
|
||||||
demod->updateLabel(currentFreq);
|
demod->updateLabel(currentFreq);
|
||||||
}
|
}
|
||||||
|
|
||||||
setStatusText("Set demodulator frequency: %s", demod->getFrequency());
|
|
||||||
}
|
}
|
||||||
} else if (mouseTracker.mouseRightDown()) {
|
} else if (mouseTracker.mouseRightDown()) {
|
||||||
mouseZoom = mouseZoom + ((1.0 - (mouseTracker.getDeltaMouseY() * 4.0)) - mouseZoom) * 0.1;
|
mouseZoom = mouseZoom + ((1.0 - (mouseTracker.getDeltaMouseY() * 4.0)) - mouseZoom) * 0.1;
|
||||||
@ -511,14 +505,14 @@ void WaterfallCanvas::OnMouseMoved(wxMouseEvent& event) {
|
|||||||
|
|
||||||
mouseTracker.setVertDragLock(true);
|
mouseTracker.setVertDragLock(true);
|
||||||
mouseTracker.setHorizDragLock(false);
|
mouseTracker.setHorizDragLock(false);
|
||||||
setStatusText("Click and drag to change demodulator bandwidth. SPACE for direct frequency input. D to delete, S for stereo.");
|
setStatusText("Click and drag to change demodulator bandwidth. SPACE for direct frequency input. M for mute, D to delete, S for stereo.");
|
||||||
} else {
|
} else {
|
||||||
SetCursor(wxCURSOR_SIZING);
|
SetCursor(wxCURSOR_SIZING);
|
||||||
nextDragState = WF_DRAG_FREQUENCY;
|
nextDragState = WF_DRAG_FREQUENCY;
|
||||||
|
|
||||||
mouseTracker.setVertDragLock(true);
|
mouseTracker.setVertDragLock(true);
|
||||||
mouseTracker.setHorizDragLock(false);
|
mouseTracker.setHorizDragLock(false);
|
||||||
setStatusText("Click and drag to change demodulator frequency; SPACE for direct input. D to delete, S for stereo.");
|
setStatusText("Click and drag to change demodulator frequency; SPACE for direct input. M for mute, D to delete, S for stereo.");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
SetCursor(wxCURSOR_CROSS);
|
SetCursor(wxCURSOR_CROSS);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user