MCPcopy Create free account
hub / github.com/audacity/audacity / OnOK

Method OnOK

modules/import-export/mod-ffmpeg/ExportFFmpegOptions.cpp:1352–1371  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1350///
1351///
1352void ExportFFmpegOptions::OnOK(wxCommandEvent& WXUNUSED(event))
1353{
1354 if( ReportIfBadCombination() )
1355 return;
1356
1357 int selcdc = mCodecList->GetSelection();
1358 int selfmt = mFormatList->GetSelection();
1359 if (selcdc > -1) gPrefs->Write(wxT("/FileFormats/FFmpegCodec"),mCodecList->GetString(selcdc));
1360 if (selfmt > -1) gPrefs->Write(wxT("/FileFormats/FFmpegFormat"),mFormatList->GetString(selfmt));
1361 gPrefs->Flush();
1362
1363 ShuttleGui S(this, eIsSavingToPrefs);
1364 PopulateOrExchange(S);
1365
1366 gPrefs->Flush();
1367
1368 EndModal(wxID_OK);
1369
1370 return;
1371}
1372
1373void ExportFFmpegOptions::OnGetURL(wxCommandEvent & WXUNUSED(event))
1374{

Callers

nothing calls this directly

Calls 5

PopulateOrExchangeFunction · 0.70
GetSelectionMethod · 0.45
WriteMethod · 0.45
GetStringMethod · 0.45
FlushMethod · 0.45

Tested by

no test coverage detected