AirportPickerWindow Class Reference

Inheritance diagram for AirportPickerWindow:

PickerWindowBase Window ZeroedMemoryAllocator

Public Member Functions

 AirportPickerWindow (const WindowDesc *desc, Window *parent)
virtual void OnPaint ()
 This window is currently being repainted.
virtual void OnClick (Point pt, int widget)
 A click with the left mouse button has been made on the window.
virtual void OnTick ()
 Called once per (game) tick.

Private Types

 BAW_BOTTOMPANEL = 10
 BAW_SMALL_AIRPORT
 BAW_CITY_AIRPORT
 BAW_HELIPORT
 BAW_METRO_AIRPORT
 BAW_STR_INTERNATIONAL_AIRPORT
 BAW_COMMUTER_AIRPORT
 BAW_HELIDEPOT
 BAW_STR_INTERCONTINENTAL_AIRPORT
 BAW_HELISTATION
 BAW_LAST_AIRPORT = BAW_HELISTATION
 BAW_AIRPORT_COUNT = BAW_LAST_AIRPORT - BAW_SMALL_AIRPORT + 1
 BAW_BTN_DONTHILIGHT = BAW_LAST_AIRPORT + 1
 BAW_BTN_DOHILIGHT
enum  {
  BAW_BOTTOMPANEL = 10, BAW_SMALL_AIRPORT, BAW_CITY_AIRPORT, BAW_HELIPORT,
  BAW_METRO_AIRPORT, BAW_STR_INTERNATIONAL_AIRPORT, BAW_COMMUTER_AIRPORT, BAW_HELIDEPOT,
  BAW_STR_INTERCONTINENTAL_AIRPORT, BAW_HELISTATION, BAW_LAST_AIRPORT = BAW_HELISTATION, BAW_AIRPORT_COUNT = BAW_LAST_AIRPORT - BAW_SMALL_AIRPORT + 1,
  BAW_BTN_DONTHILIGHT = BAW_LAST_AIRPORT + 1, BAW_BTN_DOHILIGHT
}

Detailed Description

Definition at line 155 of file airport_gui.cpp.


Member Function Documentation

virtual void AirportPickerWindow::OnClick ( Point  pt,
int  widget 
) [inline, virtual]

A click with the left mouse button has been made on the window.

Parameters:
pt the point inside the window that has been clicked.
widget the clicked widget.

Reimplemented from Window.

Definition at line 239 of file airport_gui.cpp.

References _selected_airport_type, _station_show_coverage, Window::LowerWidget(), Window::RaiseWidget(), Window::SetDirty(), Window::SetWidgetLoweredState(), and SndPlayFx().


The documentation for this class was generated from the following file:
Generated on Sat Sep 6 20:15:59 2008 for openttd by  doxygen 1.4.7