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

Method OnInitialise

Tools/SkinEditor/SettingsResourcesControl.cpp:28–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26 }
27
28 void SettingsResourcesControl::OnInitialise(Control* _parent, MyGUI::Widget* _place, std::string_view _layoutName)
29 {
30 Control::OnInitialise(_parent, _place, _layoutName);
31
32 assignWidget(mResourceAdd, "ResourceAdd");
33 assignWidget(mResourceDelete, "ResourceDelete");
34 assignWidget(mResources, "Resources");
35
36 mTextFieldControl = new TextFieldControl();
37 mTextFieldControl->Initialise();
38 mTextFieldControl->eventEndDialog.connect(this, &SettingsResourcesControl::notifyEndDialog);
39
40 mResourceAdd->eventMouseButtonClick += MyGUI::newDelegate(this, &SettingsResourcesControl::notifyClickAdd);
41 mResourceDelete->eventMouseButtonClick +=
42 MyGUI::newDelegate(this, &SettingsResourcesControl::notifyClickDelete);
43 }
44
45 void SettingsResourcesControl::loadSettings()
46 {

Callers

nothing calls this directly

Calls 4

assignWidgetFunction · 0.85
newDelegateFunction · 0.85
InitialiseMethod · 0.45
connectMethod · 0.45

Tested by

no test coverage detected