summaryrefslogtreecommitdiff
path: root/src/airport_gui.cpp
diff options
context:
space:
mode:
authortruebrain <truebrain@openttd.org>2011-12-15 22:22:55 +0000
committertruebrain <truebrain@openttd.org>2011-12-15 22:22:55 +0000
commit2aa774e831ad1cb7849c998759449ef777c5c664 (patch)
tree37293298be999cb3446fe4af7f11e107bfa17c3d /src/airport_gui.cpp
parentfd559171b4ab5ce09b67aa8c4e9f2d0482a09558 (diff)
downloadopenttd-2aa774e831ad1cb7849c998759449ef777c5c664.tar.xz
(svn r23528) -Codechange: move widget enums to widgets/NNN_type.h
Diffstat (limited to 'src/airport_gui.cpp')
-rw-r--r--src/airport_gui.cpp25
1 files changed, 2 insertions, 23 deletions
diff --git a/src/airport_gui.cpp b/src/airport_gui.cpp
index 0f475aa6d..d139c5607 100644
--- a/src/airport_gui.cpp
+++ b/src/airport_gui.cpp
@@ -29,6 +29,8 @@
#include "vehicle_func.h"
#include "sprite.h"
+#include "widgets/airport_widget.h"
+
#include "table/strings.h"
static AirportClassID _selected_airport_class; ///< the currently visible airport class
@@ -63,13 +65,6 @@ static void PlaceAirport(TileIndex tile)
ShowSelectStationIfNeeded(cmdcont, TileArea(tile, _thd.size.x / TILE_SIZE, _thd.size.y / TILE_SIZE));
}
-/** Widget number of the airport build window. */
-enum AirportToolbarWidgets {
- ATW_AIRPORT,
- ATW_DEMOLISH,
-};
-
-
/** Airport build toolbar window handler. */
struct BuildAirToolbarWindow : Window {
int last_user_action; // Last started user action.
@@ -204,22 +199,6 @@ EventState AirportToolbarGlobalHotkeys(uint16 key, uint16 keycode)
return w->OnKeyPress(key, keycode);
}
-/** Airport widgets in the airport picker window. */
-enum AirportPickerWidgets {
- BAIRW_CLASS_DROPDOWN,
- BAIRW_AIRPORT_LIST,
- BAIRW_SCROLLBAR,
- BAIRW_LAYOUT_NUM,
- BAIRW_LAYOUT_DECREASE,
- BAIRW_LAYOUT_INCREASE,
- BAIRW_AIRPORT_SPRITE,
- BAIRW_EXTRA_TEXT,
- BAIRW_BOTTOMPANEL,
- BAIRW_COVERAGE_LABEL,
- BAIRW_BTN_DONTHILIGHT,
- BAIRW_BTN_DOHILIGHT,
-};
-
class BuildAirportWindow : public PickerWindowBase {
SpriteID preview_sprite; ///< Cached airport preview sprite.
int line_height;