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

Method OnBrushButton

src/SpectralDataDialog.cpp:326–332  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

324}
325
326void SpectralDataDialog::OnBrushButton(wxCommandEvent &event) {
327 if (mBrushButton->GetValue())
328 ProjectSettings::Get(mProject).SetTool(ToolCodes::brushTool);
329 else
330 // Don't stay up
331 mBrushButton->SetValue(true);
332}
333
334static const AudacityProject::AttachedObjects::RegisteredFactory sSpectralWorkerKey{
335 []( AudacityProject &project ){

Callers

nothing calls this directly

Calls 4

GetFunction · 0.85
SetToolMethod · 0.80
GetValueMethod · 0.45
SetValueMethod · 0.45

Tested by

no test coverage detected