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

Method SetSelectionFormat

src/toolbars/SelectionBar.cpp:573–586  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

571}
572
573void SelectionBar::SetSelectionFormat(const NumericFormatID & format)
574{
575 if (mTimeControls.front() == nullptr)
576 return;
577
578 const bool changed = mTimeControls.front()->SetFormatName(format);
579
580 // Test first whether changed, to avoid infinite recursion from OnUpdate
581 if ( changed ) {
582 wxCommandEvent e;
583 e.SetString(format.GET());
584 OnUpdate(e);
585 }
586}
587
588void SelectionBar::OnFormatsChanged(ProjectNumericFormatsEvent evt)
589{

Callers 2

ImportMethod · 0.45
OnUpdateMethod · 0.45

Calls 2

SetStringMethod · 0.80
SetFormatNameMethod · 0.45

Tested by

no test coverage detected