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

OpenTTD Source 15.0-RC2

company_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 <https://www.gnu.org/licenses/old-licenses/gpl-2.0>.
6 */
7
10#ifndef WIDGETS_COMPANY_WIDGET_H
11#define WIDGETS_COMPANY_WIDGET_H
12
14 enum CompanyWidgets : WidgetID {
15 WID_C_CAPTION,
16
17 WID_C_FACE,
18 WID_C_FACE_TITLE,
19
20 WID_C_DESC_INAUGURATION,
21 WID_C_DESC_COLOUR_SCHEME,
22 WID_C_DESC_COLOUR_SCHEME_EXAMPLE,
23 WID_C_DESC_VEHICLE,
24 WID_C_DESC_VEHICLE_COUNTS,
25 WID_C_DESC_COMPANY_VALUE,
26 WID_C_DESC_INFRASTRUCTURE,
27 WID_C_DESC_INFRASTRUCTURE_COUNTS,
28
29 WID_C_SELECT_BUTTONS,
30 WID_C_NEW_FACE,
31 WID_C_COLOUR_SCHEME,
32 WID_C_PRESIDENT_NAME,
33 WID_C_COMPANY_NAME,
34
35 WID_C_SELECT_VIEW_BUILD_HQ,
36 WID_C_VIEW_HQ,
37 WID_C_BUILD_HQ,
38
39 WID_C_SELECT_RELOCATE,
40 WID_C_RELOCATE_HQ,
41
42 WID_C_VIEW_INFRASTRUCTURE,
43
44 WID_C_SELECT_GIVE_MONEY,
45 WID_C_GIVE_MONEY,
46
47 WID_C_SELECT_HOSTILE_TAKEOVER,
48 WID_C_HOSTILE_TAKEOVER,
49
50 WID_C_SELECT_MULTIPLAYER,
51 WID_C_COMPANY_JOIN,
52};
53
55 enum CompanyFinancesWidgets : WidgetID {
56 WID_CF_CAPTION,
57 WID_CF_TOGGLE_SIZE,
58 WID_CF_SEL_PANEL,
59 WID_CF_EXPS_CATEGORY,
60 WID_CF_EXPS_PRICE1,
61 WID_CF_EXPS_PRICE2,
62 WID_CF_EXPS_PRICE3,
63 WID_CF_TOTAL_PANEL,
64 WID_CF_SEL_MAXLOAN,
65 WID_CF_BALANCE_VALUE,
66 WID_CF_LOAN_VALUE,
67 WID_CF_BALANCE_LINE,
68 WID_CF_OWN_VALUE,
69 WID_CF_INTEREST_RATE,
70 WID_CF_MAXLOAN_VALUE,
71 WID_CF_SEL_BUTTONS,
72 WID_CF_INCREASE_LOAN,
73 WID_CF_REPAY_LOAN,
74 WID_CF_INFRASTRUCTURE,
75};
76
77
79 enum SelectCompanyLiveryWidgets : WidgetID {
80 WID_SCL_CAPTION,
81 WID_SCL_CLASS_GENERAL,
82 WID_SCL_CLASS_RAIL,
83 WID_SCL_CLASS_ROAD,
84 WID_SCL_CLASS_SHIP,
85 WID_SCL_CLASS_AIRCRAFT,
86 WID_SCL_GROUPS_RAIL,
87 WID_SCL_GROUPS_ROAD,
88 WID_SCL_GROUPS_SHIP,
89 WID_SCL_GROUPS_AIRCRAFT,
90 WID_SCL_SPACER_DROPDOWN,
91 WID_SCL_PRI_COL_DROPDOWN,
92 WID_SCL_SEC_COL_DROPDOWN,
93 WID_SCL_SEC_COL_DROP_SEL,
94 WID_SCL_MATRIX,
95 WID_SCL_MATRIX_SCROLLBAR,
96};
97
98
102 enum SelectCompanyManagerFaceWidgets : WidgetID {
103 WID_SCMF_CAPTION,
104 WID_SCMF_TOGGLE_LARGE_SMALL,
105 WID_SCMF_SELECT_FACE,
106 WID_SCMF_CANCEL,
107 WID_SCMF_ACCEPT,
108 WID_SCMF_SEL_LOADSAVE,
109 WID_SCMF_SEL_PARTS,
110 WID_SCMF_SEL_RESIZE,
111 WID_SCMF_RANDOM_NEW_FACE,
112 WID_SCMF_TOGGLE_LARGE_SMALL_BUTTON,
113 WID_SCMF_FACE,
114 WID_SCMF_LOAD,
115 WID_SCMF_FACECODE,
116 WID_SCMF_SAVE,
117 WID_SCMF_STYLE,
118 WID_SCMF_PARTS,
119 WID_SCMF_PARTS_SCROLLBAR,
120};
121
123 enum CompanyInfrastructureWidgets : WidgetID {
124 WID_CI_CAPTION,
125 WID_CI_LIST,
126 WID_CI_SCROLLBAR,
127};
128
130 enum BuyCompanyWidgets : WidgetID {
131 WID_BC_CAPTION,
132 WID_BC_FACE,
133 WID_BC_QUESTION,
134 WID_BC_NO,
135 WID_BC_YES,
136};
137
138#endif /* WIDGETS_COMPANY_WIDGET_H */
CompanyFinancesWidgets
CompanyFinancesWidgets
Widgets of the CompanyFinancesWindow class.
Definition company_widget.h:55
WID_CF_CAPTION
@ WID_CF_CAPTION
Caption of the window.
Definition company_widget.h:56
WID_CF_SEL_BUTTONS
@ WID_CF_SEL_BUTTONS
Selection of buttons.
Definition company_widget.h:71
WID_CF_SEL_PANEL
@ WID_CF_SEL_PANEL
Select panel or nothing.
Definition company_widget.h:58
WID_CF_TOTAL_PANEL
@ WID_CF_TOTAL_PANEL
Panel for totals.
Definition company_widget.h:63
WID_CF_EXPS_CATEGORY
@ WID_CF_EXPS_CATEGORY
Column for expenses category strings.
Definition company_widget.h:59
WID_CF_EXPS_PRICE1
@ WID_CF_EXPS_PRICE1
Column for year Y-2 expenses.
Definition company_widget.h:60
WID_CF_INFRASTRUCTURE
@ WID_CF_INFRASTRUCTURE
View company infrastructure.
Definition company_widget.h:74
WID_CF_TOGGLE_SIZE
@ WID_CF_TOGGLE_SIZE
Toggle windows size.
Definition company_widget.h:57
WID_CF_EXPS_PRICE2
@ WID_CF_EXPS_PRICE2
Column for year Y-1 expenses.
Definition company_widget.h:61
WID_CF_OWN_VALUE
@ WID_CF_OWN_VALUE
Own funds, not including loan.
Definition company_widget.h:68
WID_CF_LOAN_VALUE
@ WID_CF_LOAN_VALUE
Loan.
Definition company_widget.h:66
WID_CF_INCREASE_LOAN
@ WID_CF_INCREASE_LOAN
Increase loan.
Definition company_widget.h:72
WID_CF_INTEREST_RATE
@ WID_CF_INTEREST_RATE
Loan interest rate.
Definition company_widget.h:69
WID_CF_BALANCE_VALUE
@ WID_CF_BALANCE_VALUE
Bank balance value.
Definition company_widget.h:65
WID_CF_EXPS_PRICE3
@ WID_CF_EXPS_PRICE3
Column for year Y expenses.
Definition company_widget.h:62
WID_CF_BALANCE_LINE
@ WID_CF_BALANCE_LINE
Available cash.
Definition company_widget.h:67
WID_CF_REPAY_LOAN
@ WID_CF_REPAY_LOAN
Decrease loan..
Definition company_widget.h:73
WID_CF_SEL_MAXLOAN
@ WID_CF_SEL_MAXLOAN
Selection of maxloan column.
Definition company_widget.h:64
WID_CF_MAXLOAN_VALUE
@ WID_CF_MAXLOAN_VALUE
Max loan widget.
Definition company_widget.h:70
BuyCompanyWidgets
BuyCompanyWidgets
Widgets of the BuyCompanyWindow class.
Definition company_widget.h:130
WID_BC_NO
@ WID_BC_NO
No button.
Definition company_widget.h:134
WID_BC_YES
@ WID_BC_YES
Yes button.
Definition company_widget.h:135
WID_BC_QUESTION
@ WID_BC_QUESTION
Question text.
Definition company_widget.h:133
WID_BC_CAPTION
@ WID_BC_CAPTION
Caption of window.
Definition company_widget.h:131
WID_BC_FACE
@ WID_BC_FACE
Face button.
Definition company_widget.h:132
SelectCompanyManagerFaceWidgets
SelectCompanyManagerFaceWidgets
Widgets of the SelectCompanyManagerFaceWindow class.
Definition company_widget.h:102
WID_SCMF_CAPTION
@ WID_SCMF_CAPTION
Caption of window.
Definition company_widget.h:103
WID_SCMF_TOGGLE_LARGE_SMALL_BUTTON
@ WID_SCMF_TOGGLE_LARGE_SMALL_BUTTON
Toggle for large or small.
Definition company_widget.h:112
WID_SCMF_STYLE
@ WID_SCMF_STYLE
Style selector widget.
Definition company_widget.h:117
WID_SCMF_SEL_RESIZE
@ WID_SCMF_SEL_RESIZE
Selection to display the resize button.
Definition company_widget.h:110
WID_SCMF_SELECT_FACE
@ WID_SCMF_SELECT_FACE
Select face.
Definition company_widget.h:105
WID_SCMF_RANDOM_NEW_FACE
@ WID_SCMF_RANDOM_NEW_FACE
Create random new face.
Definition company_widget.h:111
WID_SCMF_SEL_PARTS
@ WID_SCMF_SEL_PARTS
Selection to display the buttons for setting each part of the face in the advanced view.
Definition company_widget.h:109
WID_SCMF_PARTS_SCROLLBAR
@ WID_SCMF_PARTS_SCROLLBAR
Scrollbar for configuration parts widget.
Definition company_widget.h:119
WID_SCMF_CANCEL
@ WID_SCMF_CANCEL
Cancel.
Definition company_widget.h:106
WID_SCMF_SAVE
@ WID_SCMF_SAVE
Save face.
Definition company_widget.h:116
WID_SCMF_SEL_LOADSAVE
@ WID_SCMF_SEL_LOADSAVE
Selection to display the load/save/number buttons in the advanced view.
Definition company_widget.h:108
WID_SCMF_FACE
@ WID_SCMF_FACE
Current face.
Definition company_widget.h:113
WID_SCMF_LOAD
@ WID_SCMF_LOAD
Load face.
Definition company_widget.h:114
WID_SCMF_ACCEPT
@ WID_SCMF_ACCEPT
Accept.
Definition company_widget.h:107
WID_SCMF_TOGGLE_LARGE_SMALL
@ WID_SCMF_TOGGLE_LARGE_SMALL
Toggle for large or small.
Definition company_widget.h:104
WID_SCMF_FACECODE
@ WID_SCMF_FACECODE
Get the face code.
Definition company_widget.h:115
WID_SCMF_PARTS
@ WID_SCMF_PARTS
Face configuration parts widget.
Definition company_widget.h:118
SelectCompanyLiveryWidgets
SelectCompanyLiveryWidgets
Widgets of the SelectCompanyLiveryWindow class.
Definition company_widget.h:79
WID_SCL_CLASS_AIRCRAFT
@ WID_SCL_CLASS_AIRCRAFT
Class aircraft.
Definition company_widget.h:85
WID_SCL_MATRIX_SCROLLBAR
@ WID_SCL_MATRIX_SCROLLBAR
Matrix scrollbar.
Definition company_widget.h:95
WID_SCL_CLASS_SHIP
@ WID_SCL_CLASS_SHIP
Class ship.
Definition company_widget.h:84
WID_SCL_SEC_COL_DROP_SEL
@ WID_SCL_SEC_COL_DROP_SEL
Container for secondary color dropdown, which can be hidden.
Definition company_widget.h:93
WID_SCL_GROUPS_SHIP
@ WID_SCL_GROUPS_SHIP
Ship groups.
Definition company_widget.h:88
WID_SCL_GROUPS_ROAD
@ WID_SCL_GROUPS_ROAD
Road groups.
Definition company_widget.h:87
WID_SCL_CLASS_ROAD
@ WID_SCL_CLASS_ROAD
Class road.
Definition company_widget.h:83
WID_SCL_GROUPS_AIRCRAFT
@ WID_SCL_GROUPS_AIRCRAFT
Aircraft groups.
Definition company_widget.h:89
WID_SCL_SEC_COL_DROPDOWN
@ WID_SCL_SEC_COL_DROPDOWN
Dropdown for secondary colour.
Definition company_widget.h:92
WID_SCL_SPACER_DROPDOWN
@ WID_SCL_SPACER_DROPDOWN
Spacer for dropdown.
Definition company_widget.h:90
WID_SCL_GROUPS_RAIL
@ WID_SCL_GROUPS_RAIL
Rail groups.
Definition company_widget.h:86
WID_SCL_PRI_COL_DROPDOWN
@ WID_SCL_PRI_COL_DROPDOWN
Dropdown for primary colour.
Definition company_widget.h:91
WID_SCL_CLASS_RAIL
@ WID_SCL_CLASS_RAIL
Class rail.
Definition company_widget.h:82
WID_SCL_MATRIX
@ WID_SCL_MATRIX
Matrix.
Definition company_widget.h:94
WID_SCL_CAPTION
@ WID_SCL_CAPTION
Caption of window.
Definition company_widget.h:80
WID_SCL_CLASS_GENERAL
@ WID_SCL_CLASS_GENERAL
Class general.
Definition company_widget.h:81
CompanyInfrastructureWidgets
CompanyInfrastructureWidgets
Widgets of the CompanyInfrastructureWindow class.
Definition company_widget.h:123
WID_CI_SCROLLBAR
@ WID_CI_SCROLLBAR
Infrastructure list scrollbar.
Definition company_widget.h:126
WID_CI_CAPTION
@ WID_CI_CAPTION
Caption of window.
Definition company_widget.h:124
WID_CI_LIST
@ WID_CI_LIST
Infrastructure list.
Definition company_widget.h:125
CompanyWidgets
CompanyWidgets
Widgets of the CompanyWindow class.
Definition company_widget.h:14
WID_C_SELECT_VIEW_BUILD_HQ
@ WID_C_SELECT_VIEW_BUILD_HQ
Panel about HQ.
Definition company_widget.h:35
WID_C_DESC_INFRASTRUCTURE_COUNTS
@ WID_C_DESC_INFRASTRUCTURE_COUNTS
Infrastructure count.
Definition company_widget.h:27
WID_C_DESC_VEHICLE
@ WID_C_DESC_VEHICLE
Vehicles.
Definition company_widget.h:23
WID_C_COLOUR_SCHEME
@ WID_C_COLOUR_SCHEME
Button to change colour scheme.
Definition company_widget.h:31
WID_C_CAPTION
@ WID_C_CAPTION
Caption of the window.
Definition company_widget.h:15
WID_C_VIEW_HQ
@ WID_C_VIEW_HQ
Button to view the HQ.
Definition company_widget.h:36
WID_C_SELECT_RELOCATE
@ WID_C_SELECT_RELOCATE
Panel about 'Relocate HQ'.
Definition company_widget.h:39
WID_C_SELECT_BUTTONS
@ WID_C_SELECT_BUTTONS
Selection widget for the button bar.
Definition company_widget.h:29
WID_C_VIEW_INFRASTRUCTURE
@ WID_C_VIEW_INFRASTRUCTURE
Panel about infrastructure.
Definition company_widget.h:42
WID_C_SELECT_HOSTILE_TAKEOVER
@ WID_C_SELECT_HOSTILE_TAKEOVER
Selection widget for the hostile takeover button.
Definition company_widget.h:47
WID_C_SELECT_GIVE_MONEY
@ WID_C_SELECT_GIVE_MONEY
Selection widget for the give money button.
Definition company_widget.h:44
WID_C_DESC_COLOUR_SCHEME
@ WID_C_DESC_COLOUR_SCHEME
Colour scheme.
Definition company_widget.h:21
WID_C_GIVE_MONEY
@ WID_C_GIVE_MONEY
Button to give money.
Definition company_widget.h:45
WID_C_SELECT_MULTIPLAYER
@ WID_C_SELECT_MULTIPLAYER
Multiplayer selection panel.
Definition company_widget.h:50
WID_C_DESC_INAUGURATION
@ WID_C_DESC_INAUGURATION
Inauguration.
Definition company_widget.h:20
WID_C_DESC_COLOUR_SCHEME_EXAMPLE
@ WID_C_DESC_COLOUR_SCHEME_EXAMPLE
Colour scheme example.
Definition company_widget.h:22
WID_C_BUILD_HQ
@ WID_C_BUILD_HQ
Button to build the HQ.
Definition company_widget.h:37
WID_C_HOSTILE_TAKEOVER
@ WID_C_HOSTILE_TAKEOVER
Button to hostile takeover another company.
Definition company_widget.h:48
WID_C_DESC_INFRASTRUCTURE
@ WID_C_DESC_INFRASTRUCTURE
Infrastructure.
Definition company_widget.h:26
WID_C_FACE_TITLE
@ WID_C_FACE_TITLE
Title for the face.
Definition company_widget.h:18
WID_C_DESC_COMPANY_VALUE
@ WID_C_DESC_COMPANY_VALUE
Company value.
Definition company_widget.h:25
WID_C_COMPANY_JOIN
@ WID_C_COMPANY_JOIN
Button to join company.
Definition company_widget.h:51
WID_C_PRESIDENT_NAME
@ WID_C_PRESIDENT_NAME
Button to change president name.
Definition company_widget.h:32
WID_C_DESC_VEHICLE_COUNTS
@ WID_C_DESC_VEHICLE_COUNTS
Vehicle count.
Definition company_widget.h:24
WID_C_NEW_FACE
@ WID_C_NEW_FACE
Button to make new face.
Definition company_widget.h:30
WID_C_FACE
@ WID_C_FACE
View of the face.
Definition company_widget.h:17
WID_C_RELOCATE_HQ
@ WID_C_RELOCATE_HQ
Button to relocate the HQ.
Definition company_widget.h:40
WID_C_COMPANY_NAME
@ WID_C_COMPANY_NAME
Button to change company name.
Definition company_widget.h:33
WidgetID
int WidgetID
Widget ID.
Definition window_type.h:20