]> git.mxchange.org Git - flightgear.git/commitdiff
Use puAux widgets available in plib 1.8.4 instead of using pui deprecated widgets...
authorfredb <fredb>
Sun, 14 May 2006 09:03:50 +0000 (09:03 +0000)
committerfredb <fredb>
Sun, 14 May 2006 09:03:50 +0000 (09:03 +0000)
src/GUI/dialog.cxx

index 4befc5855076eead94953d0937c9c8e2e542c65a..a33dde1cecc70431b87b2066c21798fb0a0b69a3 100644 (file)
@@ -6,6 +6,8 @@
 
 #include <stdlib.h>            // atof()
 
+#include <plib/puAux.h>
+
 #include <Input/input.hxx>
 #include <Scripting/NasalSys.hxx>
 
@@ -621,7 +623,7 @@ FGDialog::makeObject (SGPropertyNode * props, int parentWidth, int parentHeight)
 
     } else if (type == "combo") {
         char ** entries = value_list(props);
-        puComboBox * obj = new puComboBox(x, y, x + width, y + height, entries,
+        puaComboBox * obj = new puaComboBox(x, y, x + width, y + height, entries,
                            props->getBoolValue("editable", false));
         setupObject(obj, props);
 #ifdef PUCOL_EDITFIELD  // plib > 0.8.4
@@ -654,7 +656,7 @@ FGDialog::makeObject (SGPropertyNode * props, int parentWidth, int parentHeight)
     } else if (type == "textbox") {
         int slider_width = props->getIntValue("slider", 20);
         int wrap = props->getBoolValue("wrap", true);
-        puLargeInput * obj = new puLargeInput(x, y,
+        puaLargeInput * obj = new puaLargeInput(x, y,
                 x+width, x+height, 2, slider_width, wrap);
 
         if (props->hasValue("editable")) {
@@ -681,8 +683,8 @@ FGDialog::makeObject (SGPropertyNode * props, int parentWidth, int parentHeight)
         for (unsigned int i = 0; i < value_nodes.size(); i++)
             entries[i] = strdup((char *)value_nodes[i]->getName());
 
-        puSelectBox * obj =
-            new puSelectBox(x, y, x + width, y + height, entries);
+        puaSelectBox * obj =
+            new puaSelectBox(x, y, x + width, y + height, entries);
         setupObject(obj, props);
 #ifdef PUCOL_EDITFIELD  // plib > 0.8.4
         setColor(obj, props, EDITFIELD);