| 803 | } |
| 804 | |
| 805 | void EditorWidgets::loadCodeGeneratorSettings(MyGUI::xml::ElementPtr _sectorNode) |
| 806 | { |
| 807 | MyGUI::xml::ElementEnumerator widget = _sectorNode->getElementEnumerator(); |
| 808 | while (widget.next()) |
| 809 | { |
| 810 | if (widget->getName() == "Property") |
| 811 | { |
| 812 | std::string key; |
| 813 | std::string value; |
| 814 | |
| 815 | // парсим атрибуты |
| 816 | if (!widget->findAttribute("key", key)) |
| 817 | continue; |
| 818 | if (!widget->findAttribute("value", value)) |
| 819 | continue; |
| 820 | |
| 821 | mCodeGeneratorSettings[key] = value; |
| 822 | } |
| 823 | } |
| 824 | } |
| 825 | |
| 826 | void EditorWidgets::saveCodeGeneratorSettings(MyGUI::xml::ElementPtr _rootNode) |
| 827 | { |
nothing calls this directly
no test coverage detected