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

Method SetFilter

src/widgets/KeyView.cpp:471–497  ·  view source on GitHub ↗

Sets the filter

Source from the content-addressed store, hash-verified

469// Sets the filter
470//
471void
472KeyView::SetFilter(const wxString & filter)
473{
474 int index = LineToIndex(GetSelection());
475
476 // Unselect any currently selected line...do even if none selected
477 SelectNode(-1);
478
479 // Save the filter
480 mFilter = filter.Lower();
481
482 // Refresh the view lines
483 RefreshLines();
484
485 // Reselect old node (if possible)
486 if (index != wxNOT_FOUND)
487 {
488 SelectNode(index);
489 }
490
491 // ensure that a node is selected so that when the keyview is the focus,
492 // this is indicated visually, and the Narrator screen reader reads it.
493 if ((GetSelection() == wxNOT_FOUND))
494 {
495 SelectNode(LineToIndex(0));
496 }
497}
498
499//
500// Expand all branches

Callers 2

OnFilterTimerMethod · 0.80
OnFilterKeyDownMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected