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

Method OnAddRule

src/prefs/ExtImportPrefs.cpp:622–633  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

620}
621
622void ExtImportPrefs::OnAddRule(wxCommandEvent& WXUNUSED(event))
623{
624 auto &items = Importer::Get().GetImportItems();
625 auto uitem = Importer::Get().CreateDefaultImportItem();
626 auto item = uitem.get();
627 items.push_back(std::move(uitem));
628 AddItemToTable (RuleTable->GetNumberRows (), item);
629
630 RuleTable->SelectRow(RuleTable->GetNumberRows () - 1);
631 RuleTable->SetGridCursor (RuleTable->GetNumberRows () - 1, 0);
632 RuleTable->SetFocus();
633}
634
635void ExtImportPrefs::OnDelRule(wxCommandEvent& WXUNUSED(event))
636{

Callers

nothing calls this directly

Calls 7

GetFunction · 0.85
moveFunction · 0.85
getMethod · 0.45
push_backMethod · 0.45
GetNumberRowsMethod · 0.45
SetFocusMethod · 0.45

Tested by

no test coverage detected