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

Method GetMenuBar

src/MenuCreator.cpp:984–993  ·  view source on GitHub ↗

Retrieves the menubar based on the name given in AddMenuBar(name)

Source from the content-addressed store, hash-verified

982/// Retrieves the menubar based on the name given in AddMenuBar(name)
983///
984wxMenuBar *MenuItemVisitor::GetMenuBar(const wxString & sMenu) const
985{
986 for (const auto &entry : mMenuBarList)
987 {
988 if(entry.name == sMenu)
989 return entry.menubar;
990 }
991
992 return NULL;
993}
994
995///
996/// Retrieve the 'current' menubar; either NULL or the

Callers 3

GetCategoriesMethod · 0.80
RebuildMenuBarMethod · 0.80
SendMenusMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected