00001 #include "gui_focusframe.hpp"
00002
00003 #include <xml_document.hpp>
00004 #include <utils_string.hpp>
00005
00006 namespace gui
00007 {
00008 void focus_frame::parse_block(xml::block* pBlock)
00009 {
00010 frame::parse_block(pBlock);
00011
00012 if ((pBlock->is_provided("autoFocus") || !pBlock->is_provided("inherits")))
00013 enable_auto_focus(utils::string_to_bool(pBlock->get_attribute("autoFocus")));
00014 }
00015 }