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/>.
8 /** @file link_graph_legend_widget.h Types related to the linkgraph_legend widgets. */
10 #ifndef WIDGETS_LINKGRAPH_LEGEND_WIDGET_H
11 #define WIDGETS_LINKGRAPH_LEGEND_WIDGET_H
13 #include "../cargo_type.h"
15 /** Widgets of the WC_LINKGRAPH_LEGEND. */
17 enum LinkGraphLegendWidgets
: WidgetID
{
18 WID_LGL_CAPTION
, ///< Caption widget.
19 WID_LGL_SATURATION
, ///< Saturation legend.
20 WID_LGL_SATURATION_FIRST
,
21 WID_LGL_SATURATION_LAST
= WID_LGL_SATURATION_FIRST
+ 11,
22 WID_LGL_COMPANIES
, ///< Company selection widget.
23 WID_LGL_COMPANY_FIRST
,
24 WID_LGL_COMPANY_LAST
= WID_LGL_COMPANY_FIRST
+ MAX_COMPANIES
- 1,
25 WID_LGL_COMPANIES_ALL
,
26 WID_LGL_COMPANIES_NONE
,
27 WID_LGL_CARGOES
, ///< Cargo selection widget.
29 WID_LGL_CARGO_LAST
= WID_LGL_CARGO_FIRST
+ NUM_CARGO
- 1,
34 #endif /* WIDGETS_LINKGRAPH_LEGEND_WIDGET_H */