OpenTTD

- Main Page
- Related Pages
- Modules
- Namespaces
- Data Structures
- Files

- File List
- Globals

toolbar_widget.h
Go to the documentation of this file.
1 /* $Id: toolbar_widget.h 27671 2016-10-30 17:36:57Z frosch $ */
2
3 /*
4 * This file is part of OpenTTD.
5 * 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.
6 * 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.
7 * 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 */
9
12 #ifndef WIDGETS_TOOLBAR_WIDGET_H
13 #define WIDGETS_TOOLBAR_WIDGET_H
14
16 enum ToolbarNormalWidgets {
17 WID_TN_PAUSE,
18 WID_TN_FAST_FORWARD,
19 WID_TN_SETTINGS,
20 WID_TN_SAVE,
21 WID_TN_SMALL_MAP,
22 WID_TN_TOWNS,
23 WID_TN_SUBSIDIES,
24 WID_TN_STATIONS,
25 WID_TN_FINANCES,
26 WID_TN_COMPANIES,
27 WID_TN_STORY,
28 WID_TN_GOAL,
29 WID_TN_GRAPHS,
30 WID_TN_LEAGUE,
31 WID_TN_INDUSTRIES,
32 WID_TN_VEHICLE_START,
33 WID_TN_TRAINS = WID_TN_VEHICLE_START,
34 WID_TN_ROADVEHS,
35 WID_TN_SHIPS,
36 WID_TN_AIRCRAFTS,
37 WID_TN_ZOOM_IN,
38 WID_TN_ZOOM_OUT,
39 WID_TN_BUILDING_TOOLS_START,
40 WID_TN_RAILS = WID_TN_BUILDING_TOOLS_START,
41 WID_TN_ROADS,
42 WID_TN_WATER,
43 WID_TN_AIR,
44 WID_TN_LANDSCAPE,
45 WID_TN_MUSIC_SOUND,
46 WID_TN_MESSAGES,
47 WID_TN_HELP,
48 WID_TN_SWITCH_BAR,
49 WID_TN_END,
50 };
51
53 enum ToolbarEditorWidgets {
54 WID_TE_PAUSE,
55 WID_TE_FAST_FORWARD,
56 WID_TE_SETTINGS,
57 WID_TE_SAVE,
58 WID_TE_SPACER,
59 WID_TE_DATE,
60 WID_TE_DATE_BACKWARD,
61 WID_TE_DATE_FORWARD,
62 WID_TE_SMALL_MAP,
63 WID_TE_ZOOM_IN,
64 WID_TE_ZOOM_OUT,
65 WID_TE_LAND_GENERATE,
66 WID_TE_TOWN_GENERATE,
67 WID_TE_INDUSTRY,
68 WID_TE_ROADS,
69 WID_TE_WATER,
70 WID_TE_TREES,
71 WID_TE_SIGNS,
72 WID_TE_DATE_PANEL,
73 /* The following three need to have the same actual widget number as the normal toolbar due to shared code. */
74 WID_TE_MUSIC_SOUND = WID_TN_MUSIC_SOUND,
75 WID_TE_HELP = WID_TN_HELP,
76 WID_TE_SWITCH_BAR = WID_TN_SWITCH_BAR,
77 };
78
79 #endif /* WIDGETS_TOOLBAR_WIDGET_H */