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

Method PopulateOrExchange

src/effects/NoiseReduction.cpp:514–643  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

512}
513
514void EffectNoiseReduction::Dialog::PopulateOrExchange(ShuttleGui & S)
515{
516 S.StartStatic(XO("Step 1"));
517 {
518 S.AddVariableText(XO(
519"Select a few seconds of just noise so Audacity knows what to filter out,\nthen click Get Noise Profile:"));
520 //m_pButton_GetProfile =
521 S.Id(ID_BUTTON_GETPROFILE).AddButton(XXO("&Get Noise Profile"));
522 }
523 S.EndStatic();
524
525 S.StartStatic(XO("Step 2"));
526 {
527 S.AddVariableText(XO(
528"Select all of the audio you want filtered, choose how much noise you want\nfiltered out, and then click 'OK' to reduce noise.\n"));
529
530 S.StartMultiColumn(3, wxEXPAND);
531 S.SetStretchyCol(2);
532 {
533 for (int id = FIRST_SLIDER; id < END_OF_BASIC_SLIDERS; id += 2) {
534 const ControlInfo &info = controlInfo()[(id - FIRST_SLIDER) / 2];
535 info.CreateControls(id, S);
536 }
537 }
538 S.EndMultiColumn();
539
540 S.StartMultiColumn(
541 2
542#ifdef RESIDUE_CHOICE
543 +1
544#endif
545#ifdef ISOLATE_CHOICE
546 +1
547#endif
548 ,
549 wxALIGN_CENTER_HORIZONTAL);
550 {
551 S.AddPrompt(XXO("Noise:"));
552 mKeepSignal = S.Id(ID_RADIOBUTTON_KEEPSIGNAL)
553 /* i18n-hint: Translate differently from "Residue" ! */
554 .AddRadioButton(XXO("Re&duce"));
555#ifdef ISOLATE_CHOICE
556 mKeepNoise = S.Id(ID_RADIOBUTTON_KEEPNOISE)
557 .AddRadioButtonToGroup(XXO("&Isolate"));
558#endif
559#ifdef RESIDUE_CHOICE
560 mResidue = S.Id(ID_RADIOBUTTON_RESIDUE)
561 /* i18n-hint: Means the difference between effect and original sound. Translate differently from "Reduce" ! */
562 .AddRadioButtonToGroup(XXO("Resid&ue"));
563#endif
564 }
565 S.EndMultiColumn();
566 }
567 S.EndStatic();
568
569
570#ifdef ADVANCED_SETTINGS
571 S.StartStatic(XO("Advanced Settings"));

Callers

nothing calls this directly

Calls 12

controlInfoFunction · 0.85
StartStaticMethod · 0.80
AddVariableTextMethod · 0.80
EndStaticMethod · 0.80
SetStretchyColMethod · 0.80
CreateControlsMethod · 0.80
AddPromptMethod · 0.80
AddRadioButtonMethod · 0.80
AddRadioButtonToGroupMethod · 0.80
TieChoiceMethod · 0.80
AddButtonMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected