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

Method createMainMenu

Tools/LayoutEditor/MainMenuControl.cpp:45–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43 }
44
45 void MainMenuControlLE::createMainMenu()
46 {
47 updateRecentFilesMenu();
48 updateRecentProjectsMenu();
49
50 // меню для виджетов
51 mPopupMenuWidgets = mBar->findItemById("Widgets", true)->getItemChild();
52
53 //FIXME
54 mPopupMenuWidgets->setPopupAccept(true);
55 mPopupMenuWidgets->eventMenuCtrlAccept += MyGUI::newDelegate(this, &MainMenuControlLE::notifyWidgetsSelect);
56
57 mBar->eventMenuCtrlAccept += newDelegate(this, &MainMenuControlLE::notifyPopupMenuAccept);
58 }
59
60 void MainMenuControlLE::notifyPopupMenuAccept(MyGUI::MenuControl* _sender, MyGUI::MenuItem* _item)
61 {

Callers

nothing calls this directly

Calls 4

newDelegateFunction · 0.85
findItemByIdMethod · 0.80
setPopupAcceptMethod · 0.80
getItemChildMethod · 0.45

Tested by

no test coverage detected