OpenTTD Source: src/widgets/graph_widget.h Source File

OpenTTD Source 12.0-beta1

graph_widget.h
Go to the documentation of this file.
1 /*
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/>.
6 */
7
10 #ifndef WIDGETS_GRAPH_WIDGET_H
11 #define WIDGETS_GRAPH_WIDGET_H
12
13 #include "../economy_type.h"
14 #include "../company_type.h"
15
17 enum GraphLegendWidgets {
18 WID_GL_BACKGROUND,
19
20 WID_GL_FIRST_COMPANY,
21 WID_GL_LAST_COMPANY = WID_GL_FIRST_COMPANY + MAX_COMPANIES - 1,
22 };
23
25 enum CompanyValueWidgets {
26 WID_CV_KEY_BUTTON,
27 WID_CV_BACKGROUND,
28 WID_CV_GRAPH,
29 WID_CV_RESIZE,
30 };
31
33 enum PerformanceHistoryGraphWidgets {
34 WID_PHG_KEY,
35 WID_PHG_DETAILED_PERFORMANCE,
36 WID_PHG_BACKGROUND,
37 WID_PHG_GRAPH,
38 WID_PHG_RESIZE,
39 };
40
42 enum CargoPaymentRatesWidgets {
43 WID_CPR_BACKGROUND,
44 WID_CPR_HEADER,
45 WID_CPR_GRAPH,
46 WID_CPR_RESIZE,
47 WID_CPR_FOOTER,
48 WID_CPR_ENABLE_CARGOES,
49 WID_CPR_DISABLE_CARGOES,
50 WID_CPR_MATRIX,
51 WID_CPR_MATRIX_SCROLLBAR,
52 };
53
55 enum CompanyLeagueWidgets {
56 WID_CL_BACKGROUND,
57 };
58
60 enum PerformanceRatingDetailsWidgets {
61 WID_PRD_SCORE_FIRST,
62 WID_PRD_SCORE_LAST = WID_PRD_SCORE_FIRST + (SCORE_END - SCORE_BEGIN) - 1,
63
64 WID_PRD_COMPANY_FIRST,
65 WID_PRD_COMPANY_LAST = WID_PRD_COMPANY_FIRST + MAX_COMPANIES - 1,
66 };
67
68 #endif /* WIDGETS_GRAPH_WIDGET_H */
WID_PHG_KEY
@ WID_PHG_KEY
Key button.
Definition: graph_widget.h:34
WID_CV_KEY_BUTTON
@ WID_CV_KEY_BUTTON
Key button.
Definition: graph_widget.h:26
WID_CPR_RESIZE
@ WID_CPR_RESIZE
Resize button.
Definition: graph_widget.h:46
CompanyLeagueWidgets
CompanyLeagueWidgets
Widget of the CompanyLeagueWindow class.
Definition: graph_widget.h:55
PerformanceRatingDetailsWidgets
PerformanceRatingDetailsWidgets
Widget of the PerformanceRatingDetailWindow class.
Definition: graph_widget.h:60
WID_GL_FIRST_COMPANY
@ WID_GL_FIRST_COMPANY
First company in the legend.
Definition: graph_widget.h:20
WID_PHG_DETAILED_PERFORMANCE
@ WID_PHG_DETAILED_PERFORMANCE
Detailed performance.
Definition: graph_widget.h:35
WID_CV_BACKGROUND
@ WID_CV_BACKGROUND
Background of the window.
Definition: graph_widget.h:27
WID_PHG_RESIZE
@ WID_PHG_RESIZE
Resize button.
Definition: graph_widget.h:38
WID_CV_RESIZE
@ WID_CV_RESIZE
Resize button.
Definition: graph_widget.h:29
WID_PHG_GRAPH
@ WID_PHG_GRAPH
Graph itself.
Definition: graph_widget.h:37
WID_CPR_MATRIX_SCROLLBAR
@ WID_CPR_MATRIX_SCROLLBAR
Cargo list scrollbar.
Definition: graph_widget.h:51
CargoPaymentRatesWidgets
CargoPaymentRatesWidgets
Widget of the PaymentRatesGraphWindow class.
Definition: graph_widget.h:42
CompanyValueWidgets
CompanyValueWidgets
Widgets of the OperatingProfitGraphWindow class, IncomeGraphWindow class, DeliveredCargoGraphWindow c...
Definition: graph_widget.h:25
WID_PRD_COMPANY_LAST
@ WID_PRD_COMPANY_LAST
Last company.
Definition: graph_widget.h:65
WID_GL_BACKGROUND
@ WID_GL_BACKGROUND
Background of the window.
Definition: graph_widget.h:18
SCORE_END
@ SCORE_END
How many scores are there..
Definition: economy_type.h:57
WID_CPR_ENABLE_CARGOES
@ WID_CPR_ENABLE_CARGOES
Enable cargoes button.
Definition: graph_widget.h:48
WID_CPR_GRAPH
@ WID_CPR_GRAPH
Graph itself.
Definition: graph_widget.h:45
WID_PRD_COMPANY_FIRST
@ WID_PRD_COMPANY_FIRST
First company.
Definition: graph_widget.h:64
MAX_COMPANIES
@ MAX_COMPANIES
Maximum number of companies.
Definition: company_type.h:23
WID_PRD_SCORE_LAST
@ WID_PRD_SCORE_LAST
Last entry in the score list.
Definition: graph_widget.h:62
GraphLegendWidgets
GraphLegendWidgets
Widgets of the GraphLegendWindow class.
Definition: graph_widget.h:17
WID_CPR_FOOTER
@ WID_CPR_FOOTER
Footer.
Definition: graph_widget.h:47
PerformanceHistoryGraphWidgets
PerformanceHistoryGraphWidgets
Widget of the PerformanceHistoryGraphWindow class.
Definition: graph_widget.h:33
WID_CPR_MATRIX
@ WID_CPR_MATRIX
Cargo list.
Definition: graph_widget.h:50
WID_PRD_SCORE_FIRST
@ WID_PRD_SCORE_FIRST
First entry in the score list.
Definition: graph_widget.h:61
WID_CPR_BACKGROUND
@ WID_CPR_BACKGROUND
Background of the window.
Definition: graph_widget.h:43
WID_CL_BACKGROUND
@ WID_CL_BACKGROUND
Background of the window.
Definition: graph_widget.h:56
WID_GL_LAST_COMPANY
@ WID_GL_LAST_COMPANY
Last company in the legend.
Definition: graph_widget.h:21
WID_CPR_HEADER
@ WID_CPR_HEADER
Header.
Definition: graph_widget.h:44
WID_CV_GRAPH
@ WID_CV_GRAPH
Graph itself.
Definition: graph_widget.h:28
WID_CPR_DISABLE_CARGOES
@ WID_CPR_DISABLE_CARGOES
Disable cargoes button.
Definition: graph_widget.h:49
WID_PHG_BACKGROUND
@ WID_PHG_BACKGROUND
Background of the window.
Definition: graph_widget.h:36