Doc: Update some yapf inline comments
[openttd-github.git] / src / widgets / company_widget.h
blob452632dccbabf72ac0b38f72c4316ea685097213
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 */
8 /** @file company_widget.h Types related to the company widgets. */
10 #ifndef WIDGETS_COMPANY_WIDGET_H
11 #define WIDGETS_COMPANY_WIDGET_H
13 /** Widgets of the #CompanyWindow class. */
14 enum CompanyWidgets : WidgetID {
15 WID_C_CAPTION, ///< Caption of the window.
17 WID_C_FACE, ///< View of the face.
18 WID_C_FACE_TITLE, ///< Title for the face.
20 WID_C_DESC_INAUGURATION, ///< Inauguration.
21 WID_C_DESC_COLOUR_SCHEME, ///< Colour scheme.
22 WID_C_DESC_COLOUR_SCHEME_EXAMPLE, ///< Colour scheme example.
23 WID_C_DESC_VEHICLE, ///< Vehicles.
24 WID_C_DESC_VEHICLE_COUNTS, ///< Vehicle count.
25 WID_C_DESC_COMPANY_VALUE, ///< Company value.
26 WID_C_DESC_INFRASTRUCTURE, ///< Infrastructure.
27 WID_C_DESC_INFRASTRUCTURE_COUNTS, ///< Infrastructure count.
29 WID_C_SELECT_BUTTONS, ///< Selection widget for the button bar.
30 WID_C_NEW_FACE, ///< Button to make new face.
31 WID_C_COLOUR_SCHEME, ///< Button to change colour scheme.
32 WID_C_PRESIDENT_NAME, ///< Button to change president name.
33 WID_C_COMPANY_NAME, ///< Button to change company name.
35 WID_C_SELECT_VIEW_BUILD_HQ, ///< Panel about HQ.
36 WID_C_VIEW_HQ, ///< Button to view the HQ.
37 WID_C_BUILD_HQ, ///< Button to build the HQ.
39 WID_C_SELECT_RELOCATE, ///< Panel about 'Relocate HQ'.
40 WID_C_RELOCATE_HQ, ///< Button to relocate the HQ.
42 WID_C_VIEW_INFRASTRUCTURE, ///< Panel about infrastructure.
44 WID_C_SELECT_GIVE_MONEY, ///< Selection widget for the give money button.
45 WID_C_GIVE_MONEY, ///< Button to give money.
47 WID_C_SELECT_HOSTILE_TAKEOVER, ///< Selection widget for the hostile takeover button.
48 WID_C_HOSTILE_TAKEOVER, ///< Button to hostile takeover another company.
50 WID_C_SELECT_MULTIPLAYER, ///< Multiplayer selection panel.
51 WID_C_COMPANY_JOIN, ///< Button to join company.
54 /** Widgets of the #CompanyFinancesWindow class. */
55 enum CompanyFinancesWidgets : WidgetID {
56 WID_CF_CAPTION, ///< Caption of the window.
57 WID_CF_TOGGLE_SIZE, ///< Toggle windows size.
58 WID_CF_SEL_PANEL, ///< Select panel or nothing.
59 WID_CF_EXPS_CATEGORY, ///< Column for expenses category strings.
60 WID_CF_EXPS_PRICE1, ///< Column for year Y-2 expenses.
61 WID_CF_EXPS_PRICE2, ///< Column for year Y-1 expenses.
62 WID_CF_EXPS_PRICE3, ///< Column for year Y expenses.
63 WID_CF_TOTAL_PANEL, ///< Panel for totals.
64 WID_CF_SEL_MAXLOAN, ///< Selection of maxloan column.
65 WID_CF_BALANCE_VALUE, ///< Bank balance value.
66 WID_CF_LOAN_VALUE, ///< Loan.
67 WID_CF_BALANCE_LINE, ///< Available cash.
68 WID_CF_OWN_VALUE, ///< Own funds, not including loan.
69 WID_CF_INTEREST_RATE, ///< Loan interest rate.
70 WID_CF_MAXLOAN_VALUE, ///< Max loan widget.
71 WID_CF_SEL_BUTTONS, ///< Selection of buttons.
72 WID_CF_INCREASE_LOAN, ///< Increase loan.
73 WID_CF_REPAY_LOAN, ///< Decrease loan..
74 WID_CF_INFRASTRUCTURE, ///< View company infrastructure.
78 /** Widgets of the #SelectCompanyLiveryWindow class. */
79 enum SelectCompanyLiveryWidgets : WidgetID {
80 WID_SCL_CAPTION, ///< Caption of window.
81 WID_SCL_CLASS_GENERAL, ///< Class general.
82 WID_SCL_CLASS_RAIL, ///< Class rail.
83 WID_SCL_CLASS_ROAD, ///< Class road.
84 WID_SCL_CLASS_SHIP, ///< Class ship.
85 WID_SCL_CLASS_AIRCRAFT, ///< Class aircraft.
86 WID_SCL_GROUPS_RAIL, ///< Rail groups.
87 WID_SCL_GROUPS_ROAD, ///< Road groups.
88 WID_SCL_GROUPS_SHIP, ///< Ship groups.
89 WID_SCL_GROUPS_AIRCRAFT, ///< Aircraft groups.
90 WID_SCL_SPACER_DROPDOWN, ///< Spacer for dropdown.
91 WID_SCL_PRI_COL_DROPDOWN, ///< Dropdown for primary colour.
92 WID_SCL_SEC_COL_DROPDOWN, ///< Dropdown for secondary colour.
93 WID_SCL_MATRIX, ///< Matrix.
94 WID_SCL_MATRIX_SCROLLBAR, ///< Matrix scrollbar.
98 /**
99 * Widgets of the #SelectCompanyManagerFaceWindow class.
100 * Do not change the order of the widgets from WID_SCMF_HAS_MOUSTACHE_EARRING to WID_SCMF_GLASSES_R,
101 * this order is needed for the WE_CLICK event of DrawFaceStringLabel().
103 enum SelectCompanyManagerFaceWidgets : WidgetID {
104 WID_SCMF_CAPTION, ///< Caption of window.
105 WID_SCMF_TOGGLE_LARGE_SMALL, ///< Toggle for large or small.
106 WID_SCMF_SELECT_FACE, ///< Select face.
107 WID_SCMF_CANCEL, ///< Cancel.
108 WID_SCMF_ACCEPT, ///< Accept.
109 WID_SCMF_MALE, ///< Male button in the simple view.
110 WID_SCMF_FEMALE, ///< Female button in the simple view.
111 WID_SCMF_MALE2, ///< Male button in the advanced view.
112 WID_SCMF_FEMALE2, ///< Female button in the advanced view.
113 WID_SCMF_SEL_LOADSAVE, ///< Selection to display the load/save/number buttons in the advanced view.
114 WID_SCMF_SEL_MALEFEMALE, ///< Selection to display the male/female buttons in the simple view.
115 WID_SCMF_SEL_PARTS, ///< Selection to display the buttons for setting each part of the face in the advanced view.
116 WID_SCMF_RANDOM_NEW_FACE, ///< Create random new face.
117 WID_SCMF_TOGGLE_LARGE_SMALL_BUTTON, ///< Toggle for large or small.
118 WID_SCMF_FACE, ///< Current face.
119 WID_SCMF_LOAD, ///< Load face.
120 WID_SCMF_FACECODE, ///< Get the face code.
121 WID_SCMF_SAVE, ///< Save face.
122 WID_SCMF_HAS_MOUSTACHE_EARRING_TEXT, ///< Text about moustache and earring.
123 WID_SCMF_TIE_EARRING_TEXT, ///< Text about tie and earring.
124 WID_SCMF_LIPS_MOUSTACHE_TEXT, ///< Text about lips and moustache.
125 WID_SCMF_HAS_GLASSES_TEXT, ///< Text about glasses.
126 WID_SCMF_HAIR_TEXT, ///< Text about hair.
127 WID_SCMF_EYEBROWS_TEXT, ///< Text about eyebrows.
128 WID_SCMF_EYECOLOUR_TEXT, ///< Text about eyecolour.
129 WID_SCMF_GLASSES_TEXT, ///< Text about glasses.
130 WID_SCMF_NOSE_TEXT, ///< Text about nose.
131 WID_SCMF_CHIN_TEXT, ///< Text about chin.
132 WID_SCMF_JACKET_TEXT, ///< Text about jacket.
133 WID_SCMF_COLLAR_TEXT, ///< Text about collar.
134 WID_SCMF_ETHNICITY_EUR, ///< Text about ethnicity european.
135 WID_SCMF_ETHNICITY_AFR, ///< Text about ethnicity african.
136 WID_SCMF_HAS_MOUSTACHE_EARRING, ///< Has moustache or earring.
137 WID_SCMF_HAS_GLASSES, ///< Has glasses.
138 WID_SCMF_EYECOLOUR_L, ///< Eyecolour left.
139 WID_SCMF_EYECOLOUR, ///< Eyecolour.
140 WID_SCMF_EYECOLOUR_R, ///< Eyecolour right.
141 WID_SCMF_CHIN_L, ///< Chin left.
142 WID_SCMF_CHIN, ///< Chin.
143 WID_SCMF_CHIN_R, ///< Chin right.
144 WID_SCMF_EYEBROWS_L, ///< Eyebrows left.
145 WID_SCMF_EYEBROWS, ///< Eyebrows.
146 WID_SCMF_EYEBROWS_R, ///< Eyebrows right.
147 WID_SCMF_LIPS_MOUSTACHE_L, ///< Lips / Moustache left.
148 WID_SCMF_LIPS_MOUSTACHE, ///< Lips / Moustache.
149 WID_SCMF_LIPS_MOUSTACHE_R, ///< Lips / Moustache right.
150 WID_SCMF_NOSE_L, ///< Nose left.
151 WID_SCMF_NOSE, ///< Nose.
152 WID_SCMF_NOSE_R, ///< Nose right.
153 WID_SCMF_HAIR_L, ///< Hair left.
154 WID_SCMF_HAIR, ///< Hair.
155 WID_SCMF_HAIR_R, ///< Hair right.
156 WID_SCMF_JACKET_L, ///< Jacket left.
157 WID_SCMF_JACKET, ///< Jacket.
158 WID_SCMF_JACKET_R, ///< Jacket right.
159 WID_SCMF_COLLAR_L, ///< Collar left.
160 WID_SCMF_COLLAR, ///< Collar.
161 WID_SCMF_COLLAR_R, ///< Collar right.
162 WID_SCMF_TIE_EARRING_L, ///< Tie / Earring left.
163 WID_SCMF_TIE_EARRING, ///< Tie / Earring.
164 WID_SCMF_TIE_EARRING_R, ///< Tie / Earring right.
165 WID_SCMF_GLASSES_L, ///< Glasses left.
166 WID_SCMF_GLASSES, ///< Glasses.
167 WID_SCMF_GLASSES_R, ///< Glasses right.
170 /** Widgets of the #CompanyInfrastructureWindow class. */
171 enum CompanyInfrastructureWidgets : WidgetID {
172 WID_CI_CAPTION, ///< Caption of window.
173 WID_CI_RAIL_DESC, ///< Description of rail.
174 WID_CI_RAIL_COUNT, ///< Count of rail.
175 WID_CI_ROAD_DESC, ///< Description of road.
176 WID_CI_ROAD_COUNT, ///< Count of road.
177 WID_CI_TRAM_DESC, ///< Description of tram.
178 WID_CI_TRAM_COUNT, ///< Count of tram.
179 WID_CI_WATER_DESC, ///< Description of water.
180 WID_CI_WATER_COUNT, ///< Count of water.
181 WID_CI_STATION_DESC, ///< Description of station.
182 WID_CI_STATION_COUNT, ///< Count of station.
183 WID_CI_TOTAL_DESC, ///< Description of total.
184 WID_CI_TOTAL, ///< Count of total.
187 /** Widgets of the #BuyCompanyWindow class. */
188 enum BuyCompanyWidgets : WidgetID {
189 WID_BC_CAPTION, ///< Caption of window.
190 WID_BC_FACE, ///< Face button.
191 WID_BC_QUESTION, ///< Question text.
192 WID_BC_NO, ///< No button.
193 WID_BC_YES, ///< Yes button.
196 #endif /* WIDGETS_COMPANY_WIDGET_H */