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