1
0
Fork 0

make new widget available as <property-list>

This commit is contained in:
mfranz 2006-05-22 14:35:39 +00:00
parent 0007098aac
commit 9ff339332c

View file

@ -13,6 +13,7 @@
#include "new_gui.hxx"
#include "AirportList.hxx"
#include "property_list.hxx"
#include "layout.hxx"
////////////////////////////////////////////////////////////////////////
@ -558,6 +559,14 @@ FGDialog::makeObject (SGPropertyNode * props, int parentWidth, int parentHeight)
setColor(obj, props);
return obj;
} else if (type == "property-list") {
PropertyList * obj = new PropertyList(x, y, x + width, y + height, globals->get_props());
if (presetSize)
obj->setSize(width, height);
setupObject(obj, props);
setColor(obj, props);
return obj;
} else if (type == "input") {
puInput * obj = new puInput(x, y, x + width, y + height);
setupObject(obj, props);