MCPcopy Create free account
hub / github.com/MyGUI/mygui / saveWidgetsToXmlNode

Method saveWidgetsToXmlNode

Tools/LayoutEditor/EditorWidgets.cpp:791–803  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 4

getInstancePtrFunction · 0.85
addAttributeMethod · 0.80
getWidgetMethod · 0.80
getParentMethod · 0.45

Tested by

no test coverage detected