MCPcopy Create free account
hub / github.com/TypesettingTools/Aegisub / GenerateMenu

Method GenerateMenu

src/menu.cpp:439–451  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

437 }
438
439 void GenerateMenu(wxMenu *parent, AutomationMenu *am) {
440 for (auto item : subitems) {
441 if (item.command) {
442 am->cm->AddCommand(item.command, parent, item.displayname);
443 am->all_items.push_back(parent->GetMenuItems().back());
444 }
445 else {
446 auto submenu = new wxMenu;
447 parent->AppendSubMenu(submenu, to_wx(item.displayname));
448 item.GenerateMenu(submenu, am);
449 }
450 }
451 }
452 };
453
454 void Regenerate() {

Callers 1

RegenerateMethod · 0.80

Calls 4

AddCommandMethod · 0.80
push_backMethod · 0.80
backMethod · 0.80
to_wxFunction · 0.70

Tested by

no test coverage detected