MCPcopy Create free account
hub / github.com/MyGUI/mygui / notifyMenuCtrlAccept

Method notifyMenuCtrlAccept

Tools/EditorFramework/MainMenuControl.cpp:38–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36 }
37
38 void MainMenuControl::notifyMenuCtrlAccept(MyGUI::MenuControl* _sender, MyGUI::MenuItem* _item)
39 {
40 MyGUI::UString* data = _item->getItemData<MyGUI::UString>(false);
41 if (data != nullptr)
42 CommandManager::getInstance().setCommandData(*data);
43
44 const std::string& command = _item->getItemId();
45 if (MyGUI::utility::startWith(command, "Command_"))
46 CommandManager::getInstance().executeCommand(command);
47 }
48
49 void MainMenuControl::updateRecentFilesMenu()
50 {

Callers

nothing calls this directly

Calls 3

startWithFunction · 0.85
setCommandDataMethod · 0.80
executeCommandMethod · 0.45

Tested by

no test coverage detected