41 static void ShowBuildAirportPicker(
Window *parent);
 
   47   if (result.
Failed()) 
return;
 
   61   SB(p2, 16, 16, INVALID_STATION); 
 
   92     if (!gui_scope) 
return;
 
  102           ShowBuildAirportPicker(
this);
 
  103           this->last_user_action = widget;
 
  109         this->last_user_action = widget;
 
  119     switch (this->last_user_action) {
 
  128       default: NOT_REACHED();
 
  168 static Hotkey airtoolbar_hotkeys[] = {
 
  175 static const NWidgetPart _nested_air_toolbar_widgets[] = {
 
  192   _nested_air_toolbar_widgets, 
lengthof(_nested_air_toolbar_widgets),
 
  193   &BuildAirToolbarWindow::hotkeys
 
  208   return AllocateWindowDescFront<BuildAirToolbarWindow>(&_air_toolbar_desc, 
TRANSPORT_AIR);
 
  221     for (uint i = 0; i < AirportClass::GetClassCount(); i++) {
 
  252     bool selectFirstAirport = 
true;
 
  258         selectFirstAirport = 
false;
 
  259         this->UpdateSelectSize();
 
  283           if (
string != STR_UNDEFINED) {
 
  286             SetDParam(0, STR_STATION_BUILD_AIRPORT_LAYOUT_NAME);
 
  301         for (uint i = 0; i < AirportClass::GetClassCount(); i++) {
 
  305         d.width += padding.width;
 
  306         d.height += padding.height;
 
  320         size->height = 5 * this->line_height;
 
  328           for (byte layout = 0; layout < as->
num_table; layout++) {
 
  329             SpriteID sprite = GetCustomAirportSprite(as, layout);
 
  344           for (byte layout = 0; layout < as->
num_table; layout++) {
 
  346             if (
string == STR_UNDEFINED) 
continue;
 
  372           y += this->line_height;
 
  388           if (
string != STR_UNDEFINED) {
 
  432   void SelectOtherAirport(
int airport_index)
 
  437     this->UpdateSelectSize();
 
  441   void UpdateSelectSize()
 
  474         if (num_clicked >= this->vscroll->
GetCount()) 
break;
 
  476         if (as->
IsAvailable()) this->SelectOtherAirport(num_clicked);
 
  486         this->UpdateSelectSize();
 
  491         this->UpdateSelectSize();
 
  497         this->UpdateSelectSize();
 
  512     for (uint i = 0; i < sel_apclass->
GetSpecCount(); i++) {
 
  515         this->SelectOtherAirport(i);
 
  528             this->SelectOtherAirport(i);
 
  535     this->SelectOtherAirport(-1);
 
  552 static const NWidgetPart _nested_build_airport_widgets[] = {
 
  579                       SetDataTip(STR_STATION_BUILD_COVERAGE_OFF, STR_STATION_BUILD_COVERAGE_AREA_OFF_TOOLTIP),
 
  581                       SetDataTip(STR_STATION_BUILD_COVERAGE_ON, STR_STATION_BUILD_COVERAGE_AREA_ON_TOOLTIP),
 
  590   WDP_AUTO, 
"build_station_air", 0, 0,
 
  593   _nested_build_airport_widgets, 
lengthof(_nested_build_airport_widgets)
 
  596 static void ShowBuildAirportPicker(
Window *parent)
 
  601 void InitializeAirportGui()