| 228 | } |
| 229 | |
| 230 | void SpectrumCanvas::OnMouseMoved(wxMouseEvent& event) { |
| 231 | InteractiveCanvas::OnMouseMoved(event); |
| 232 | if (mouseTracker.mouseDown()) { |
| 233 | int freqChange = mouseTracker.getDeltaMouseX() * getBandwidth(); |
| 234 | |
| 235 | if (freqChange != 0) { |
| 236 | moveCenterFrequency(freqChange); |
| 237 | } |
| 238 | } |
| 239 | else if (scaleFactorEnabled && mouseTracker.mouseRightDown()) { |
| 240 | |
| 241 | updateScaleFactorFromYMove(mouseTracker.getDeltaMouseY()); |
| 242 | |
| 243 | } else { |
| 244 | if (scaleFactorEnabled) { |
| 245 | setStatusText("Drag horizontal to adjust center frequency. Arrow keys or wheel to navigate/zoom bandwidth. Right-drag or SHIFT+UP/DOWN to adjust visual gain, right-click to reset it. 'B' to toggle decibels display."); |
| 246 | } else { |
| 247 | setStatusText("Displaying spectrum of active demodulator."); |
| 248 | } |
| 249 | } |
| 250 | } |
| 251 | |
| 252 | void SpectrumCanvas::OnMouseDown(wxMouseEvent& event) { |
| 253 | SetCursor(wxCURSOR_SIZEWE); |
nothing calls this directly
no test coverage detected