OpenTTD

- Main Page
- Related Pages
- Modules
- Namespaces
- Data Structures
- Files

- File List
- Globals

graph_widget.h
Go to the documentation of this file.
1 /* $Id: graph_widget.h 23735 2012-01-03 20:26:05Z rubidium $ */
2
3 /*
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/>.
8 */
9
12 #ifndef WIDGETS_GRAPH_WIDGET_H
13 #define WIDGETS_GRAPH_WIDGET_H
14
15 #include "../economy_type.h"
16 #include "../company_type.h"
17
19 enum GraphLegendWidgets {
20 WID_GL_BACKGROUND,
21
22 WID_GL_FIRST_COMPANY,
23 WID_GL_LAST_COMPANY = WID_GL_FIRST_COMPANY + MAX_COMPANIES - 1,
24 };
25
27 enum CompanyValueWidgets {
28 WID_CV_KEY_BUTTON,
29 WID_CV_BACKGROUND,
30 WID_CV_GRAPH,
31 WID_CV_RESIZE,
32 };
33
35 enum PerformanceHistoryGraphWidgets {
36 WID_PHG_KEY,
37 WID_PHG_DETAILED_PERFORMANCE,
38 WID_PHG_BACKGROUND,
39 WID_PHG_GRAPH,
40 WID_PHG_RESIZE,
41 };
42
44 enum CargoPaymentRatesWidgets {
45 WID_CPR_BACKGROUND,
46 WID_CPR_HEADER,
47 WID_CPR_GRAPH,
48 WID_CPR_RESIZE,
49 WID_CPR_FOOTER,
50 WID_CPR_ENABLE_CARGOES,
51 WID_CPR_DISABLE_CARGOES,
52 WID_CPR_CARGO_FIRST,
53 };
54
56 enum CompanyLeagueWidgets {
57 WID_CL_BACKGROUND,
58 };
59
61 enum PerformanceRatingDetailsWidgets {
62 WID_PRD_SCORE_FIRST,
63 WID_PRD_SCORE_LAST = WID_PRD_SCORE_FIRST + (SCORE_END - SCORE_BEGIN) - 1,
64
65 WID_PRD_COMPANY_FIRST,
66 WID_PRD_COMPANY_LAST = WID_PRD_COMPANY_FIRST + MAX_COMPANIES - 1,
67 };
68
69 #endif /* WIDGETS_GRAPH_WIDGET_H */