| 423 | } |
| 424 | |
| 425 | void ExportFilePanel::OnSampleRateChange(wxCommandEvent &event) |
| 426 | { |
| 427 | const auto clientData = event.GetClientData(); |
| 428 | if(clientData == nullptr) |
| 429 | { |
| 430 | CustomSampleRateDialog dialog(this, mSampleRate); |
| 431 | if(dialog.ShowModal() == wxID_OK && |
| 432 | dialog.GetSampleRate() > 0) |
| 433 | { |
| 434 | mSampleRate = dialog.GetSampleRate(); |
| 435 | } |
| 436 | UpdateSampleRateList(); |
| 437 | } |
| 438 | else |
| 439 | mSampleRate = *reinterpret_cast<const int*>(&clientData); |
| 440 | } |
| 441 | |
| 442 | void ExportFilePanel::OnFolderBrowse(wxCommandEvent &event) |
| 443 | { |
nothing calls this directly
no test coverage detected