1
0
Fork 0
flightgear/src/GUI/AirportList.hxx
James Turner f7b0b77abb PU.h sprintf fixing
Adjust our customised pu.h to use snprintf, with correct buffer
size information. Also adjust includes so our custom version is used, ]
even when including the system puAux.h.
2023-01-09 10:55:58 +00:00

35 lines
704 B
C++

// AirportList.hxx - scrolling list of airports.
/*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#pragma once
#include <simgear/compiler.h>
// ensure we include this before puAux.h, so that
// #define _PU_H_ 1 has been done, and hence we don't
// include the un-modified system pu.h
#include "FlightGear_pu.h"
#include <plib/puAux.h>
#include "FGPUIDialog.hxx"
class FGAirportList;
class AirportList : public puaList, public GUI_ID {
public:
AirportList(int x, int y, int width, int height);
virtual ~AirportList();
virtual void create_list();
virtual void destroy_list();
virtual void setValue(const char *);
private:
char **_content;
std::string _filter;
};