32 Base::deserialization(_node, _version);
37 while (widget.
next(
"Widget"))
73 if (node->
getName() ==
"Widget")
77 else if (node->
getName() ==
"Property")
81 else if (node->
getName() ==
"UserString")
85 else if (node->
getName() ==
"Controller")
91 while (prop.
next(
"Property"))
108 widgets.push_back(widget);
116 std::string widgetName = _widgetInfo.
name;
118 std::string widgetLayer = _widgetInfo.
layer;
120 if (!widgetName.empty()) widgetName = _prefix + widgetName;
123 if (_parent ==
nullptr && widgetLayer.empty())
125 MYGUI_LOG(Warning,
"Root widget's layer is not specified, widget won't be visible. Specify layer or parent or attach it to another widget after load." <<
" [" <<
LayoutManager::getInstance().getCurrentLayout() <<
"]");
139 if (
nullptr == _parent)
146 for (VectorStringPairs::const_iterator iter = _widgetInfo.
properties.begin(); iter != _widgetInfo.
properties.end(); ++iter)
151 for (MapString::const_iterator iter = _widgetInfo.
userStrings.begin(); iter != _widgetInfo.
userStrings.end(); ++iter)
163 for (std::vector<ControllerInfo>::const_iterator iter = _widgetInfo.
controllers.begin(); iter != _widgetInfo.
controllers.end(); ++iter)
168 for (MapString::const_iterator iterProp = iter->properties.begin(); iterProp != iter->properties.end(); ++iterProp)
170 item->
setProperty(iterProp->first, iterProp->second);
176 MYGUI_LOG(Warning,
"Controller '" << iter->type <<
"' not found");