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

Method FormatLabelForMenu

libraries/lib-menus/CommandManager.cpp:598–612  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

596}
597
598wxString CommandManager::FormatLabelForMenu(
599 const CommandID &id, const TranslatableString *pLabel) const
600{
601 NormalizedKeyString keyStr;
602 if (auto iter = mCommandNameHash.find(id); iter != mCommandNameHash.end()) {
603 if (auto pEntry = iter->second) {
604 keyStr = pEntry->key;
605 if (!pLabel)
606 pLabel = &pEntry->label;
607 }
608 }
609 if (pLabel)
610 return CommandListEntry::FormatLabelForMenu(*pLabel, keyStr);
611 return {};
612}
613
614wxString CommandManager::CommandListEntry::FormatLabelForMenu(
615 const TranslatableString &translatableLabel,

Callers 2

VisitEntryMethod · 0.80
DoContextMenuMethod · 0.80

Calls 5

FormatLabelForMenuFunction · 0.85
TranslationMethod · 0.80
findMethod · 0.45
endMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected