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

Method initialise

Tools/LayoutEditor/PanelControllers.cpp:22–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20 }
21
22 void PanelControllers::initialise()
23 {
24 mPanelCell->setCaption(replaceTags("PanelControllersName"));
25
26 assignWidget(mControllerName, "controllerName");
27 assignWidget(mButtonAdd, "buttonAdd");
28 assignWidget(mButtonDelete, "buttonDelete");
29 assignWidget(mList, "list");
30
31 mButtonAdd->eventMouseButtonClick += MyGUI::newDelegate(this, &PanelControllers::notifyAdd);
32 mButtonDelete->eventMouseButtonClick += MyGUI::newDelegate(this, &PanelControllers::notifyDelete);
33 mList->eventListChangePosition += MyGUI::newDelegate(this, &PanelControllers::notifySelectItem);
34
35 mButtonLeft = mButtonAdd->getLeft();
36 mButtonRight = mMainWidget->getWidth() - mButtonDelete->getRight();
37 mButtonSpace = mButtonDelete->getLeft() - mButtonAdd->getRight();
38
39 MyGUI::ResourceManager::getInstance().registerLoadXmlDelegate("ControllerTypes") =
40 MyGUI::newDelegate(this, &PanelControllers::loadControllerTypes);
41 MyGUI::ResourceManager::getInstance().load("Controllers.xml");
42 }
43
44 void PanelControllers::shutdown()
45 {

Callers

nothing calls this directly

Calls 7

replaceTagsFunction · 0.85
assignWidgetFunction · 0.85
newDelegateFunction · 0.85
getLeftMethod · 0.80
setCaptionMethod · 0.45
getWidthMethod · 0.45
loadMethod · 0.45

Tested by

no test coverage detected