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

Method loadCodeGeneratorSettings

Tools/LayoutEditor/EditorWidgets.cpp:805–824  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 3

getElementEnumeratorMethod · 0.80
findAttributeMethod · 0.80
nextMethod · 0.45

Tested by

no test coverage detected