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

Method notifyPopupMenuAccept

Tools/LayoutEditor/MainMenuControl.cpp:60–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58 }
59
60 void MainMenuControlLE::notifyPopupMenuAccept(MyGUI::MenuControl* _sender, MyGUI::MenuItem* _item)
61 {
62 MyGUI::UString* data = _item->getItemData<MyGUI::UString>(false);
63 if (data != nullptr)
64 CommandManager::getInstance().setCommandData(*data);
65
66 const std::string& command = _item->getItemId();
67 if (MyGUI::utility::startWith(command, "Command_"))
68 {
69 CommandManager::getInstance().executeCommand(command);
70 }
71 }
72
73 void MainMenuControlLE::widgetsUpdate()
74 {

Callers

nothing calls this directly

Calls 3

startWithFunction · 0.85
setCommandDataMethod · 0.80
executeCommandMethod · 0.45

Tested by

no test coverage detected