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

Function PopulateMacrosMenu

src/BatchProcessDialog.cpp:1511–1524  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1509}
1510
1511void PopulateMacrosMenu(MenuRegistry::MenuItems &items, CommandFlag flags)
1512{
1513 using namespace MenuRegistry;
1514 auto names = MacroCommands::GetNames(); // these names come from filenames
1515 for (const auto &name : names) {
1516 auto MacroID = ApplyMacroDialog::MacroIdOfName(name);
1517 items.push_back(MenuRegistry::Command(MacroID,
1518 Verbatim(name), // file name verbatim
1519 OnApplyMacroDirectly,
1520 flags,
1521 Options{}.AllowInMacros()
1522 ));
1523 }
1524}
1525
1526const ReservedCommandFlag&
1527 HasLastToolFlag() { static ReservedCommandFlag flag{

Callers 1

PluginMenuItemsFunction · 0.85

Calls 2

VerbatimFunction · 0.85
push_backMethod · 0.45

Tested by

no test coverage detected