change ui event handling

This commit is contained in:
Eduardo Bart
2011-08-22 09:44:26 -03:00
parent 30de60c562
commit 8fb07afc10
19 changed files with 214 additions and 359 deletions

View File

@@ -2,7 +2,7 @@
#include <framework/graphics/font.h>
#include <framework/otml/otmlnode.h>
UILabel::UILabel() : UIWidget(UITypeLabel)
UILabel::UILabel()
{
m_align = AlignLeft;
m_focusable = false;
@@ -14,9 +14,9 @@ UILabelPtr UILabel::create()
return label;
}
void UILabel::loadStyleFromOTML(const OTMLNodePtr& styleNode)
void UILabel::onStyleApply(const OTMLNodePtr& styleNode)
{
UIWidget::loadStyleFromOTML(styleNode);
UIWidget::onStyleApply(styleNode);
m_text = styleNode->valueAt("text", m_text);