OpenTTD Source  20241108-master-g80f628063a
toolbar_gui.h
Go to the documentation of this file.
1 /*
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/>.
6  */
7 
10 #ifndef TOOLBAR_GUI_H
11 #define TOOLBAR_GUI_H
12 
13 enum MainToolbarHotkeys {
14  MTHK_PAUSE,
15  MTHK_FASTFORWARD,
16  MTHK_SETTINGS,
17  MTHK_SAVEGAME,
18  MTHK_LOADGAME,
19  MTHK_SMALLMAP,
20  MTHK_TOWNDIRECTORY,
21  MTHK_SUBSIDIES,
22  MTHK_STATIONS,
23  MTHK_FINANCES,
24  MTHK_COMPANIES,
25  MTHK_STORY,
26  MTHK_GOAL,
27  MTHK_GRAPHS,
28  MTHK_LEAGUE,
29  MTHK_INDUSTRIES,
30  MTHK_TRAIN_LIST,
31  MTHK_ROADVEH_LIST,
32  MTHK_SHIP_LIST,
33  MTHK_AIRCRAFT_LIST,
34  MTHK_ZOOM_IN,
35  MTHK_ZOOM_OUT,
36  MTHK_BUILD_RAIL,
37  MTHK_BUILD_ROAD,
38  MTHK_BUILD_TRAM,
39  MTHK_BUILD_DOCKS,
40  MTHK_BUILD_AIRPORT,
41  MTHK_BUILD_TREES,
42  MTHK_MUSIC,
43  MTHK_LANDINFO,
44  MTHK_SCRIPT_DEBUG,
45  MTHK_SMALL_SCREENSHOT,
46  MTHK_ZOOMEDIN_SCREENSHOT,
47  MTHK_DEFAULTZOOM_SCREENSHOT,
48  MTHK_GIANT_SCREENSHOT,
49  MTHK_CHEATS,
50  MTHK_TERRAFORM,
51  MTHK_EXTRA_VIEWPORT,
52  MTHK_CLIENT_LIST,
53  MTHK_SIGN_LIST
54 };
55 
56 void AllocateToolbar();
57 void ToggleBoundingBoxes();
58 void ToggleDirtyBlocks();
60 
61 extern uint _toolbar_width;
62 
63 #endif /* TOOLBAR_GUI_H */
uint _toolbar_width
Width of the toolbar, shared by statusbar.
Definition: toolbar_gui.cpp:74
void ToggleDirtyBlocks()
Toggle drawing of the dirty blocks.
void AllocateToolbar()
Allocate the toolbar.
void ToggleBoundingBoxes()
Toggle drawing of sprites' bounding boxes.
void ToggleWidgetOutlines()
Toggle drawing of widget outlihes.