| 1 | // AirportList.hxx - scrolling list of airports. |
| 2 | |
| 3 | /* |
| 4 | * SPDX-License-Identifier: GPL-2.0-or-later |
| 5 | */ |
| 6 | |
| 7 | #pragma once |
| 8 | |
| 9 | #include <simgear/compiler.h> |
| 10 | |
| 11 | // ensure we include this before puAux.h, so that |
| 12 | // #define _PU_H_ 1 has been done, and hence we don't |
| 13 | // include the un-modified system pu.h |
| 14 | #include "FlightGear_pu.h" |
| 15 | |
| 16 | #include <plib/puAux.h> |
| 17 | |
| 18 | #include "FGPUIDialog.hxx" |
| 19 | |
| 20 | class FGAirportList; |
| 21 | |
| 22 | class AirportList : public puaList, public GUI_ID { |
| 23 | public: |
| 24 | AirportList(int x, int y, int width, int height); |
| 25 | virtual ~AirportList(); |
| 26 | |
| 27 | virtual void create_list(); |
| 28 | virtual void destroy_list(); |
| 29 | virtual void setValue(const char *); |
| 30 | |
| 31 | private: |
| 32 | char **_content; |
| 33 | std::string _filter; |
| 34 | }; |
| 35 |