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

Method ValidateUI

src/effects/Phaser.cpp:236–264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234
235
236bool EffectPhaser::Editor::ValidateUI()
237{
238 // This bit was copied from the original override of TransferDataFromWindow
239 if (!mUIParent->Validate() || !mUIParent->TransferDataFromWindow())
240 {
241 return false;
242 }
243
244 auto& ms = mSettings;
245
246 if (ms.mStages & 1) // must be even
247 {
248 ms.mStages &= ~1;
249 mStagesT->GetValidator()->TransferToWindow();
250 }
251
252 mAccess.ModifySettings
253 (
254 [this](EffectSettings& settings)
255 {
256 // pass back the modified settings to the MessageBuffer
257
258 GetSettings(settings) = mSettings;
259 return nullptr;
260 }
261 );
262
263 return true;
264}
265
266void EffectPhaser::Editor::OnStagesSlider(wxCommandEvent & evt)
267{

Callers

nothing calls this directly

Calls 4

GetSettingsFunction · 0.85
ValidateMethod · 0.45
TransferToWindowMethod · 0.45

Tested by

no test coverage detected