2 * This file is part of OpenTTD.
3 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
4 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
5 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
8 /** @file toolbar_widget.h Types related to the toolbar widgets. */
10 #ifndef WIDGETS_TOOLBAR_WIDGET_H
11 #define WIDGETS_TOOLBAR_WIDGET_H
13 /** Widgets of the #MainToolbarWindow class. */
14 enum ToolbarNormalWidgets
: WidgetID
{
15 WID_TN_PAUSE
, ///< Pause the game.
16 WID_TN_FAST_FORWARD
, ///< Fast forward the game.
17 WID_TN_SETTINGS
, ///< Settings menu.
18 WID_TN_SAVE
, ///< Save menu.
19 WID_TN_SMALL_MAP
, ///< Small map menu.
20 WID_TN_TOWNS
, ///< Town menu.
21 WID_TN_SUBSIDIES
, ///< Subsidy menu.
22 WID_TN_STATIONS
, ///< Station menu.
23 WID_TN_FINANCES
, ///< Finance menu.
24 WID_TN_COMPANIES
, ///< Company menu.
25 WID_TN_STORY
, ///< Story menu.
26 WID_TN_GOAL
, ///< Goal menu.
27 WID_TN_GRAPHS
, ///< Graph menu.
28 WID_TN_LEAGUE
, ///< Company league menu.
29 WID_TN_INDUSTRIES
, ///< Industry menu.
30 WID_TN_VEHICLE_START
, ///< Helper for the offset of the vehicle menus.
31 WID_TN_TRAINS
= WID_TN_VEHICLE_START
, ///< Train menu.
32 WID_TN_ROADVEHS
, ///< Road vehicle menu.
33 WID_TN_SHIPS
, ///< Ship menu.
34 WID_TN_AIRCRAFT
, ///< Aircraft menu.
35 WID_TN_ZOOM_IN
, ///< Zoom in the main viewport.
36 WID_TN_ZOOM_OUT
, ///< Zoom out the main viewport.
37 WID_TN_BUILDING_TOOLS_START
, ///< Helper for the offset of the building tools
38 WID_TN_RAILS
= WID_TN_BUILDING_TOOLS_START
, ///< Rail building menu.
39 WID_TN_ROADS
, ///< Road building menu.
40 WID_TN_TRAMS
, ///< Tram building menu.
41 WID_TN_WATER
, ///< Water building toolbar.
42 WID_TN_AIR
, ///< Airport building toolbar.
43 WID_TN_LANDSCAPE
, ///< Landscaping toolbar.
44 WID_TN_MUSIC_SOUND
, ///< Music/sound configuration menu.
45 WID_TN_MESSAGES
, ///< Messages menu.
46 WID_TN_HELP
, ///< Help menu.
47 WID_TN_SWITCH_BAR
, ///< Only available when toolbar has been split to switch between different subsets.
48 WID_TN_END
, ///< Helper for knowing the amount of widgets.
51 /** Widgets of the #ScenarioEditorToolbarWindow class. */
52 enum ToolbarEditorWidgets
: WidgetID
{
53 WID_TE_PAUSE
, ///< Pause the game.
54 WID_TE_FAST_FORWARD
, ///< Fast forward the game.
55 WID_TE_SETTINGS
, ///< Settings menu.
56 WID_TE_SAVE
, ///< Save menu.
57 WID_TE_SPACER
, ///< Spacer with "scenario editor" text.
58 WID_TE_DATE
, ///< The date of the scenario.
59 WID_TE_DATE_BACKWARD
, ///< Reduce the date of the scenario.
60 WID_TE_DATE_FORWARD
, ///< Increase the date of the scenario.
61 WID_TE_SMALL_MAP
, ///< Small map menu.
62 WID_TE_ZOOM_IN
, ///< Zoom in the main viewport.
63 WID_TE_ZOOM_OUT
, ///< Zoom out the main viewport.
64 WID_TE_LAND_GENERATE
, ///< Land generation.
65 WID_TE_TOWN_GENERATE
, ///< Town building window.
66 WID_TE_INDUSTRY
, ///< Industry building window.
67 WID_TE_ROADS
, ///< Road building menu.
68 WID_TE_TRAMS
, ///< Tram building menu.
69 WID_TE_WATER
, ///< Water building toolbar.
70 WID_TE_TREES
, ///< Tree building toolbar.
71 WID_TE_SIGNS
, ///< Sign building.
72 WID_TE_DATE_PANEL
, ///< Container for the date widgets.
73 WID_TE_MUSIC_SOUND
, ///< Music/sound configuration menu.
74 WID_TE_HELP
, ///< Help menu.
75 WID_TE_SWITCH_BAR
, ///< Only available when toolbar has been split to switch between different subsets.
78 #endif /* WIDGETS_TOOLBAR_WIDGET_H */