| 299 | } |
| 300 | |
| 301 | void SpectrumCanvas::OnMouseRightReleased(wxMouseEvent& event) { |
| 302 | SetCursor(wxCURSOR_CROSS); |
| 303 | mouseTracker.setHorizDragLock(false); |
| 304 | |
| 305 | if (!mouseTracker.getOriginDeltaMouseY()) { |
| 306 | resetScaleFactor = true; |
| 307 | |
| 308 | wxGetApp().getSpectrumProcessor()->setPeakHold(wxGetApp().getSpectrumProcessor()->getPeakHold()); |
| 309 | |
| 310 | //make the peak hold act on the current dmod also, like a zoomed-in version. |
| 311 | if (wxGetApp().getDemodSpectrumProcessor()) { |
| 312 | wxGetApp().getDemodSpectrumProcessor()->setPeakHold(wxGetApp().getSpectrumProcessor()->getPeakHold()); |
| 313 | } |
| 314 | } |
| 315 | |
| 316 | mouseTracker.OnMouseRightReleased(event); |
| 317 | } |
| 318 | |
| 319 | void SpectrumCanvas::OnKeyDown(wxKeyEvent& event) { |
| 320 | InteractiveCanvas::OnKeyDown(event); |
nothing calls this directly
no test coverage detected