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

OpenTTD Source 15.0-RC2

picker_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 <https://www.gnu.org/licenses/old-licenses/gpl-2.0>.
6 */
7
10#ifndef WIDGETS_PICKER_WIDGET_H
11#define WIDGETS_PICKER_WIDGET_H
12
14 enum PickerClassWindowWidgets : WidgetID {
15 WID_PW_START = 1 << 16,
16
17 WID_PW_CLASS_SEL,
18 WID_PW_CLASS_FILTER,
19 WID_PW_CLASS_LIST,
20 WID_PW_CLASS_SCROLL,
21
22 WID_PW_TYPE_SEL,
23 WID_PW_TYPE_FILTER,
24 WID_PW_MODE_ALL,
25 WID_PW_MODE_USED,
26 WID_PW_MODE_SAVED,
27 WID_PW_SHRINK,
28 WID_PW_EXPAND,
29 WID_PW_TYPE_MATRIX,
30 WID_PW_TYPE_ITEM,
31 WID_PW_TYPE_SCROLL,
32 WID_PW_TYPE_NAME,
33 WID_PW_TYPE_RESIZE,
34 WID_PW_CONFIGURE_BADGES,
35 WID_PW_BADGE_FILTER,
36};
37
38#endif /* WIDGETS_PICKER_WIDGET_H */
PickerClassWindowWidgets
PickerClassWindowWidgets
Widgets of the PickerWindow class.
Definition picker_widget.h:14
WID_PW_MODE_SAVED
@ WID_PW_MODE_SAVED
Toggle showing only saved types.
Definition picker_widget.h:26
WID_PW_CLASS_FILTER
@ WID_PW_CLASS_FILTER
Editbox filter.
Definition picker_widget.h:18
WID_PW_TYPE_SCROLL
@ WID_PW_TYPE_SCROLL
Scrollbar for the matrix.
Definition picker_widget.h:31
WID_PW_EXPAND
@ WID_PW_EXPAND
Button to increase preview image height.
Definition picker_widget.h:28
WID_PW_CONFIGURE_BADGES
@ WID_PW_CONFIGURE_BADGES
Button to configure badges.
Definition picker_widget.h:34
WID_PW_TYPE_ITEM
@ WID_PW_TYPE_ITEM
A single item.
Definition picker_widget.h:30
WID_PW_CLASS_LIST
@ WID_PW_CLASS_LIST
List of classes.
Definition picker_widget.h:19
WID_PW_TYPE_FILTER
@ WID_PW_TYPE_FILTER
Text filter.
Definition picker_widget.h:23
WID_PW_MODE_USED
@ WID_PW_MODE_USED
Toggle showing only used types.
Definition picker_widget.h:25
WID_PW_BADGE_FILTER
@ WID_PW_BADGE_FILTER
Container for dropdown badge filters.
Definition picker_widget.h:35
WID_PW_TYPE_MATRIX
@ WID_PW_TYPE_MATRIX
Matrix with items.
Definition picker_widget.h:29
WID_PW_CLASS_SEL
@ WID_PW_CLASS_SEL
Stack to hide the class picker.
Definition picker_widget.h:17
WID_PW_MODE_ALL
@ WID_PW_MODE_ALL
Toggle "Show all" filter mode.
Definition picker_widget.h:24
WID_PW_CLASS_SCROLL
@ WID_PW_CLASS_SCROLL
Scrollbar for list of classes.
Definition picker_widget.h:20
WID_PW_SHRINK
@ WID_PW_SHRINK
Button to reduce preview image height.
Definition picker_widget.h:27
WID_PW_TYPE_SEL
@ WID_PW_TYPE_SEL
Stack to hide the type picker.
Definition picker_widget.h:22
WID_PW_TYPE_NAME
@ WID_PW_TYPE_NAME
Name of selected item.
Definition picker_widget.h:32
WID_PW_TYPE_RESIZE
@ WID_PW_TYPE_RESIZE
Type resize handle.
Definition picker_widget.h:33
WID_PW_START
@ WID_PW_START
Dummy to ensure widgets don't overlap.
Definition picker_widget.h:15
WidgetID
int WidgetID
Widget ID.
Definition window_type.h:20