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 graph_widget.h Types related to the graph widgets. */
10 #ifndef WIDGETS_GRAPH_WIDGET_H
11 #define WIDGETS_GRAPH_WIDGET_H
13 #include "../economy_type.h"
14 #include "../company_type.h"
16 /** Widgets of the #GraphLegendWindow class. */
17 enum GraphLegendWidgets
: WidgetID
{
18 WID_GL_BACKGROUND
, ///< Background of the window.
20 WID_GL_FIRST_COMPANY
, ///< First company in the legend.
21 WID_GL_LAST_COMPANY
= WID_GL_FIRST_COMPANY
+ MAX_COMPANIES
- 1, ///< Last company in the legend.
24 /** Widgets of the #BaseGraphWindow class and derived classes. */
25 enum GraphWidgets
: WidgetID
{
26 WID_GRAPH_KEY_BUTTON
, ///< Key button.
27 WID_GRAPH_BACKGROUND
, ///< Background of the window.
28 WID_GRAPH_GRAPH
, ///< Graph itself.
29 WID_GRAPH_RESIZE
, ///< Resize button.
30 WID_GRAPH_HEADER
, ///< Header.
31 WID_GRAPH_FOOTER
, ///< Footer.
33 WID_PHG_DETAILED_PERFORMANCE
, ///< Detailed performance.
35 WID_CPR_ENABLE_CARGOES
, ///< Enable cargoes button.
36 WID_CPR_DISABLE_CARGOES
, ///< Disable cargoes button.
37 WID_CPR_MATRIX
, ///< Cargo list.
38 WID_CPR_MATRIX_SCROLLBAR
,///< Cargo list scrollbar.
41 /** Widget of the #PerformanceRatingDetailWindow class. */
42 enum PerformanceRatingDetailsWidgets
: WidgetID
{
43 WID_PRD_SCORE_FIRST
, ///< First entry in the score list.
44 WID_PRD_SCORE_LAST
= WID_PRD_SCORE_FIRST
+ (SCORE_END
- SCORE_BEGIN
) - 1, ///< Last entry in the score list.
46 WID_PRD_COMPANY_FIRST
, ///< First company.
47 WID_PRD_COMPANY_LAST
= WID_PRD_COMPANY_FIRST
+ MAX_COMPANIES
- 1, ///< Last company.
50 #endif /* WIDGETS_GRAPH_WIDGET_H */