From: fredb Date: Sun, 14 May 2006 09:03:50 +0000 (+0000) Subject: Use puAux widgets available in plib 1.8.4 instead of using pui deprecated widgets... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b30d903a5689efe0e6fbe258090bbd67bb581b8e;p=flightgear.git Use puAux widgets available in plib 1.8.4 instead of using pui deprecated widgets now removed from CVS --- diff --git a/src/GUI/dialog.cxx b/src/GUI/dialog.cxx index 4befc5855..a33dde1ce 100644 --- a/src/GUI/dialog.cxx +++ b/src/GUI/dialog.cxx @@ -6,6 +6,8 @@ #include // atof() +#include + #include #include @@ -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);