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

Method UpdateItemName

src/menu.cpp:159–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157 }
158
159 void UpdateItemName(std::pair<std::string, wxMenuItem*> const& item) {
160 cmd::Command *c = cmd::get(item.first);
161 wxString text;
162 if (c->Type() & cmd::COMMAND_DYNAMIC_NAME)
163 text = c->StrMenu(context);
164 else
165 text = item.second->GetItemLabel().BeforeFirst('\t');
166 item.second->SetItemLabel(text + "\t" + to_wx(hotkey::get_hotkey_str_first("Default", c->name())));
167 }
168
169public:
170 CommandManager(int id_base, agi::Context *context)

Callers

nothing calls this directly

Calls 6

getFunction · 0.85
get_hotkey_str_firstFunction · 0.85
StrMenuMethod · 0.80
to_wxFunction · 0.70
TypeMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected