964349e401
I have made the 'Select Airport from List' option in FlightGear work (I think) properly. I have some concerns about the solution, which could be broken by changes to plib (if they re-use the value I have assigned to PUCLASS_LIST), but for the moment it seems to work OK. Erik Hofman: A request has been sent to John Fay to include the puList code in the puAux subdirectory of plib so expect some changes for future version of FlightGear.
28 lines
506 B
C++
28 lines
506 B
C++
// AirportList.hxx - scrolling list of airports.
|
|
|
|
#ifndef __AIRPORTLIST_HXX
|
|
|
|
#include <plib/pu.h>
|
|
|
|
#include "puList.hxx"
|
|
|
|
class FGAirportList;
|
|
|
|
class AirportList : public puList
|
|
{
|
|
public:
|
|
AirportList (int x, int y, int width, int height);
|
|
virtual ~AirportList ();
|
|
|
|
// FIXME: add other string value functions
|
|
virtual char * getListStringValue ();
|
|
|
|
private:
|
|
FGAirportList * _airports;
|
|
int _nAirports;
|
|
char ** _content;
|
|
};
|
|
|
|
#endif // __AIRPORTLIST_HXX
|
|
|
|
// end of AirportList.hxx
|