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

Method CreateControls

Tools/SkinEditor/Application.cpp:426–443  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

424 }
425
426 void Application::CreateControls()
427 {
428 const SettingsManager::VectorString& controls =
429 SettingsManager::getInstance().getValueList("Editor/Control.List");
430 for (const auto& controlType : controls)
431 {
432 Control* control = components::FactoryManager::GetInstance().CreateItem<Control>(controlType);
433 if (control != nullptr)
434 {
435 control->Initialise();
436 mControls.push_back(control);
437 }
438 else
439 {
440 MYGUI_LOG(Warning, "Control factory '" << controlType << "' not found");
441 }
442 }
443 }
444
445 void Application::DestroyControls()
446 {

Callers

nothing calls this directly

Calls 3

getValueListMethod · 0.80
InitialiseMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected