| 286 | } |
| 287 | |
| 288 | IPropertyField* PanelMainProperties::getPropertyField( |
| 289 | MyGUI::Widget* _client, |
| 290 | std::string_view _name, |
| 291 | std::string_view _type) |
| 292 | { |
| 293 | MapPropertyField::iterator item = mFields.find(_name); |
| 294 | if (item != mFields.end()) |
| 295 | { |
| 296 | (*item).second->setVisible(true); |
| 297 | return (*item).second; |
| 298 | } |
| 299 | |
| 300 | IPropertyField* result = PropertyFieldManager::getInstance().createPropertyField(_client, _type); |
| 301 | result->setName(_name); |
| 302 | result->eventAction = MyGUI::newDelegate(this, &PanelMainProperties::notifyAction); |
| 303 | |
| 304 | mFields.emplace(_name, result); |
| 305 | |
| 306 | return result; |
| 307 | } |
| 308 | |
| 309 | void PanelMainProperties::hidePropertyFields() |
| 310 | { |
nothing calls this directly
no test coverage detected