| 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 | { |
nothing calls this directly
no test coverage detected