]> git.mxchange.org Git - flightgear.git/commitdiff
make new widget available as <property-list>
authormfranz <mfranz>
Mon, 22 May 2006 14:35:39 +0000 (14:35 +0000)
committermfranz <mfranz>
Mon, 22 May 2006 14:35:39 +0000 (14:35 +0000)
src/GUI/dialog.cxx

index 4dcb8af457c61af8775232cb8bb6840af33327da..bcd07aebfa6d78f47250f236742914cda0649565 100644 (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);