OpenTTD

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 */
ToolbarEditorWidgets
ToolbarEditorWidgets
Widgets of the ScenarioEditorToolbarWindow class.
Definition: toolbar_widget.h:53
WID_TE_SIGNS
Sign building.
Definition: toolbar_widget.h:71
WID_TN_SUBSIDIES
Subsidy menu.
Definition: toolbar_widget.h:23
WID_TE_HELP
Help menu.
Definition: toolbar_widget.h:75
WID_TE_TREES
Tree building toolbar.
Definition: toolbar_widget.h:70
WID_TN_ROADVEHS
Road vehicle menu.
Definition: toolbar_widget.h:34
WID_TE_SETTINGS
Settings menu.
Definition: toolbar_widget.h:56
WID_TN_SMALL_MAP
Small map menu.
Definition: toolbar_widget.h:21
WID_TN_ZOOM_IN
Zoom in the main viewport.
Definition: toolbar_widget.h:37
WID_TN_TOWNS
Town menu.
Definition: toolbar_widget.h:22
WID_TE_SMALL_MAP
Small map menu.
Definition: toolbar_widget.h:62
WID_TE_INDUSTRY
Industry building window.
Definition: toolbar_widget.h:67
WID_TN_MESSAGES
Messages menu.
Definition: toolbar_widget.h:46
WID_TN_INDUSTRIES
Industry menu.
Definition: toolbar_widget.h:31
WID_TN_FAST_FORWARD
Fast forward the game.
Definition: toolbar_widget.h:18
WID_TN_SWITCH_BAR
Only available when toolbar has been split to switch between different subsets.
Definition: toolbar_widget.h:48
WID_TE_FAST_FORWARD
Fast forward the game.
Definition: toolbar_widget.h:55
WID_TE_MUSIC_SOUND
Music/sound configuration menu.
Definition: toolbar_widget.h:74
WID_TE_SWITCH_BAR
Only available when toolbar has been split to switch between different subsets.
Definition: toolbar_widget.h:76
WID_TN_TRAINS
Train menu.
Definition: toolbar_widget.h:33
WID_TN_VEHICLE_START
Helper for the offset of the vehicle menus.
Definition: toolbar_widget.h:32
WID_TN_COMPANIES
Company menu.
Definition: toolbar_widget.h:26
WID_TN_ROADS
Road building menu.
Definition: toolbar_widget.h:41
WID_TN_GRAPHS
Graph menu.
Definition: toolbar_widget.h:29
ToolbarNormalWidgets
ToolbarNormalWidgets
Widgets of the MainToolbarWindow class.
Definition: toolbar_widget.h:16
WID_TE_LAND_GENERATE
Land generation.
Definition: toolbar_widget.h:65
WID_TN_RAILS
Rail building menu.
Definition: toolbar_widget.h:40
WID_TN_BUILDING_TOOLS_START
Helper for the offset of the building tools.
Definition: toolbar_widget.h:39
WID_TN_SAVE
Save menu.
Definition: toolbar_widget.h:20
WID_TN_AIR
Airport building toolbar.
Definition: toolbar_widget.h:43
WID_TN_FINANCES
Finance menu.
Definition: toolbar_widget.h:25
WID_TN_WATER
Water building toolbar.
Definition: toolbar_widget.h:42
WID_TE_DATE
The date of the scenario.
Definition: toolbar_widget.h:59
WID_TE_PAUSE
Pause the game.
Definition: toolbar_widget.h:54
WID_TE_ROADS
Road building menu.
Definition: toolbar_widget.h:68
WID_TE_ZOOM_OUT
Zoom out the main viewport.
Definition: toolbar_widget.h:64
WID_TE_SAVE
Save menu.
Definition: toolbar_widget.h:57
WID_TE_ZOOM_IN
Zoom in the main viewport.
Definition: toolbar_widget.h:63
WID_TN_STORY
Story menu.
Definition: toolbar_widget.h:27
WID_TE_WATER
Water building toolbar.
Definition: toolbar_widget.h:69
WID_TN_STATIONS
Station menu.
Definition: toolbar_widget.h:24
WID_TN_GOAL
Goal menu.
Definition: toolbar_widget.h:28
WID_TN_AIRCRAFTS
Aircraft menu.
Definition: toolbar_widget.h:36
WID_TN_PAUSE
Pause the game.
Definition: toolbar_widget.h:17
WID_TN_LEAGUE
Company league menu.
Definition: toolbar_widget.h:30
WID_TN_MUSIC_SOUND
Music/sound configuration menu.
Definition: toolbar_widget.h:45
WID_TE_DATE_FORWARD
Increase the date of the scenario.
Definition: toolbar_widget.h:61
WID_TN_END
Helper for knowing the amount of widgets.
Definition: toolbar_widget.h:49
WID_TE_SPACER
Spacer with "scenario editor" text.
Definition: toolbar_widget.h:58
WID_TE_DATE_PANEL
Container for the date widgets.
Definition: toolbar_widget.h:72
WID_TE_TOWN_GENERATE
Town building window.
Definition: toolbar_widget.h:66
WID_TE_DATE_BACKWARD
Reduce the date of the scenario.
Definition: toolbar_widget.h:60
WID_TN_ZOOM_OUT
Zoom out the main viewport.
Definition: toolbar_widget.h:38
WID_TN_HELP
Help menu.
Definition: toolbar_widget.h:47
WID_TN_SHIPS
Ship menu.
Definition: toolbar_widget.h:35
WID_TN_SETTINGS
Settings menu.
Definition: toolbar_widget.h:19
WID_TN_LANDSCAPE
Landscaping toolbar.
Definition: toolbar_widget.h:44