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