link_graph_legend_widget.h

00001 /* $Id$ */
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_LINKGRAPH_LEGEND_WIDGET_H
00013 #define WIDGETS_LINKGRAPH_LEGEND_WIDGET_H
00014 
00017 enum LinkGraphLegendWidgets {
00018   WID_LGL_CAPTION,           
00019   WID_LGL_SATURATION,        
00020   WID_LGL_SATURATION_FIRST,
00021 
00022   /* lengthof(LinkGraphOverlay::LINK_COLOURS) - 1 == 11
00023    * There's no way to easily get that number here, though.
00024    */
00025   WID_LGL_SATURATION_LAST = WID_LGL_SATURATION_FIRST + 11,
00026   WID_LGL_COMPANIES,         
00027   WID_LGL_COMPANY_FIRST,
00028   WID_LGL_COMPANY_LAST = WID_LGL_COMPANY_FIRST + MAX_COMPANIES - 1,
00029   WID_LGL_COMPANIES_ALL,
00030   WID_LGL_COMPANIES_NONE,
00031   WID_LGL_CARGOES,            
00032   WID_LGL_CARGO_FIRST,
00033   WID_LGL_CARGO_LAST = WID_LGL_CARGO_FIRST + NUM_CARGO - 1,
00034   WID_LGL_CARGOES_ALL,
00035   WID_LGL_CARGOES_NONE,
00036 };
00037 
00038 #endif /* WIDGETS_LINKGRAPH_LEGEND_WIDGET_H */