CHANGED: Somehow lost this code part during development.

--HG--
branch : gsoc2012-gui-editor
This commit is contained in:
dfighter1985 2013-02-14 12:13:32 +01:00
parent fcb736c387
commit 96a5f00dbf

View file

@ -464,6 +464,27 @@ namespace NLGUI
type = (const char*) prop;
}
if (type.empty() || type == "toggle_button")
{
_Type = ToggleButton;
}
else if (type == "push_button")
{
_Type = PushButton;
}
else if (type == "radio_button")
{
_Type = RadioButton;
initRBRef();
if (_Pushed)
*_RBRef = this;
}
else
{
nlinfo(("cannot parse button type for button " + getId()).c_str());
}
prop= (char*) xmlGetProp (cur, (xmlChar*)"pushed");
_Pushed = false;
if (prop)