make new widget available as <property-list>
This commit is contained in:
parent
0007098aac
commit
9ff339332c
1 changed files with 9 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue