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

Function PromptUser

src/effects/NoiseReduction.cpp:116–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114namespace
115{
116int PromptUser(
117 EffectNoiseReduction::Settings& settings, EffectNoiseReduction* effect,
118 EffectSettingsAccess& access, wxWindow& parent, bool bHasProfile,
119 bool bAllowTwiddleSettings)
120{
121 EffectNoiseReduction::Dialog dlog(
122 effect, access, &settings, &parent, bHasProfile, bAllowTwiddleSettings);
123
124 dlog.CentreOnParent();
125 dlog.ShowModal();
126
127 const auto returnCode = dlog.GetReturnCode();
128 if (!returnCode)
129 return 0;
130
131 settings = dlog.GetTempSettings();
132 settings.mDoProfile = (returnCode == 1);
133
134 if (!settings.PrefsIO(false))
135 return 0;
136 return returnCode;
137}
138} // namespace
139
140//! An override still here for historical reasons, ignoring the factory

Callers 2

DoAudacityCommandMethod · 0.85
ShowHostInterfaceMethod · 0.85

Calls 2

PrefsIOMethod · 0.80
ShowModalMethod · 0.45

Tested by

no test coverage detected