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

OpenTTD Source 1.11.0-RC1

vehicle_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_VEHICLE_WIDGET_H
11 #define WIDGETS_VEHICLE_WIDGET_H
12
14 enum VehicleViewWidgets {
15 WID_VV_CAPTION,
16 WID_VV_VIEWPORT,
17 WID_VV_START_STOP,
18 WID_VV_RENAME,
19 WID_VV_LOCATION,
20 WID_VV_ORDER_LOCATION,
21 WID_VV_GOTO_DEPOT,
22 WID_VV_REFIT,
23 WID_VV_SHOW_ORDERS,
24 WID_VV_SHOW_DETAILS,
25 WID_VV_CLONE,
26 WID_VV_SELECT_DEPOT_CLONE,
27 WID_VV_SELECT_REFIT_TURN,
28 WID_VV_TURN_AROUND,
29 WID_VV_FORCE_PROCEED,
30 };
31
33 enum VehicleRefitWidgets {
34 WID_VR_CAPTION,
35 WID_VR_VEHICLE_PANEL_DISPLAY,
36 WID_VR_SHOW_HSCROLLBAR,
37 WID_VR_HSCROLLBAR,
38 WID_VR_SELECT_HEADER,
39 WID_VR_MATRIX,
40 WID_VR_SCROLLBAR,
41 WID_VR_INFO,
42 WID_VR_REFIT,
43 };
44
46 enum VehicleDetailsWidgets {
47 WID_VD_CAPTION,
48 WID_VD_TOP_DETAILS,
49 WID_VD_INCREASE_SERVICING_INTERVAL,
50 WID_VD_DECREASE_SERVICING_INTERVAL,
51 WID_VD_SERVICE_INTERVAL_DROPDOWN,
52 WID_VD_SERVICING_INTERVAL,
53 WID_VD_MIDDLE_DETAILS,
54 WID_VD_MATRIX,
55 WID_VD_SCROLLBAR,
56 WID_VD_DETAILS_CARGO_CARRIED,
57 WID_VD_DETAILS_TRAIN_VEHICLES,
58 WID_VD_DETAILS_CAPACITY_OF_EACH,
59 WID_VD_DETAILS_TOTAL_CARGO,
60 };
61
63 enum VehicleListWidgets {
64 WID_VL_CAPTION,
65 WID_VL_GROUP_ORDER,
66 WID_VL_GROUP_BY_PULLDOWN,
67 WID_VL_SORT_ORDER,
68 WID_VL_SORT_BY_PULLDOWN,
69 WID_VL_LIST,
70 WID_VL_SCROLLBAR,
71 WID_VL_HIDE_BUTTONS,
72 WID_VL_AVAILABLE_VEHICLES,
73 WID_VL_MANAGE_VEHICLES_DROPDOWN,
74 WID_VL_STOP_ALL,
75 WID_VL_START_ALL,
76 };
77
78 #endif /* WIDGETS_VEHICLE_WIDGET_H */
WID_VL_AVAILABLE_VEHICLES
@ WID_VL_AVAILABLE_VEHICLES
Available vehicles.
Definition: vehicle_widget.h:72
WID_VV_TURN_AROUND
@ WID_VV_TURN_AROUND
Turn this vehicle around.
Definition: vehicle_widget.h:28
WID_VR_MATRIX
@ WID_VR_MATRIX
Options to refit to.
Definition: vehicle_widget.h:39
WID_VL_LIST
@ WID_VL_LIST
List of the vehicles.
Definition: vehicle_widget.h:69
WID_VL_CAPTION
@ WID_VL_CAPTION
Caption of window.
Definition: vehicle_widget.h:64
WID_VL_GROUP_BY_PULLDOWN
@ WID_VL_GROUP_BY_PULLDOWN
Group by dropdown list.
Definition: vehicle_widget.h:66
VehicleListWidgets
VehicleListWidgets
Widgets of the VehicleListWindow class.
Definition: vehicle_widget.h:63
VehicleRefitWidgets
VehicleRefitWidgets
Widgets of the RefitWindow class.
Definition: vehicle_widget.h:33
WID_VR_CAPTION
@ WID_VR_CAPTION
Caption of window.
Definition: vehicle_widget.h:34
WID_VL_START_ALL
@ WID_VL_START_ALL
Start all button.
Definition: vehicle_widget.h:75
WID_VD_SERVICE_INTERVAL_DROPDOWN
@ WID_VD_SERVICE_INTERVAL_DROPDOWN
Dropdown to select default/days/percent service interval.
Definition: vehicle_widget.h:51
WID_VV_VIEWPORT
@ WID_VV_VIEWPORT
Viewport widget.
Definition: vehicle_widget.h:16
WID_VV_SHOW_ORDERS
@ WID_VV_SHOW_ORDERS
Show the orders of this vehicle.
Definition: vehicle_widget.h:23
WID_VL_SCROLLBAR
@ WID_VL_SCROLLBAR
Scrollbar for the list.
Definition: vehicle_widget.h:70
WID_VD_DETAILS_CAPACITY_OF_EACH
@ WID_VD_DETAILS_CAPACITY_OF_EACH
Show the capacity of all train parts.
Definition: vehicle_widget.h:58
WID_VV_FORCE_PROCEED
@ WID_VV_FORCE_PROCEED
Force this vehicle to pass a signal at danger.
Definition: vehicle_widget.h:29
WID_VR_REFIT
@ WID_VR_REFIT
Perform the refit.
Definition: vehicle_widget.h:42
WID_VR_SHOW_HSCROLLBAR
@ WID_VR_SHOW_HSCROLLBAR
Selection widget for the horizontal scrollbar.
Definition: vehicle_widget.h:36
WID_VV_SHOW_DETAILS
@ WID_VV_SHOW_DETAILS
Show details of this vehicle.
Definition: vehicle_widget.h:24
WID_VR_HSCROLLBAR
@ WID_VR_HSCROLLBAR
Horizontal scrollbar or the vehicle display.
Definition: vehicle_widget.h:37
VehicleViewWidgets
VehicleViewWidgets
Widgets of the VehicleViewWindow class.
Definition: vehicle_widget.h:14
WID_VL_STOP_ALL
@ WID_VL_STOP_ALL
Stop all button.
Definition: vehicle_widget.h:74
WID_VL_SORT_ORDER
@ WID_VL_SORT_ORDER
Sort order.
Definition: vehicle_widget.h:67
WID_VD_DETAILS_TRAIN_VEHICLES
@ WID_VD_DETAILS_TRAIN_VEHICLES
Show all parts of the train with their description.
Definition: vehicle_widget.h:57
WID_VD_MIDDLE_DETAILS
@ WID_VD_MIDDLE_DETAILS
Details for non-trains.
Definition: vehicle_widget.h:53
WID_VL_SORT_BY_PULLDOWN
@ WID_VL_SORT_BY_PULLDOWN
Sort by dropdown list.
Definition: vehicle_widget.h:68
WID_VV_RENAME
@ WID_VV_RENAME
Rename vehicle.
Definition: vehicle_widget.h:18
WID_VL_MANAGE_VEHICLES_DROPDOWN
@ WID_VL_MANAGE_VEHICLES_DROPDOWN
Manage vehicles dropdown list.
Definition: vehicle_widget.h:73
WID_VD_TOP_DETAILS
@ WID_VD_TOP_DETAILS
Panel with generic details.
Definition: vehicle_widget.h:48
VehicleDetailsWidgets
VehicleDetailsWidgets
Widgets of the VehicleDetailsWindow class.
Definition: vehicle_widget.h:46
WID_VV_SELECT_REFIT_TURN
@ WID_VV_SELECT_REFIT_TURN
Selection widget between 'refit' and 'turn around' buttons.
Definition: vehicle_widget.h:27
WID_VD_MATRIX
@ WID_VD_MATRIX
List of details for trains.
Definition: vehicle_widget.h:54
WID_VL_HIDE_BUTTONS
@ WID_VL_HIDE_BUTTONS
Selection to hide the buttons.
Definition: vehicle_widget.h:71
WID_VR_SCROLLBAR
@ WID_VR_SCROLLBAR
Scrollbar for the refit options.
Definition: vehicle_widget.h:40
WID_VR_INFO
@ WID_VR_INFO
Information about the currently selected refit option.
Definition: vehicle_widget.h:41
WID_VL_GROUP_ORDER
@ WID_VL_GROUP_ORDER
Group order.
Definition: vehicle_widget.h:65
WID_VV_CAPTION
@ WID_VV_CAPTION
Caption of window.
Definition: vehicle_widget.h:15
WID_VD_CAPTION
@ WID_VD_CAPTION
Caption of window.
Definition: vehicle_widget.h:47
WID_VV_START_STOP
@ WID_VV_START_STOP
Start or stop this vehicle, and show information about the current state.
Definition: vehicle_widget.h:17
WID_VV_CLONE
@ WID_VV_CLONE
Clone this vehicle.
Definition: vehicle_widget.h:25
WID_VD_DECREASE_SERVICING_INTERVAL
@ WID_VD_DECREASE_SERVICING_INTERVAL
Decrease the servicing interval.
Definition: vehicle_widget.h:50
WID_VD_DETAILS_TOTAL_CARGO
@ WID_VD_DETAILS_TOTAL_CARGO
Show the capacity and carried cargo amounts aggregated per cargo of the train.
Definition: vehicle_widget.h:59
WID_VV_SELECT_DEPOT_CLONE
@ WID_VV_SELECT_DEPOT_CLONE
Selection widget between 'goto depot', and 'clone vehicle' buttons.
Definition: vehicle_widget.h:26
WID_VV_LOCATION
@ WID_VV_LOCATION
Center the main view on this vehicle.
Definition: vehicle_widget.h:19
WID_VD_DETAILS_CARGO_CARRIED
@ WID_VD_DETAILS_CARGO_CARRIED
Show carried cargo per part of the train.
Definition: vehicle_widget.h:56
WID_VR_VEHICLE_PANEL_DISPLAY
@ WID_VR_VEHICLE_PANEL_DISPLAY
Display with a representation of the vehicle to refit.
Definition: vehicle_widget.h:35
WID_VD_SCROLLBAR
@ WID_VD_SCROLLBAR
Scrollbar for train details.
Definition: vehicle_widget.h:55
WID_VD_INCREASE_SERVICING_INTERVAL
@ WID_VD_INCREASE_SERVICING_INTERVAL
Increase the servicing interval.
Definition: vehicle_widget.h:49
WID_VV_ORDER_LOCATION
@ WID_VV_ORDER_LOCATION
Center the main view on the order's target location.
Definition: vehicle_widget.h:20
WID_VV_GOTO_DEPOT
@ WID_VV_GOTO_DEPOT
Order this vehicle to go to the depot.
Definition: vehicle_widget.h:21
WID_VD_SERVICING_INTERVAL
@ WID_VD_SERVICING_INTERVAL
Information about the servicing interval.
Definition: vehicle_widget.h:52
WID_VR_SELECT_HEADER
@ WID_VR_SELECT_HEADER
Header with question about the cargo to carry.
Definition: vehicle_widget.h:38
WID_VV_REFIT
@ WID_VV_REFIT
Open the refit window.
Definition: vehicle_widget.h:22