mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-27 01:06:19 +00:00
CHANGED: Somehow lost this code part during development.
This commit is contained in:
parent
543488b490
commit
33d84c99d7
1 changed files with 21 additions and 0 deletions
|
@ -464,6 +464,27 @@ namespace NLGUI
|
||||||
type = (const char*) prop;
|
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");
|
prop= (char*) xmlGetProp (cur, (xmlChar*)"pushed");
|
||||||
_Pushed = false;
|
_Pushed = false;
|
||||||
if (prop)
|
if (prop)
|
||||||
|
|
Loading…
Reference in a new issue