From: mfranz Date: Fri, 4 Nov 2005 22:20:35 +0000 (+0000) Subject: replace depreciated plib symbols with their new forms X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=533201c7a0b2426cd18f1d4df32d1e62d512d2e8;p=flightgear.git replace depreciated plib symbols with their new forms --- diff --git a/src/Autopilot/auto_gui.cxx b/src/Autopilot/auto_gui.cxx index e7ae0a45d..21a435513 100644 --- a/src/Autopilot/auto_gui.cxx +++ b/src/Autopilot/auto_gui.cxx @@ -852,7 +852,7 @@ void NewTgtAirportInit() TgtAptDialogWPList = new puListBox ( 50, 130, 300, 320 ) ; TgtAptDialogWPList -> setLabel ( "Flight Plan" ); - TgtAptDialogWPList -> setLabelPlace ( PUPLACE_ABOVE ) ; + TgtAptDialogWPList -> setLabelPlace ( PUPLACE_TOP_LEFT ) ; TgtAptDialogWPList -> setStyle ( -PUSTYLE_SMALL_SHADED ) ; TgtAptDialogWPList -> setValue ( 0 ) ; @@ -872,7 +872,7 @@ void NewTgtAirportInit() TgtAptDialogInput = new puInput (50, 70, 300, 100); TgtAptDialogInput -> setLabel ( NewTgtAirportLabel ); - TgtAptDialogInput -> setLabelPlace ( PUPLACE_ABOVE ) ; + TgtAptDialogInput -> setLabelPlace ( PUPLACE_TOP_LEFT ) ; TgtAptDialogInput -> setValue (NewTgtAirportId); TgtAptDialogInput -> acceptInput(); diff --git a/src/GUI/prop_picker.cxx b/src/GUI/prop_picker.cxx index a2b4de851..950a9b80c 100755 --- a/src/GUI/prop_picker.cxx +++ b/src/GUI/prop_picker.cxx @@ -379,7 +379,7 @@ fgPropPicker::fgPropPicker ( int x, int y, int w, int h, int arrows, list_box = new puListBox ( 10, 40, w-40, h-60 ) ; list_box -> setLabel ( title ); - list_box -> setLabelPlace ( PUPLACE_ABOVE ) ; + list_box -> setLabelPlace ( PUPLACE_TOP_LEFT ) ; list_box -> setStyle ( -PUSTYLE_SMALL_SHADED ) ; list_box -> setUserData ( this ) ; list_box -> setCallback ( handle_select ) ; diff --git a/src/GUI/sgVec3Slider.cxx b/src/GUI/sgVec3Slider.cxx index 454c7082e..3e2b40db0 100644 --- a/src/GUI/sgVec3Slider.cxx +++ b/src/GUI/sgVec3Slider.cxx @@ -129,9 +129,9 @@ FloatSlider::FloatSlider ( int x, int y, int sz, float f, const char *title, setCBMode ( PUSLIDER_DELTA ) ; strcpy ( _title, title); setLabel ( _title ); - setLabelPlace ( PUPLACE_LEFT ); + setLabelPlace ( PUPLACE_LOWER_LEFT ); setLegend(_text); - // setLegendPlace( PUPLACE_RIGHT ); + // setLegendPlace( PUPLACE_LOWER_RIGHT ); } @@ -211,9 +211,9 @@ FloatDial::FloatDial ( int x, int y, int sz, float f, const char *title, setCBMode ( PUSLIDER_DELTA ) ; strcpy ( _title, title); setLabel ( _title ); - setLabelPlace ( PUPLACE_LEFT ); + setLabelPlace ( PUPLACE_LOWER_LEFT ); setLegend(_text); - // setLegendPlace( PUPLACE_RIGHT ); + // setLegendPlace( PUPLACE_LOWER_RIGHT ); } @@ -329,7 +329,7 @@ sgVec3Slider::sgVec3Slider ( int x, int y, sgVec3 cart, const char *title, new puFrame ( 0, 0, DialogWidth, DialogHeight ); - setLabelPlace( PUPLACE_DEFAULT /*PUPLACE_CENTERED*/ ); + setLabelPlace( PUPLACE_DEFAULT /*PUPLACE_CENTERED_CENTERED*/ ); setLabel( Label ); /* heading */