OpenTTD
rail_gui.h
Go to the documentation of this file.
1 /* $Id: rail_gui.h 27683 2016-12-08 20:21:39Z frosch $ */
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 RAIL_GUI_H
13 #define RAIL_GUI_H
14 
15 #include "rail_type.h"
16 #include "widgets/dropdown_type.h"
17 
18 struct Window *ShowBuildRailToolbar(RailType railtype);
19 void ReinitGuiAfterToggleElrail(bool disable);
20 bool ResetSignalVariant(int32 = 0);
21 void InitializeRailGUI();
22 DropDownList *GetRailTypeDropDownList(bool for_replacement = false, bool all_option = false);
23 
24 #endif /* RAIL_GUI_H */
RailType
Enumeration for all possible railtypes.
Definition: rail_type.h:29
bool ResetSignalVariant(int32=0)
Updates the current signal variant used in the signal GUI to the one adequate to current year...
Definition: rail_gui.cpp:1953
Data structure for an opened window.
Definition: window_gui.h:271
void InitializeRailGUI()
Resets the rail GUI - sets default railtype to build and resets the signal GUI.
Definition: rail_gui.cpp:1973
Simple vector template class, with automatic delete.
void ReinitGuiAfterToggleElrail(bool disable)
Re-initialize rail-build toolbar after toggling support for electric trains.
Definition: rail_gui.cpp:1891
struct Window * ShowBuildRailToolbar(RailType railtype)
Open the build rail toolbar window for a specific rail type.
Definition: rail_gui.cpp:867
DropDownList * GetRailTypeDropDownList(bool for_replacement=false, bool all_option=false)
Create a drop down list for all the rail types of the local company.
Definition: rail_gui.cpp:1988
The different types of rail.