# rail_widget.h

Go to the documentation of this file.

    00001 /* $Id: rail_widget.h 25464 2013-06-25 20:22:08Z frosch $ */
    00002
    00003 /*
    00004  * This file is part of OpenTTD.
    00005  * 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.
    00006  * 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.
    00007  * 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/>.
    00008  */
    00009
    00012 #ifndef WIDGETS_RAIL_WIDGET_H
    00013 #define WIDGETS_RAIL_WIDGET_H
    00014
    00016 enum RailToolbarWidgets {
    00017   /* Name starts with RA instead of R, because of collision with RoadToolbarWidgets */
    00018   WID_RAT_CAPTION,
    00019   WID_RAT_BUILD_NS,
    00020   WID_RAT_BUILD_X,
    00021   WID_RAT_BUILD_EW,
    00022   WID_RAT_BUILD_Y,
    00023   WID_RAT_AUTORAIL,
    00024   WID_RAT_DEMOLISH,
    00025   WID_RAT_BUILD_DEPOT,
    00026   WID_RAT_BUILD_WAYPOINT,
    00027   WID_RAT_BUILD_STATION,
    00028   WID_RAT_BUILD_SIGNALS,
    00029   WID_RAT_BUILD_BRIDGE,
    00030   WID_RAT_BUILD_TUNNEL,
    00031   WID_RAT_REMOVE,
    00032   WID_RAT_CONVERT_RAIL,
    00033 };
    00034
    00036 enum BuildRailStationWidgets {
    00037   /* Name starts with BRA instead of BR, because of collision with BuildRoadStationWidgets */
    00038   WID_BRAS_PLATFORM_DIR_X,
    00039   WID_BRAS_PLATFORM_DIR_Y,
    00040
    00041   WID_BRAS_PLATFORM_NUM_1,
    00042   WID_BRAS_PLATFORM_NUM_2,
    00043   WID_BRAS_PLATFORM_NUM_3,
    00044   WID_BRAS_PLATFORM_NUM_4,
    00045   WID_BRAS_PLATFORM_NUM_5,
    00046   WID_BRAS_PLATFORM_NUM_6,
    00047   WID_BRAS_PLATFORM_NUM_7,
    00048
    00049   WID_BRAS_PLATFORM_LEN_1,
    00050   WID_BRAS_PLATFORM_LEN_2,
    00051   WID_BRAS_PLATFORM_LEN_3,
    00052   WID_BRAS_PLATFORM_LEN_4,
    00053   WID_BRAS_PLATFORM_LEN_5,
    00054   WID_BRAS_PLATFORM_LEN_6,
    00055   WID_BRAS_PLATFORM_LEN_7,
    00056
    00057   WID_BRAS_PLATFORM_DRAG_N_DROP,
    00058
    00059   WID_BRAS_HIGHLIGHT_OFF,
    00060   WID_BRAS_HIGHLIGHT_ON,
    00061   WID_BRAS_COVERAGE_TEXTS,
    00062
    00063   WID_BRAS_MATRIX,
    00064   WID_BRAS_IMAGE,
    00065   WID_BRAS_MATRIX_SCROLL,
    00066
    00067   WID_BRAS_SHOW_NEWST_DEFSIZE,
    00068   WID_BRAS_SHOW_NEWST_ADDITIONS,
    00069   WID_BRAS_SHOW_NEWST_MATRIX,
    00070   WID_BRAS_SHOW_NEWST_RESIZE,
    00071   WID_BRAS_SHOW_NEWST_TYPE,
    00072   WID_BRAS_NEWST_LIST,
    00073   WID_BRAS_NEWST_SCROLL,
    00074
    00075   WID_BRAS_PLATFORM_NUM_BEGIN = WID_BRAS_PLATFORM_NUM_1 - 1,
    00076   WID_BRAS_PLATFORM_LEN_BEGIN = WID_BRAS_PLATFORM_LEN_1 - 1,
    00077 };
    00078
    00080 enum BuildSignalWidgets {
    00081   WID_BS_SEMAPHORE_NORM,
    00082   WID_BS_SEMAPHORE_ENTRY,
    00083   WID_BS_SEMAPHORE_EXIT,
    00084   WID_BS_SEMAPHORE_COMBO,
    00085   WID_BS_SEMAPHORE_PBS,
    00086   WID_BS_SEMAPHORE_PBS_OWAY,
    00087   WID_BS_ELECTRIC_NORM,
    00088   WID_BS_ELECTRIC_ENTRY,
    00089   WID_BS_ELECTRIC_EXIT,
    00090   WID_BS_ELECTRIC_COMBO,
    00091   WID_BS_ELECTRIC_PBS,
    00092   WID_BS_ELECTRIC_PBS_OWAY,
    00093   WID_BS_CONVERT,
    00094   WID_BS_DRAG_SIGNALS_DENSITY_LABEL,
    00095   WID_BS_DRAG_SIGNALS_DENSITY_DECREASE,
    00096   WID_BS_DRAG_SIGNALS_DENSITY_INCREASE,
    00097 };
    00098
    00100 enum BuildRailDepotWidgets {
    00101   /* Name starts with BRA instead of BR, because of collision with BuildRoadDepotWidgets */
    00102   WID_BRAD_DEPOT_NE,
    00103   WID_BRAD_DEPOT_SE,
    00104   WID_BRAD_DEPOT_SW,
    00105   WID_BRAD_DEPOT_NW,
    00106 };
    00107
    00109 enum BuildRailWaypointWidgets {
    00110   WID_BRW_WAYPOINT_MATRIX,
    00111   WID_BRW_WAYPOINT,
    00112   WID_BRW_SCROLL,
    00113 };
    00114
    00115 #endif /* WIDGETS_RAIL_WIDGET_H */