OpenTTD

company_widget.h
Go to the documentation of this file.
1 /* $Id: company_widget.h 23600 2011-12-19 20:46:17Z truebrain $ */
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_COMPANY_WIDGET_H
13 #define WIDGETS_COMPANY_WIDGET_H
14
16 enum CompanyWidgets {
17 WID_C_CAPTION,
18
19 WID_C_FACE,
20 WID_C_FACE_TITLE,
21
22 WID_C_DESC_INAUGURATION,
23 WID_C_DESC_COLOUR_SCHEME,
24 WID_C_DESC_COLOUR_SCHEME_EXAMPLE,
25 WID_C_DESC_VEHICLE,
26 WID_C_DESC_VEHICLE_COUNTS,
27 WID_C_DESC_COMPANY_VALUE,
28 WID_C_DESC_INFRASTRUCTURE,
29 WID_C_DESC_INFRASTRUCTURE_COUNTS,
30
31 WID_C_SELECT_DESC_OWNERS,
32 WID_C_DESC_OWNERS,
33
34 WID_C_SELECT_BUTTONS,
35 WID_C_NEW_FACE,
36 WID_C_COLOUR_SCHEME,
37 WID_C_PRESIDENT_NAME,
38 WID_C_COMPANY_NAME,
39 WID_C_BUY_SHARE,
40 WID_C_SELL_SHARE,
41
42 WID_C_SELECT_VIEW_BUILD_HQ,
43 WID_C_VIEW_HQ,
44 WID_C_BUILD_HQ,
45
46 WID_C_SELECT_RELOCATE,
47 WID_C_RELOCATE_HQ,
48
49 WID_C_VIEW_INFRASTRUCTURE,
50
51 WID_C_HAS_PASSWORD,
52 WID_C_SELECT_MULTIPLAYER,
53 WID_C_COMPANY_PASSWORD,
54 WID_C_COMPANY_JOIN,
55 };
56
58 enum CompanyFinancesWidgets {
59 WID_CF_CAPTION,
60 WID_CF_TOGGLE_SIZE,
61 WID_CF_SEL_PANEL,
62 WID_CF_EXPS_CATEGORY,
63 WID_CF_EXPS_PRICE1,
64 WID_CF_EXPS_PRICE2,
65 WID_CF_EXPS_PRICE3,
66 WID_CF_TOTAL_PANEL,
67 WID_CF_SEL_MAXLOAN,
68 WID_CF_BALANCE_VALUE,
69 WID_CF_LOAN_VALUE,
70 WID_CF_LOAN_LINE,
71 WID_CF_TOTAL_VALUE,
72 WID_CF_MAXLOAN_GAP,
73 WID_CF_MAXLOAN_VALUE,
74 WID_CF_SEL_BUTTONS,
75 WID_CF_INCREASE_LOAN,
76 WID_CF_REPAY_LOAN,
77 WID_CF_INFRASTRUCTURE,
78 };
79
80
82 enum SelectCompanyLiveryWidgets {
83 WID_SCL_CAPTION,
84 WID_SCL_CLASS_GENERAL,
85 WID_SCL_CLASS_RAIL,
86 WID_SCL_CLASS_ROAD,
87 WID_SCL_CLASS_SHIP,
88 WID_SCL_CLASS_AIRCRAFT,
89 WID_SCL_SPACER_DROPDOWN,
90 WID_SCL_PRI_COL_DROPDOWN,
91 WID_SCL_SEC_COL_DROPDOWN,
92 WID_SCL_MATRIX,
93 };
94
95
101 enum SelectCompanyManagerFaceWidgets {
102 WID_SCMF_CAPTION,
103 WID_SCMF_TOGGLE_LARGE_SMALL,
104 WID_SCMF_SELECT_FACE,
105 WID_SCMF_CANCEL,
106 WID_SCMF_ACCEPT,
107 WID_SCMF_MALE,
108 WID_SCMF_FEMALE,
109 WID_SCMF_MALE2,
110 WID_SCMF_FEMALE2,
111 WID_SCMF_SEL_LOADSAVE,
112 WID_SCMF_SEL_MALEFEMALE,
113 WID_SCMF_SEL_PARTS,
114 WID_SCMF_RANDOM_NEW_FACE,
115 WID_SCMF_TOGGLE_LARGE_SMALL_BUTTON,
116 WID_SCMF_FACE,
117 WID_SCMF_LOAD,
118 WID_SCMF_FACECODE,
119 WID_SCMF_SAVE,
120 WID_SCMF_HAS_MOUSTACHE_EARRING_TEXT,
121 WID_SCMF_TIE_EARRING_TEXT,
122 WID_SCMF_LIPS_MOUSTACHE_TEXT,
123 WID_SCMF_HAS_GLASSES_TEXT,
124 WID_SCMF_HAIR_TEXT,
125 WID_SCMF_EYEBROWS_TEXT,
126 WID_SCMF_EYECOLOUR_TEXT,
127 WID_SCMF_GLASSES_TEXT,
128 WID_SCMF_NOSE_TEXT,
129 WID_SCMF_CHIN_TEXT,
130 WID_SCMF_JACKET_TEXT,
131 WID_SCMF_COLLAR_TEXT,
132 WID_SCMF_ETHNICITY_EUR,
133 WID_SCMF_ETHNICITY_AFR,
134 WID_SCMF_HAS_MOUSTACHE_EARRING,
135 WID_SCMF_HAS_GLASSES,
136 WID_SCMF_EYECOLOUR_L,
137 WID_SCMF_EYECOLOUR,
138 WID_SCMF_EYECOLOUR_R,
139 WID_SCMF_CHIN_L,
140 WID_SCMF_CHIN,
141 WID_SCMF_CHIN_R,
142 WID_SCMF_EYEBROWS_L,
143 WID_SCMF_EYEBROWS,
144 WID_SCMF_EYEBROWS_R,
145 WID_SCMF_LIPS_MOUSTACHE_L,
146 WID_SCMF_LIPS_MOUSTACHE,
147 WID_SCMF_LIPS_MOUSTACHE_R,
148 WID_SCMF_NOSE_L,
149 WID_SCMF_NOSE,
150 WID_SCMF_NOSE_R,
151 WID_SCMF_HAIR_L,
152 WID_SCMF_HAIR,
153 WID_SCMF_HAIR_R,
154 WID_SCMF_JACKET_L,
155 WID_SCMF_JACKET,
156 WID_SCMF_JACKET_R,
157 WID_SCMF_COLLAR_L,
158 WID_SCMF_COLLAR,
159 WID_SCMF_COLLAR_R,
160 WID_SCMF_TIE_EARRING_L,
161 WID_SCMF_TIE_EARRING,
162 WID_SCMF_TIE_EARRING_R,
163 WID_SCMF_GLASSES_L,
164 WID_SCMF_GLASSES,
165 WID_SCMF_GLASSES_R,
166 };
167
169 enum CompanyInfrastructureWidgets {
170 WID_CI_CAPTION,
171 WID_CI_RAIL_DESC,
172 WID_CI_RAIL_COUNT,
173 WID_CI_ROAD_DESC,
174 WID_CI_ROAD_COUNT,
175 WID_CI_WATER_DESC,
176 WID_CI_WATER_COUNT,
177 WID_CI_STATION_DESC,
178 WID_CI_STATION_COUNT,
179 WID_CI_TOTAL_DESC,
180 WID_CI_TOTAL,
181 };
182
184 enum BuyCompanyWidgets {
185 WID_BC_CAPTION,
186 WID_BC_FACE,
187 WID_BC_QUESTION,
188 WID_BC_NO,
189 WID_BC_YES,
190 };
191
192 #endif /* WIDGETS_COMPANY_WIDGET_H */
WID_C_VIEW_HQ
Button to view the HQ.
Definition: company_widget.h:43
WID_C_NEW_FACE
Button to make new face.
Definition: company_widget.h:35
WID_SCL_CLASS_RAIL
Class rail.
Definition: company_widget.h:85
SelectCompanyManagerFaceWidgets
SelectCompanyManagerFaceWidgets
Widgets of the SelectCompanyManagerFaceWindow class.
Definition: company_widget.h:101
WID_SCMF_JACKET_R
Jacket right.
Definition: company_widget.h:156
WID_SCMF_COLLAR_L
Collar left.
Definition: company_widget.h:157
WID_SCMF_COLLAR_TEXT
Text about collar.
Definition: company_widget.h:131
WID_C_SELL_SHARE
Button to sell a share.
Definition: company_widget.h:40
WID_SCMF_CAPTION
Caption of window.
Definition: company_widget.h:102
WID_SCMF_TIE_EARRING_R
Tie / Earring right.
Definition: company_widget.h:162
WID_C_FACE_TITLE
Title for the face.
Definition: company_widget.h:20
WID_CF_SEL_PANEL
Select panel or nothing.
Definition: company_widget.h:61
WID_C_RELOCATE_HQ
Button to relocate the HQ.
Definition: company_widget.h:47
WID_SCL_SEC_COL_DROPDOWN
Dropdown for secondary colour.
Definition: company_widget.h:91
WID_C_COMPANY_NAME
Button to change company name.
Definition: company_widget.h:38
WID_C_COMPANY_JOIN
Button to join company.
Definition: company_widget.h:54
WID_C_CAPTION
Caption of the window.
Definition: company_widget.h:17
WID_C_HAS_PASSWORD
Has company password lock.
Definition: company_widget.h:51
WID_SCMF_SEL_LOADSAVE
Selection to display the load/save/number buttons in the advanced view.
Definition: company_widget.h:111
WID_SCMF_HAS_MOUSTACHE_EARRING_TEXT
Text about moustache and earring.
Definition: company_widget.h:120
WID_SCMF_HAS_GLASSES
Has glasses.
Definition: company_widget.h:135
WID_SCMF_HAIR_TEXT
Text about hair.
Definition: company_widget.h:124
WID_SCMF_CHIN_R
Chin right.
Definition: company_widget.h:141
WID_CF_INFRASTRUCTURE
View company infrastructure.
Definition: company_widget.h:77
WID_SCMF_LIPS_MOUSTACHE
Lips / Moustache.
Definition: company_widget.h:146
WID_SCMF_TOGGLE_LARGE_SMALL_BUTTON
Toggle for large or small.
Definition: company_widget.h:115
WID_SCMF_NOSE_TEXT
Text about nose.
Definition: company_widget.h:128
WID_SCMF_GLASSES_L
Glasses left.
Definition: company_widget.h:163
WID_CF_EXPS_PRICE2
Column for year Y-1 expenses.
Definition: company_widget.h:64
WID_SCMF_TOGGLE_LARGE_SMALL
Toggle for large or small.
Definition: company_widget.h:103
WID_C_COLOUR_SCHEME
Button to change colour scheme.
Definition: company_widget.h:36
WID_CF_CAPTION
Caption of the window.
Definition: company_widget.h:59
WID_SCMF_RANDOM_NEW_FACE
Create random new face.
Definition: company_widget.h:114
WID_SCL_CAPTION
Caption of window.
Definition: company_widget.h:83
WID_CI_ROAD_DESC
Description of road.
Definition: company_widget.h:173
WID_SCMF_JACKET_L
Jacket left.
Definition: company_widget.h:154
WID_CF_EXPS_PRICE3
Column for year Y expenses.
Definition: company_widget.h:65
WID_C_SELECT_BUTTONS
Selection widget for the button bar.
Definition: company_widget.h:34
WID_C_BUILD_HQ
Button to build the HQ.
Definition: company_widget.h:44
WID_CF_MAXLOAN_VALUE
Max loan widget.
Definition: company_widget.h:73
WID_CF_LOAN_LINE
Line for summing bank balance and loan.
Definition: company_widget.h:70
WID_SCMF_EYECOLOUR_R
Eyecolour right.
Definition: company_widget.h:138
WID_C_SELECT_DESC_OWNERS
Owners.
Definition: company_widget.h:31
WID_CF_BALANCE_VALUE
Bank balance value.
Definition: company_widget.h:68
WID_SCMF_TIE_EARRING
Tie / Earring.
Definition: company_widget.h:161
WID_CI_STATION_DESC
Description of station.
Definition: company_widget.h:177
WID_BC_CAPTION
Caption of window.
Definition: company_widget.h:185
WID_CF_EXPS_PRICE1
Column for year Y-2 expenses.
Definition: company_widget.h:63
WID_SCMF_HAS_MOUSTACHE_EARRING
Has moustache or earring.
Definition: company_widget.h:134
WID_BC_NO
No button.
Definition: company_widget.h:188
WID_SCMF_TIE_EARRING_TEXT
Text about tie and earring.
Definition: company_widget.h:121
WID_CF_SEL_MAXLOAN
Selection of maxloan column.
Definition: company_widget.h:67
WID_SCL_SPACER_DROPDOWN
Spacer for dropdown.
Definition: company_widget.h:89
WID_SCL_CLASS_ROAD
Class road.
Definition: company_widget.h:86
WID_SCMF_HAIR_R
Hair right.
Definition: company_widget.h:153
WID_SCMF_FEMALE2
Female button in the advanced view.
Definition: company_widget.h:110
WID_BC_YES
Yes button.
Definition: company_widget.h:189
WID_SCMF_HAS_GLASSES_TEXT
Text about glasses.
Definition: company_widget.h:123
WID_CF_SEL_BUTTONS
Selection of buttons.
Definition: company_widget.h:74
WID_SCMF_GLASSES_R
Glasses right.
Definition: company_widget.h:165
WID_SCMF_ETHNICITY_AFR
Text about ethnicity african.
Definition: company_widget.h:133
WID_C_DESC_COLOUR_SCHEME_EXAMPLE
Colour scheme example.
Definition: company_widget.h:24
WID_SCMF_NOSE_L
Nose left.
Definition: company_widget.h:148
WID_SCMF_FEMALE
Female button in the simple view.
Definition: company_widget.h:108
WID_CI_RAIL_COUNT
Count of rail.
Definition: company_widget.h:172
WID_CI_WATER_COUNT
Count of water.
Definition: company_widget.h:176
WID_SCMF_LOAD
Load face.
Definition: company_widget.h:117
WID_SCMF_TIE_EARRING_L
Tie / Earring left.
Definition: company_widget.h:160
BuyCompanyWidgets
BuyCompanyWidgets
Widgets of the BuyCompanyWindow class.
Definition: company_widget.h:184
CompanyWidgets
CompanyWidgets
Widgets of the CompanyWindow class.
Definition: company_widget.h:16
WID_C_DESC_COMPANY_VALUE
Company value.
Definition: company_widget.h:27
WID_CF_MAXLOAN_GAP
Gap above max loan widget.
Definition: company_widget.h:72
WID_SCMF_HAIR
Hair.
Definition: company_widget.h:152
WID_SCL_PRI_COL_DROPDOWN
Dropdown for primary colour.
Definition: company_widget.h:90
WID_CF_TOTAL_VALUE
Total.
Definition: company_widget.h:71
WID_SCMF_FACE
Current face.
Definition: company_widget.h:116
WID_SCMF_JACKET_TEXT
Text about jacket.
Definition: company_widget.h:130
WID_SCMF_LIPS_MOUSTACHE_R
Lips / Moustache right.
Definition: company_widget.h:147
WID_C_DESC_INAUGURATION
Inauguration.
Definition: company_widget.h:22
WID_C_DESC_COLOUR_SCHEME
Colour scheme.
Definition: company_widget.h:23
WID_C_DESC_INFRASTRUCTURE_COUNTS
Infrastructure count.
Definition: company_widget.h:29
WID_SCMF_CHIN_TEXT
Text about chin.
Definition: company_widget.h:129
WID_CI_ROAD_COUNT
Count of road.
Definition: company_widget.h:174
WID_SCMF_CHIN_L
Chin left.
Definition: company_widget.h:139
CompanyInfrastructureWidgets
CompanyInfrastructureWidgets
Widgets of the CompanyInfrastructureWindow class.
Definition: company_widget.h:169
WID_C_DESC_INFRASTRUCTURE
Infrastructure.
Definition: company_widget.h:28
WID_SCMF_LIPS_MOUSTACHE_TEXT
Text about lips and moustache.
Definition: company_widget.h:122
WID_SCMF_CHIN
Chin.
Definition: company_widget.h:140
WID_SCMF_EYECOLOUR_L
Eyecolour left.
Definition: company_widget.h:136
WID_CF_INCREASE_LOAN
Increase loan.
Definition: company_widget.h:75
WID_SCMF_LIPS_MOUSTACHE_L
Lips / Moustache left.
Definition: company_widget.h:145
WID_SCMF_EYEBROWS
Eyebrows.
Definition: company_widget.h:143
WID_C_FACE
View of the face.
Definition: company_widget.h:19
WID_SCMF_EYEBROWS_TEXT
Text about eyebrows.
Definition: company_widget.h:125
WID_SCMF_COLLAR_R
Collar right.
Definition: company_widget.h:159
WID_CI_TOTAL
Count of total.
Definition: company_widget.h:180
WID_CI_WATER_DESC
Description of water.
Definition: company_widget.h:175
WID_CF_TOGGLE_SIZE
Toggle windows size.
Definition: company_widget.h:60
SelectCompanyLiveryWidgets
SelectCompanyLiveryWidgets
Widgets of the SelectCompanyLiveryWindow class.
Definition: company_widget.h:82
WID_SCMF_JACKET
Jacket.
Definition: company_widget.h:155
WID_CI_TOTAL_DESC
Description of total.
Definition: company_widget.h:179
WID_SCL_CLASS_GENERAL
Class general.
Definition: company_widget.h:84
CompanyFinancesWidgets
CompanyFinancesWidgets
Widgets of the CompanyFinancesWindow class.
Definition: company_widget.h:58
WID_CF_REPAY_LOAN
Decrease loan..
Definition: company_widget.h:76
WID_CI_STATION_COUNT
Count of station.
Definition: company_widget.h:178
WID_SCMF_EYECOLOUR
Eyecolour.
Definition: company_widget.h:137
WID_SCMF_SEL_MALEFEMALE
Selection to display the male/female buttons in the simple view.
Definition: company_widget.h:112
WID_C_SELECT_VIEW_BUILD_HQ
Panel about HQ.
Definition: company_widget.h:42
WID_SCMF_ACCEPT
Accept.
Definition: company_widget.h:106
WID_SCMF_SELECT_FACE
Select face.
Definition: company_widget.h:104
WID_SCMF_NOSE
Nose.
Definition: company_widget.h:149
WID_SCMF_CANCEL
Cancel.
Definition: company_widget.h:105
WID_C_SELECT_RELOCATE
Panel about &#39;Relocate HQ&#39;.
Definition: company_widget.h:46
WID_SCMF_FACECODE
Get the face code.
Definition: company_widget.h:118
WID_SCMF_GLASSES
Glasses.
Definition: company_widget.h:164
WID_C_BUY_SHARE
Button to buy a share.
Definition: company_widget.h:39
WID_SCMF_EYECOLOUR_TEXT
Text about eyecolour.
Definition: company_widget.h:126
WID_C_COMPANY_PASSWORD
Button to set company password.
Definition: company_widget.h:53
WID_BC_FACE
Face button.
Definition: company_widget.h:186
WID_SCMF_EYEBROWS_L
Eyebrows left.
Definition: company_widget.h:142
WID_C_SELECT_MULTIPLAYER
Multiplayer selection panel.
Definition: company_widget.h:52
WID_CI_CAPTION
Caption of window.
Definition: company_widget.h:170
WID_CF_LOAN_VALUE
Loan.
Definition: company_widget.h:69
WID_SCMF_GLASSES_TEXT
Text about glasses.
Definition: company_widget.h:127
WID_C_VIEW_INFRASTRUCTURE
Panel about infrastructure.
Definition: company_widget.h:49
WID_SCL_CLASS_AIRCRAFT
Class aircraft.
Definition: company_widget.h:88
WID_BC_QUESTION
Question text.
Definition: company_widget.h:187
WID_C_DESC_VEHICLE
Vehicles.
Definition: company_widget.h:25
WID_C_DESC_VEHICLE_COUNTS
Vehicle count.
Definition: company_widget.h:26
WID_SCL_MATRIX
Matrix.
Definition: company_widget.h:92
WID_SCMF_EYEBROWS_R
Eyebrows right.
Definition: company_widget.h:144
WID_SCMF_SAVE
Save face.
Definition: company_widget.h:119
WID_SCMF_COLLAR
Collar.
Definition: company_widget.h:158
WID_SCMF_MALE2
Male button in the advanced view.
Definition: company_widget.h:109
WID_C_PRESIDENT_NAME
Button to change president name.
Definition: company_widget.h:37
WID_SCMF_NOSE_R
Nose right.
Definition: company_widget.h:150
WID_SCMF_ETHNICITY_EUR
Text about ethnicity european.
Definition: company_widget.h:132
WID_CF_TOTAL_PANEL
Panel for totals.
Definition: company_widget.h:66
WID_SCMF_HAIR_L
Hair left.
Definition: company_widget.h:151
WID_SCMF_MALE
Male button in the simple view.
Definition: company_widget.h:107
WID_C_DESC_OWNERS
Owner in Owners.
Definition: company_widget.h:32
WID_CF_EXPS_CATEGORY
Column for expenses category strings.
Definition: company_widget.h:62
WID_SCL_CLASS_SHIP
Class ship.
Definition: company_widget.h:87
WID_CI_RAIL_DESC
Description of rail.
Definition: company_widget.h:171
WID_SCMF_SEL_PARTS
Selection to display the buttons for setting each part of the face in the advanced view...
Definition: company_widget.h:113