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

Method PopulateOrExchange

src/export/ExportAudioDialog.cpp:272–409  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

270}
271
272void 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();

Callers

nothing calls this directly

Calls 11

GetModeMethod · 0.80
AddWindowMethod · 0.80
StartPanelMethod · 0.80
AddPromptMethod · 0.80
TieCheckBoxMethod · 0.80
EndPanelMethod · 0.80
StartStaticMethod · 0.80
EndStaticMethod · 0.80
AddTextBoxMethod · 0.80
ExportFilePanelClass · 0.70
AddButtonMethod · 0.45

Tested by

no test coverage detected