| 789 | } |
| 790 | |
| 791 | void EditorWidgets::saveWidgetsToXmlNode(MyGUI::xml::ElementPtr _root, bool _compatibility) |
| 792 | { |
| 793 | _root->addAttribute("version", BackwardCompatibilityManager::getInstancePtr()->getCurrentVersion()); |
| 794 | |
| 795 | for (auto& widget : mWidgets) |
| 796 | { |
| 797 | // в корень только сирот |
| 798 | if (nullptr == widget->getWidget()->getParent()) |
| 799 | serialiseWidget(widget, _root, _compatibility); |
| 800 | } |
| 801 | |
| 802 | saveCodeGeneratorSettings(_root); |
| 803 | } |
| 804 | |
| 805 | void EditorWidgets::loadCodeGeneratorSettings(MyGUI::xml::ElementPtr _sectorNode) |
| 806 | { |
nothing calls this directly
no test coverage detected