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 graph_widget.h Types related to the graph widgets. */
12 #ifndef WIDGETS_GRAPH_WIDGET_H
13 #define WIDGETS_GRAPH_WIDGET_H
15 #include "../economy_type.h"
16 #include "../company_type.h"
18 /** Widgets of the #GraphLegendWindow class. */
19 enum GraphLegendWidgets
{
20 WID_GL_BACKGROUND
, ///< Background of the window.
22 WID_GL_FIRST_COMPANY
, ///< First company in the legend.
23 WID_GL_LAST_COMPANY
= WID_GL_FIRST_COMPANY
+ MAX_COMPANIES
- 1, ///< Last company in the legend.
26 /** Widgets of the #OperatingProfitGraphWindow class, #IncomeGraphWindow class, #DeliveredCargoGraphWindow class, and #CompanyValueGraphWindow class. */
27 enum CompanyValueWidgets
{
28 WID_CV_KEY_BUTTON
, ///< Key button.
29 WID_CV_BACKGROUND
, ///< Background of the window.
30 WID_CV_GRAPH
, ///< Graph itself.
31 WID_CV_RESIZE
, ///< Resize button.
34 /** Widget of the #PerformanceHistoryGraphWindow class. */
35 enum PerformanceHistoryGraphWidgets
{
36 WID_PHG_KEY
, ///< Key button.
37 WID_PHG_DETAILED_PERFORMANCE
, ///< Detailed performance.
38 WID_PHG_BACKGROUND
, ///< Background of the window.
39 WID_PHG_GRAPH
, ///< Graph itself.
40 WID_PHG_RESIZE
, ///< Resize button.
43 /** Widget of the #PaymentRatesGraphWindow class. */
44 enum CargoPaymentRatesWidgets
{
45 WID_CPR_BACKGROUND
, ///< Background of the window.
46 WID_CPR_HEADER
, ///< Header.
47 WID_CPR_GRAPH
, ///< Graph itself.
48 WID_CPR_RESIZE
, ///< Resize button.
49 WID_CPR_FOOTER
, ///< Footer.
50 WID_CPR_ENABLE_CARGOES
, ///< Enable cargoes button.
51 WID_CPR_DISABLE_CARGOES
, ///< Disable cargoes button.
52 WID_CPR_CARGO_FIRST
, ///< First cargo in the list.
55 /** Widget of the #CompanyLeagueWindow class. */
56 enum CompanyLeagueWidgets
{
57 WID_CL_BACKGROUND
, ///< Background of the window.
60 /** Widget of the #PerformanceRatingDetailWindow class. */
61 enum PerformanceRatingDetailsWidgets
{
62 WID_PRD_SCORE_FIRST
, ///< First entry in the score list.
63 WID_PRD_SCORE_LAST
= WID_PRD_SCORE_FIRST
+ (SCORE_END
- SCORE_BEGIN
) - 1, ///< Last entry in the score list.
65 WID_PRD_COMPANY_FIRST
, ///< First company.
66 WID_PRD_COMPANY_LAST
= WID_PRD_COMPANY_FIRST
+ MAX_COMPANIES
- 1, ///< Last company.
69 #endif /* WIDGETS_GRAPH_WIDGET_H */