1 // AirportList.hxx - scrolling list of airports.
3 #ifndef __AIRPORTLIST_HXX
4 #define __AIRPORTLIST_HXX
6 #include <simgear/compiler.h>
12 // ugly temproary workaround for plib's lack of user defined class ids FIXME
13 #define FGCLASS_LIST 0x00000001
14 #define FGCLASS_AIRPORTLIST 0x00000002
15 class GUI_ID { public: GUI_ID(int id) : id(id) {} int id; };
24 class AirportList : public puList, public GUI_ID
27 AirportList (int x, int y, int width, int height);
28 virtual ~AirportList ();
30 virtual void create_list();
31 virtual void destroy_list();
33 // FIXME: add other string value functions
34 virtual char * getListStringValue ();
35 virtual void setValue (const char *);
38 FGAirportList * _airports;
43 #endif // __AIRPORTLIST_HXX