2003-11-27 23:41:00 +00:00
|
|
|
// AirportList.hxx - scrolling list of airports.
|
|
|
|
|
|
|
|
#ifndef __AIRPORTLIST_HXX
|
2006-04-17 13:40:20 +00:00
|
|
|
#define __AIRPORTLIST_HXX
|
|
|
|
|
|
|
|
#include <simgear/compiler.h>
|
|
|
|
#include STL_STRING
|
2003-11-27 23:41:00 +00:00
|
|
|
|
|
|
|
#include <plib/pu.h>
|
2006-05-22 16:14:50 +00:00
|
|
|
#include "dialog.hxx"
|
2003-11-27 23:41:00 +00:00
|
|
|
|
2006-05-21 22:14:18 +00:00
|
|
|
|
2006-04-17 13:40:20 +00:00
|
|
|
SG_USING_STD(string);
|
|
|
|
|
2003-11-27 23:41:00 +00:00
|
|
|
class FGAirportList;
|
|
|
|
|
2006-05-21 22:14:18 +00:00
|
|
|
class AirportList : public puList, public GUI_ID
|
2003-11-27 23:41:00 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
AirportList (int x, int y, int width, int height);
|
|
|
|
virtual ~AirportList ();
|
|
|
|
|
2006-03-31 10:17:43 +00:00
|
|
|
virtual void create_list();
|
|
|
|
virtual void destroy_list();
|
|
|
|
|
2003-11-27 23:41:00 +00:00
|
|
|
// FIXME: add other string value functions
|
2005-01-31 10:36:59 +00:00
|
|
|
virtual char * getListStringValue ();
|
2006-03-31 10:17:43 +00:00
|
|
|
virtual void setValue (const char *);
|
2003-11-27 23:41:00 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
FGAirportList * _airports;
|
|
|
|
char ** _content;
|
2006-03-31 10:17:43 +00:00
|
|
|
STD::string _filter;
|
2003-11-27 23:41:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // __AIRPORTLIST_HXX
|