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

OpenTTD Source 14.0-beta3

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 : WidgetID {
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 GraphWidgets : WidgetID {
26 WID_GRAPH_KEY_BUTTON,
27 WID_GRAPH_BACKGROUND,
28 WID_GRAPH_GRAPH,
29 WID_GRAPH_RESIZE,
30 WID_GRAPH_HEADER,
31 WID_GRAPH_FOOTER,
32
33 WID_PHG_DETAILED_PERFORMANCE,
34
35 WID_CPR_ENABLE_CARGOES,
36 WID_CPR_DISABLE_CARGOES,
37 WID_CPR_MATRIX,
38 WID_CPR_MATRIX_SCROLLBAR,
39 };
40
42 enum PerformanceRatingDetailsWidgets : WidgetID {
43 WID_PRD_SCORE_FIRST,
44 WID_PRD_SCORE_LAST = WID_PRD_SCORE_FIRST + (SCORE_END - SCORE_BEGIN) - 1,
45
46 WID_PRD_COMPANY_FIRST,
47 WID_PRD_COMPANY_LAST = WID_PRD_COMPANY_FIRST + MAX_COMPANIES - 1,
48 };
49
50 #endif /* WIDGETS_GRAPH_WIDGET_H */
PerformanceRatingDetailsWidgets
PerformanceRatingDetailsWidgets
Widget of the PerformanceRatingDetailWindow class.
Definition: graph_widget.h:42
WID_PRD_COMPANY_FIRST
@ WID_PRD_COMPANY_FIRST
First company.
Definition: graph_widget.h:46
WID_GRAPH_KEY_BUTTON
@ WID_GRAPH_KEY_BUTTON
Key button.
Definition: graph_widget.h:26
WID_PHG_DETAILED_PERFORMANCE
@ WID_PHG_DETAILED_PERFORMANCE
Detailed performance.
Definition: graph_widget.h:33
WID_GRAPH_GRAPH
@ WID_GRAPH_GRAPH
Graph itself.
Definition: graph_widget.h:28
GraphWidgets
GraphWidgets
Widgets of the BaseGraphWindow class and derived classes.
Definition: graph_widget.h:25
WidgetID
int WidgetID
Widget ID.
Definition: window_type.h:18
WID_GRAPH_FOOTER
@ WID_GRAPH_FOOTER
Footer.
Definition: graph_widget.h:31
WID_CPR_ENABLE_CARGOES
@ WID_CPR_ENABLE_CARGOES
Enable cargoes button.
Definition: graph_widget.h:35
WID_GRAPH_RESIZE
@ WID_GRAPH_RESIZE
Resize button.
Definition: graph_widget.h:29
SCORE_END
@ SCORE_END
How many scores are there..
Definition: economy_type.h:72
MAX_COMPANIES
@ MAX_COMPANIES
Maximum number of companies.
Definition: company_type.h:23
WID_PRD_SCORE_FIRST
@ WID_PRD_SCORE_FIRST
First entry in the score list.
Definition: graph_widget.h:43
WID_GL_BACKGROUND
@ WID_GL_BACKGROUND
Background of the window.
Definition: graph_widget.h:18
WID_GRAPH_HEADER
@ WID_GRAPH_HEADER
Header.
Definition: graph_widget.h:30
WID_CPR_MATRIX
@ WID_CPR_MATRIX
Cargo list.
Definition: graph_widget.h:37
WID_CPR_DISABLE_CARGOES
@ WID_CPR_DISABLE_CARGOES
Disable cargoes button.
Definition: graph_widget.h:36
WID_CPR_MATRIX_SCROLLBAR
@ WID_CPR_MATRIX_SCROLLBAR
Cargo list scrollbar.
Definition: graph_widget.h:38
WID_PRD_COMPANY_LAST
@ WID_PRD_COMPANY_LAST
Last company.
Definition: graph_widget.h:47
GraphLegendWidgets
GraphLegendWidgets
Widgets of the GraphLegendWindow class.
Definition: graph_widget.h:17
WID_GL_FIRST_COMPANY
@ WID_GL_FIRST_COMPANY
First company in the legend.
Definition: graph_widget.h:20
WID_PRD_SCORE_LAST
@ WID_PRD_SCORE_LAST
Last entry in the score list.
Definition: graph_widget.h:44
WID_GL_LAST_COMPANY
@ WID_GL_LAST_COMPANY
Last company in the legend.
Definition: graph_widget.h:21
WID_GRAPH_BACKGROUND
@ WID_GRAPH_BACKGROUND
Background of the window.
Definition: graph_widget.h:27