]> git.mxchange.org Git - flightgear.git/blob - src/GUI/AirportList.hxx
the last patch fixed the AirportList ... and broke all other PUCLASS_LIST.;
[flightgear.git] / src / GUI / AirportList.hxx
1 // AirportList.hxx - scrolling list of airports.
2
3 #ifndef __AIRPORTLIST_HXX
4 #define __AIRPORTLIST_HXX
5
6 #include <simgear/compiler.h>
7 #include STL_STRING
8
9 #include <plib/pu.h>
10
11
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; };
16
17
18 #include "puList.hxx"
19
20 SG_USING_STD(string);
21
22 class FGAirportList;
23
24 class AirportList : public puList, public GUI_ID
25 {
26  public:
27     AirportList (int x, int y, int width, int height);
28     virtual ~AirportList ();
29
30     virtual void create_list();
31     virtual void destroy_list();
32
33     // FIXME: add other string value functions
34     virtual char * getListStringValue ();
35     virtual void setValue (const char *);
36
37  private:
38     FGAirportList * _airports;
39     char ** _content;
40     STD::string _filter;
41 };
42
43 #endif // __AIRPORTLIST_HXX