| 133 | } |
| 134 | |
| 135 | IPropertyField* PanelProperties::getPropertyField( |
| 136 | MyGUI::Widget* _client, |
| 137 | std::string_view _name, |
| 138 | std::string_view _type) |
| 139 | { |
| 140 | MapPropertyField::iterator item = mFields.find(_name); |
| 141 | if (item != mFields.end()) |
| 142 | { |
| 143 | (*item).second->setVisible(true); |
| 144 | return (*item).second; |
| 145 | } |
| 146 | |
| 147 | IPropertyField* result = PropertyFieldManager::getInstance().createPropertyField(_client, _type); |
| 148 | result->setName(_name); |
| 149 | result->eventAction = MyGUI::newDelegate(this, &PanelProperties::notifyAction); |
| 150 | |
| 151 | mFields.emplace(_name, result); |
| 152 | |
| 153 | return result; |
| 154 | } |
| 155 | |
| 156 | } |
nothing calls this directly
no test coverage detected