Feature: Import town data from JSON file (#10409)
[openttd-github.git] / src / widgets / picker_widget.h
blobc6612c2b9d3a13b5b96f98b4a17d4bc2ff2929d1
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 picker_widget.h Types related to the picker widgets. */
10 #ifndef WIDGETS_PICKER_WIDGET_H
11 #define WIDGETS_PICKER_WIDGET_H
13 /** Widgets of the #PickerWindow class. */
14 enum PickerClassWindowWidgets : WidgetID {
15 WID_PW_START = 1 << 16, ///< Dummy to ensure widgets don't overlap.
17 WID_PW_CLASS_SEL, ///< Stack to hide the class picker.
18 WID_PW_CLASS_FILTER, ///< Editbox filter.
19 WID_PW_CLASS_LIST, ///< List of classes.
20 WID_PW_CLASS_SCROLL, ///< Scrollbar for list of classes.
22 WID_PW_TYPE_SEL, ///< Stack to hide the type picker.
23 WID_PW_TYPE_FILTER, ///< Text filter.
24 WID_PW_MODE_ALL, ///< Toggle "Show all" filter mode.
25 WID_PW_MODE_USED, ///< Toggle showing only used types.
26 WID_PW_MODE_SAVED, ///< Toggle showing only saved types.
27 WID_PW_TYPE_MATRIX, ///< Matrix with items.
28 WID_PW_TYPE_ITEM, ///< A single item.
29 WID_PW_TYPE_SCROLL, ///< Scrollbar for the matrix.
30 WID_PW_TYPE_NAME, ///< Name of selected item.
31 WID_PW_TYPE_RESIZE, ///< Type resize handle.
34 #endif /* WIDGETS_PICKER_WIDGET_H */