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

Method TransferDataFromWindow

src/effects/ChangePitch.cpp:233–250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

231}
232
233bool EffectChangePitch::TransferDataFromWindow(EffectSettings &)
234{
235 if (!mUIParent->Validate() || !mUIParent->TransferDataFromWindow())
236 {
237 return false;
238 }
239
240 // from/to pitch controls
241 m_nFromPitch = m_pChoice_FromPitch->GetSelection();
242 m_nFromOctave = m_pSpin_FromOctave->GetValue();
243
244 m_nToPitch = m_pChoice_ToPitch->GetSelection();
245
246 // No need to update Slider_PercentChange here because TextCtrl_PercentChange
247 // always tracks it & is more precise (decimal points).
248
249 return true;
250}
251
252// handlers
253void EffectChangePitch::OnChoice_FromPitch(wxCommandEvent & WXUNUSED(evt))

Callers

nothing calls this directly

Calls 3

ValidateMethod · 0.45
GetSelectionMethod · 0.45
GetValueMethod · 0.45

Tested by

no test coverage detected