OpenTTD

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