From: mfranz Date: Mon, 22 May 2006 14:35:39 +0000 (+0000) Subject: make new widget available as X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9ff339332cbc7fa035e159d395b4bf4935173bd6;p=flightgear.git make new widget available as --- diff --git a/src/GUI/dialog.cxx b/src/GUI/dialog.cxx index 4dcb8af45..bcd07aebf 100644 --- a/src/GUI/dialog.cxx +++ b/src/GUI/dialog.cxx @@ -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);