Feature: Import town data from JSON file (#10409)
[openttd-github.git] / src / widgets / industry_widget.h
blob85bc99a49667cfce92cf3325c4fd63a69a490a26
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 industry_widget.h Types related to the industry widgets. */
10 #ifndef WIDGETS_INDUSTRY_WIDGET_H
11 #define WIDGETS_INDUSTRY_WIDGET_H
13 /** Widgets of the #BuildIndustryWindow class. */
14 enum DynamicPlaceIndustriesWidgets : WidgetID {
15 WID_DPI_SCENARIO_EDITOR_PANE, ///< Pane containing SE-only widgets.
16 WID_DPI_REMOVE_ALL_INDUSTRIES_WIDGET, ///< Remove all industries button.
17 WID_DPI_CREATE_RANDOM_INDUSTRIES_WIDGET, ///< Create random industries button.
18 WID_DPI_MATRIX_WIDGET, ///< Matrix of the industries.
19 WID_DPI_SCROLLBAR, ///< Scrollbar of the matrix.
20 WID_DPI_INFOPANEL, ///< Info panel about the industry.
21 WID_DPI_DISPLAY_WIDGET, ///< Display chain button.
22 WID_DPI_FUND_WIDGET, ///< Fund button.
25 /** Widgets of the #IndustryViewWindow class. */
26 enum IndustryViewWidgets : WidgetID {
27 WID_IV_CAPTION, ///< Caption of the window.
28 WID_IV_VIEWPORT, ///< Viewport of the industry.
29 WID_IV_INFO, ///< Info of the industry.
30 WID_IV_GOTO, ///< Goto button.
31 WID_IV_DISPLAY, ///< Display chain button.
34 /** Widgets of the #IndustryDirectoryWindow class. */
35 enum IndustryDirectoryWidgets : WidgetID {
36 WID_ID_CAPTION, ///< Caption of the window.
37 WID_ID_DROPDOWN_ORDER, ///< Dropdown for the order of the sort.
38 WID_ID_DROPDOWN_CRITERIA, ///< Dropdown for the criteria of the sort.
39 WID_ID_FILTER_BY_ACC_CARGO, ///< Accepted cargo filter dropdown list.
40 WID_ID_FILTER_BY_PROD_CARGO, ///< Produced cargo filter dropdown list.
41 WID_ID_FILTER, ///< Textbox to filter industry name.
42 WID_ID_INDUSTRY_LIST, ///< Industry list.
43 WID_ID_HSCROLLBAR, ///< Horizontal scrollbar of the list.
44 WID_ID_VSCROLLBAR, ///< Vertical scrollbar of the list.
47 /** Widgets of the #IndustryCargoesWindow class */
48 enum IndustryCargoesWidgets : WidgetID {
49 WID_IC_CAPTION, ///< Caption of the window.
50 WID_IC_NOTIFY, ///< Row of buttons at the bottom.
51 WID_IC_PANEL, ///< Panel that shows the chain.
52 WID_IC_SCROLLBAR, ///< Scrollbar of the panel.
53 WID_IC_CARGO_DROPDOWN, ///< Select cargo dropdown.
54 WID_IC_IND_DROPDOWN, ///< Select industry dropdown.
57 #endif /* WIDGETS_INDUSTRY_WIDGET_H */