63 else if (
_widget->findAttribute(
"position_real",
tmp))
73 if (
node->getName() ==
"Widget")
77 else if (
node->getName() ==
"Property")
81 else if (
node->getName() ==
"UserString")
85 else if (
node->getName() ==
"Controller")
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() <<
"]");
176 MYGUI_LOG(Warning,
"Controller '" <<
iter->type <<
"' not found");
#define MYGUI_LOG(level, text)
virtual void setProperty(const std::string &, const std::string &)
static ControllerManager & getInstance()
static IntCoord convertFromRelative(const FloatCoord &_coord, const IntSize &_view)
static Gui & getInstance()
std::string mResourceName
static LayoutManager & getInstance()
static RenderManager & getInstance()
VectorWidgetInfo mLayoutData
void deserialization(xml::ElementPtr _node, Version _version) override
WidgetInfo parseWidget(xml::ElementEnumerator &_widget)
const VectorWidgetInfo & getLayoutData() const
Widget * createWidget(const WidgetInfo &_widgetInfo, const std::string &_prefix="", Widget *_parent=nullptr, bool _template=false)
VectorWidgetPtr createLayout(const std::string &_prefix="", Widget *_parent=nullptr)
std::pair< std::string, std::string > PairString
std::vector< WidgetInfo > VectorWidgetInfo
std::vector< Widget * > VectorWidgetPtr
static Align parse(const std::string &_value)
static TCoord< int > parse(const std::string &_value)