| 70 | } |
| 71 | |
| 72 | IPropertyField* PropertyFieldManager::createPropertyField(MyGUI::Widget* _window, std::string_view _type) |
| 73 | { |
| 74 | IPropertyField* result = nullptr; |
| 75 | |
| 76 | MapFactoryItem::iterator item = mFactories.find(_type); |
| 77 | MYGUI_ASSERT(item != mFactories.end(), "Factory PropertyField '" << _type << "' not found."); |
| 78 | |
| 79 | (*item).second(result, _window); |
| 80 | result->initialise(_type); |
| 81 | |
| 82 | return result; |
| 83 | } |
| 84 | |
| 85 | } |
no test coverage detected