| 543 | } |
| 544 | |
| 545 | bool FrequencyPlotDialog::Show(bool show) |
| 546 | { |
| 547 | if (!show) |
| 548 | { |
| 549 | mFreqPlot->SetCursor(*mArrowCursor); |
| 550 | } |
| 551 | |
| 552 | bool shown = IsShown(); |
| 553 | |
| 554 | if (show && !shown) |
| 555 | { |
| 556 | dBRange = DecibelScaleCutoff.Read(); |
| 557 | if(dBRange < 90.) |
| 558 | dBRange = 90.; |
| 559 | if (!GetAudio()) |
| 560 | return false; |
| 561 | // Don't send an event. We need the recalc right away. |
| 562 | // so that mAnalyst is valid when we paint. |
| 563 | //SendRecalcEvent(); |
| 564 | Recalc(); |
| 565 | } |
| 566 | |
| 567 | bool res = wxDialogWrapper::Show(show); |
| 568 | |
| 569 | return res; |
| 570 | } |
| 571 | |
| 572 | void FrequencyPlotDialog::OnSize(wxSizeEvent & WXUNUSED(event)) |
| 573 | { |
no test coverage detected