| 476 | } |
| 477 | |
| 478 | void Application::CreateControls() |
| 479 | { |
| 480 | const SettingsManager::VectorString& controls = |
| 481 | SettingsManager::getInstance().getValueList("Editor/Control.List"); |
| 482 | for (const auto& controlType : controls) |
| 483 | { |
| 484 | Control* control = components::FactoryManager::GetInstance().CreateItem<Control>(controlType); |
| 485 | if (control != nullptr) |
| 486 | { |
| 487 | control->Initialise(); |
| 488 | mControls.push_back(control); |
| 489 | } |
| 490 | else |
| 491 | { |
| 492 | MYGUI_LOG(Warning, "Control factory '" << controlType << "' not found"); |
| 493 | } |
| 494 | } |
| 495 | } |
| 496 | |
| 497 | void Application::DestroyControls() |
| 498 | { |
nothing calls this directly
no test coverage detected