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

Method SpectralDataDialogWorker

src/SpectralDataDialog.cpp:366–372  ·  view source on GitHub ↗

Current workflow for spectral editing dialog: 1. ProjectSettings change event listened by Worker::OnToolChanged() 2. In Worker::OnToolChanged(), get Dialog from AttachedWindows and invoke Show() 3. Dialog::OnApply() listens to the apply button in Dialog, which calculates and applies the effect

Source from the content-addressed store, hash-verified

364// 2. In Worker::OnToolChanged(), get Dialog from AttachedWindows and invoke Show()
365// 3. Dialog::OnApply() listens to the apply button in Dialog, which calculates and applies the effect
366SpectralDataDialogWorker::SpectralDataDialogWorker(AudacityProject &project)
367 : mProject{ project }
368{
369 mSettingsSubscription = ProjectSettings::Get(project)
370 .Subscribe(*this, &SpectralDataDialogWorker::OnToolChanged);
371 wxTheApp->Bind(wxEVT_IDLE, &SpectralDataDialogWorker::OnIdle, this);
372}
373
374SpectralDataDialogWorker::~SpectralDataDialogWorker()
375{

Callers

nothing calls this directly

Calls 3

GetFunction · 0.85
BindMethod · 0.80
SubscribeMethod · 0.45

Tested by

no test coverage detected