| 270 | } |
| 271 | |
| 272 | void ExportAudioDialog::PopulateOrExchange(ShuttleGui& S) |
| 273 | { |
| 274 | S.SetBorder(5); |
| 275 | S.StartVerticalLay(); |
| 276 | { |
| 277 | if(S.GetMode() == eIsCreating) |
| 278 | { |
| 279 | mExportOptionsPanel = safenew ExportFilePanel(mProject, false, this, ExportFilePanelID); |
| 280 | S.Id(ExportFilePanelID).AddWindow(mExportOptionsPanel, wxEXPAND); |
| 281 | } |
| 282 | |
| 283 | S.StartPanel(); |
| 284 | { |
| 285 | S.SetBorder(5); |
| 286 | S.StartTwoColumn(); |
| 287 | { |
| 288 | S.StartHorizontalLay(wxSHRINK | wxALIGN_TOP); |
| 289 | { |
| 290 | if(auto prompt = S.AddPrompt(XO("Export Range:"))) |
| 291 | prompt->SetMinSize({145, -1}); |
| 292 | } |
| 293 | S.EndHorizontalLay(); |
| 294 | |
| 295 | S.StartVerticalLay(); |
| 296 | { |
| 297 | S.StartRadioButtonGroup(ExportAudioExportRange); |
| 298 | { |
| 299 | mRangeProject = S.Id(ExportRangeProjectID) |
| 300 | .Name(XO("Export entire project")) |
| 301 | .TieRadioButton(); |
| 302 | mRangeSplit = S.Id(ExportRangeSplitID) |
| 303 | .Name(XO("Export multiple files")) |
| 304 | .TieRadioButton(); |
| 305 | mRangeSelection = S.Id(ExportRangeSelectionID) |
| 306 | .Name(XO("Export current selection")) |
| 307 | .TieRadioButton(); |
| 308 | #if wxUSE_ACCESSIBILITY |
| 309 | safenew WindowAccessible(mRangeProject); |
| 310 | safenew WindowAccessible(mRangeSelection); |
| 311 | safenew WindowAccessible(mRangeSplit); |
| 312 | #endif |
| 313 | } |
| 314 | S.EndRadioButtonGroup(); |
| 315 | } |
| 316 | S.EndVerticalLay(); |
| 317 | } |
| 318 | S.EndTwoColumn(); |
| 319 | |
| 320 | S.AddSpace(10); |
| 321 | |
| 322 | S.StartTwoColumn(); |
| 323 | { |
| 324 | S.AddSpace(155, 1); |
| 325 | mSkipSilenceAtBeginning = S |
| 326 | .Id(TrimBlankSpaceBeforeFirstClipID) |
| 327 | .TieCheckBox(XO("Trim blank space before first clip"), ExportAudioSkipSilenceAtBeginning); |
| 328 | } |
| 329 | S.EndTwoColumn(); |
nothing calls this directly
no test coverage detected