OpenTTD Source: src/widgets/town_widget.h Source File

OpenTTD Source 14.0-beta3

town_widget.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 WIDGETS_TOWN_WIDGET_H
11 #define WIDGETS_TOWN_WIDGET_H
12
14 enum TownDirectoryWidgets : WidgetID {
15 WID_TD_SORT_ORDER,
16 WID_TD_SORT_CRITERIA,
17 WID_TD_FILTER,
18 WID_TD_LIST,
19 WID_TD_SCROLLBAR,
20 WID_TD_WORLD_POPULATION,
21 };
22
24 enum TownAuthorityWidgets : WidgetID {
25 WID_TA_CAPTION,
26 WID_TA_ZONE_BUTTON,
27 WID_TA_RATING_INFO,
28 WID_TA_COMMAND_LIST,
29 WID_TA_SCROLLBAR,
30 WID_TA_ACTION_INFO,
31 WID_TA_EXECUTE,
32 };
33
35 enum TownViewWidgets : WidgetID {
36 WID_TV_CAPTION,
37 WID_TV_VIEWPORT,
38 WID_TV_INFO,
39 WID_TV_CENTER_VIEW,
40 WID_TV_SHOW_AUTHORITY,
41 WID_TV_CHANGE_NAME,
42 WID_TV_CATCHMENT,
43 WID_TV_EXPAND,
44 WID_TV_DELETE,
45 };
46
48 enum TownFoundingWidgets : WidgetID {
49 WID_TF_NEW_TOWN,
50 WID_TF_RANDOM_TOWN,
51 WID_TF_MANY_RANDOM_TOWNS,
52 WID_TF_EXPAND_ALL_TOWNS,
53 WID_TF_TOWN_NAME_EDITBOX,
54 WID_TF_TOWN_NAME_RANDOM,
55 WID_TF_SIZE_SMALL,
56 WID_TF_SIZE_MEDIUM,
57 WID_TF_SIZE_LARGE,
58 WID_TF_SIZE_RANDOM,
59 WID_TF_CITY,
60 WID_TF_LAYOUT_ORIGINAL,
61 WID_TF_LAYOUT_BETTER,
62 WID_TF_LAYOUT_GRID2,
63 WID_TF_LAYOUT_GRID3,
64 WID_TF_LAYOUT_RANDOM,
65 };
66
67 #endif /* WIDGETS_TOWN_WIDGET_H */
WID_TV_EXPAND
@ WID_TV_EXPAND
Expand this town (scenario editor only).
Definition: town_widget.h:43
WID_TD_FILTER
@ WID_TD_FILTER
Filter of name.
Definition: town_widget.h:17
TownAuthorityWidgets
TownAuthorityWidgets
Widgets of the TownAuthorityWindow class.
Definition: town_widget.h:24
WID_TV_CENTER_VIEW
@ WID_TV_CENTER_VIEW
Center the main view on this town.
Definition: town_widget.h:39
WID_TF_LAYOUT_GRID3
@ WID_TF_LAYOUT_GRID3
Selection for the 3x3 grid town layout.
Definition: town_widget.h:63
WID_TV_CHANGE_NAME
@ WID_TV_CHANGE_NAME
Change the name of this town.
Definition: town_widget.h:41
WID_TF_CITY
@ WID_TF_CITY
Selection for the town's city state.
Definition: town_widget.h:59
WID_TD_WORLD_POPULATION
@ WID_TD_WORLD_POPULATION
The world's population.
Definition: town_widget.h:20
WID_TV_CATCHMENT
@ WID_TV_CATCHMENT
Toggle catchment area highlight.
Definition: town_widget.h:42
WID_TD_LIST
@ WID_TD_LIST
List of towns.
Definition: town_widget.h:18
WID_TF_RANDOM_TOWN
@ WID_TF_RANDOM_TOWN
Randomly place a town.
Definition: town_widget.h:50
WID_TA_RATING_INFO
@ WID_TA_RATING_INFO
Overview with ratings for each company.
Definition: town_widget.h:27
WID_TF_LAYOUT_GRID2
@ WID_TF_LAYOUT_GRID2
Selection for the 2x2 grid town layout.
Definition: town_widget.h:62
WID_TA_ZONE_BUTTON
@ WID_TA_ZONE_BUTTON
Turn on/off showing local authority zone.
Definition: town_widget.h:26
WidgetID
int WidgetID
Widget ID.
Definition: window_type.h:18
WID_TF_SIZE_RANDOM
@ WID_TF_SIZE_RANDOM
Selection for a randomly sized town.
Definition: town_widget.h:58
WID_TD_SORT_ORDER
@ WID_TD_SORT_ORDER
Direction of sort dropdown.
Definition: town_widget.h:15
WID_TA_SCROLLBAR
@ WID_TA_SCROLLBAR
Scrollbar of the list of commands.
Definition: town_widget.h:29
WID_TV_DELETE
@ WID_TV_DELETE
Delete this town (scenario editor only).
Definition: town_widget.h:44
TownFoundingWidgets
TownFoundingWidgets
Widgets of the FoundTownWindow class.
Definition: town_widget.h:48
WID_TF_EXPAND_ALL_TOWNS
@ WID_TF_EXPAND_ALL_TOWNS
Make all towns grow slightly.
Definition: town_widget.h:52
WID_TF_SIZE_MEDIUM
@ WID_TF_SIZE_MEDIUM
Selection for a medium town.
Definition: town_widget.h:56
WID_TV_SHOW_AUTHORITY
@ WID_TV_SHOW_AUTHORITY
Show the town authority window.
Definition: town_widget.h:40
WID_TV_INFO
@ WID_TV_INFO
General information about the town.
Definition: town_widget.h:38
WID_TV_VIEWPORT
@ WID_TV_VIEWPORT
View of the center of the town.
Definition: town_widget.h:37
WID_TF_LAYOUT_RANDOM
@ WID_TF_LAYOUT_RANDOM
Selection for a randomly chosen town layout.
Definition: town_widget.h:64
WID_TF_TOWN_NAME_RANDOM
@ WID_TF_TOWN_NAME_RANDOM
Generate a random town name.
Definition: town_widget.h:54
WID_TA_EXECUTE
@ WID_TA_EXECUTE
Do-it button.
Definition: town_widget.h:31
WID_TF_MANY_RANDOM_TOWNS
@ WID_TF_MANY_RANDOM_TOWNS
Randomly place many towns.
Definition: town_widget.h:51
WID_TF_NEW_TOWN
@ WID_TF_NEW_TOWN
Create a new town.
Definition: town_widget.h:49
WID_TA_COMMAND_LIST
@ WID_TA_COMMAND_LIST
List of commands for the player.
Definition: town_widget.h:28
WID_TA_ACTION_INFO
@ WID_TA_ACTION_INFO
Additional information about the action.
Definition: town_widget.h:30
WID_TA_CAPTION
@ WID_TA_CAPTION
Caption of window.
Definition: town_widget.h:25
WID_TD_SCROLLBAR
@ WID_TD_SCROLLBAR
Scrollbar for the town list.
Definition: town_widget.h:19
WID_TF_SIZE_SMALL
@ WID_TF_SIZE_SMALL
Selection for a small town.
Definition: town_widget.h:55
WID_TF_LAYOUT_ORIGINAL
@ WID_TF_LAYOUT_ORIGINAL
Selection for the original town layout.
Definition: town_widget.h:60
WID_TF_SIZE_LARGE
@ WID_TF_SIZE_LARGE
Selection for a large town.
Definition: town_widget.h:57
WID_TF_TOWN_NAME_EDITBOX
@ WID_TF_TOWN_NAME_EDITBOX
Editor for the town name.
Definition: town_widget.h:53
TownViewWidgets
TownViewWidgets
Widgets of the TownViewWindow class.
Definition: town_widget.h:35
WID_TD_SORT_CRITERIA
@ WID_TD_SORT_CRITERIA
Criteria of sort dropdown.
Definition: town_widget.h:16
TownDirectoryWidgets
TownDirectoryWidgets
Widgets of the TownDirectoryWindow class.
Definition: town_widget.h:14
WID_TV_CAPTION
@ WID_TV_CAPTION
Caption of window.
Definition: town_widget.h:36
WID_TF_LAYOUT_BETTER
@ WID_TF_LAYOUT_BETTER
Selection for the better town layout.
Definition: town_widget.h:61