1 | /******************************************************************************** |
2 | ** Form generated from reading UI file 'mainwindow.ui' |
3 | ** |
4 | ** Created by: Qt User Interface Compiler version 5.15.9 |
5 | ** |
6 | ** WARNING! All changes made in this file will be lost when recompiling UI file! |
7 | ********************************************************************************/ |
8 | |
9 | #ifndef UI_MAINWINDOW_H |
10 | #define UI_MAINWINDOW_H |
11 | |
12 | #include <QtCore/QVariant> |
13 | #include <QtWidgets/QApplication> |
14 | #include <QtWidgets/QGridLayout> |
15 | #include <QtWidgets/QHBoxLayout> |
16 | #include <QtWidgets/QLabel> |
17 | #include <QtWidgets/QPushButton> |
18 | #include <QtWidgets/QSpacerItem> |
19 | #include <QtWidgets/QToolButton> |
20 | #include <QtWidgets/QVBoxLayout> |
21 | #include <QtWidgets/QWidget> |
22 | |
23 | QT_BEGIN_NAMESPACE |
24 | |
25 | class Ui_MainWindow |
26 | { |
27 | public: |
28 | QGridLayout *gridLayout; |
29 | QHBoxLayout *horizontalLayout; |
30 | QLabel *highScoreTextLabel; |
31 | QLabel *highScoreLabel; |
32 | QLabel *scoreTextLabel; |
33 | QLabel *scoreLabel; |
34 | QVBoxLayout *verticalLayout; |
35 | QSpacerItem *verticalSpacer; |
36 | QToolButton *startButton; |
37 | QLabel *gameOverLabel; |
38 | QLabel *jackpotLabel; |
39 | QLabel *hurryLabel; |
40 | QLabel *cLabel; |
41 | QLabel *rLabel; |
42 | QLabel *aLabel; |
43 | QLabel *zLabel; |
44 | QLabel *yLabel; |
45 | QPushButton *cButton; |
46 | QPushButton *rButton; |
47 | QPushButton *aButton; |
48 | QPushButton *zButton; |
49 | QPushButton *yButton; |
50 | QPushButton *ballOutButton; |
51 | QLabel *offStateLabel; |
52 | QLabel *normalStateLabel; |
53 | QLabel *hurryStateLabel; |
54 | QLabel *jackpotStateLabel; |
55 | |
56 | void setupUi(QWidget *MainWindow) |
57 | { |
58 | if (MainWindow->objectName().isEmpty()) |
59 | MainWindow->setObjectName(QString::fromUtf8(str: "MainWindow" )); |
60 | MainWindow->resize(w: 476, h: 458); |
61 | gridLayout = new QGridLayout(MainWindow); |
62 | gridLayout->setObjectName(QString::fromUtf8(str: "gridLayout" )); |
63 | horizontalLayout = new QHBoxLayout(); |
64 | horizontalLayout->setObjectName(QString::fromUtf8(str: "horizontalLayout" )); |
65 | highScoreTextLabel = new QLabel(MainWindow); |
66 | highScoreTextLabel->setObjectName(QString::fromUtf8(str: "highScoreTextLabel" )); |
67 | QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed); |
68 | sizePolicy.setHorizontalStretch(0); |
69 | sizePolicy.setVerticalStretch(0); |
70 | sizePolicy.setHeightForWidth(highScoreTextLabel->sizePolicy().hasHeightForWidth()); |
71 | highScoreTextLabel->setSizePolicy(sizePolicy); |
72 | |
73 | horizontalLayout->addWidget(highScoreTextLabel); |
74 | |
75 | highScoreLabel = new QLabel(MainWindow); |
76 | highScoreLabel->setObjectName(QString::fromUtf8(str: "highScoreLabel" )); |
77 | sizePolicy.setHeightForWidth(highScoreLabel->sizePolicy().hasHeightForWidth()); |
78 | highScoreLabel->setSizePolicy(sizePolicy); |
79 | highScoreLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter); |
80 | |
81 | horizontalLayout->addWidget(highScoreLabel); |
82 | |
83 | scoreTextLabel = new QLabel(MainWindow); |
84 | scoreTextLabel->setObjectName(QString::fromUtf8(str: "scoreTextLabel" )); |
85 | sizePolicy.setHeightForWidth(scoreTextLabel->sizePolicy().hasHeightForWidth()); |
86 | scoreTextLabel->setSizePolicy(sizePolicy); |
87 | |
88 | horizontalLayout->addWidget(scoreTextLabel); |
89 | |
90 | scoreLabel = new QLabel(MainWindow); |
91 | scoreLabel->setObjectName(QString::fromUtf8(str: "scoreLabel" )); |
92 | sizePolicy.setHeightForWidth(scoreLabel->sizePolicy().hasHeightForWidth()); |
93 | scoreLabel->setSizePolicy(sizePolicy); |
94 | scoreLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter); |
95 | |
96 | horizontalLayout->addWidget(scoreLabel); |
97 | |
98 | |
99 | gridLayout->addLayout(horizontalLayout, row: 0, column: 0, rowSpan: 1, columnSpan: 5); |
100 | |
101 | verticalLayout = new QVBoxLayout(); |
102 | verticalLayout->setObjectName(QString::fromUtf8(str: "verticalLayout" )); |
103 | verticalSpacer = new QSpacerItem(1, 98, QSizePolicy::Minimum, QSizePolicy::Expanding); |
104 | |
105 | verticalLayout->addItem(verticalSpacer); |
106 | |
107 | startButton = new QToolButton(MainWindow); |
108 | startButton->setObjectName(QString::fromUtf8(str: "startButton" )); |
109 | QSizePolicy sizePolicy1(QSizePolicy::Fixed, QSizePolicy::Minimum); |
110 | sizePolicy1.setHorizontalStretch(0); |
111 | sizePolicy1.setVerticalStretch(0); |
112 | sizePolicy1.setHeightForWidth(startButton->sizePolicy().hasHeightForWidth()); |
113 | startButton->setSizePolicy(sizePolicy1); |
114 | |
115 | verticalLayout->addWidget(startButton); |
116 | |
117 | |
118 | gridLayout->addLayout(verticalLayout, row: 0, column: 5, rowSpan: 7, columnSpan: 1); |
119 | |
120 | gameOverLabel = new QLabel(MainWindow); |
121 | gameOverLabel->setObjectName(QString::fromUtf8(str: "gameOverLabel" )); |
122 | QPalette palette; |
123 | QBrush brush(QColor(255, 0, 4, 255)); |
124 | brush.setStyle(Qt::SolidPattern); |
125 | palette.setBrush(cg: QPalette::Active, cr: QPalette::WindowText, brush); |
126 | palette.setBrush(cg: QPalette::Inactive, cr: QPalette::WindowText, brush); |
127 | QBrush brush1(QColor(190, 190, 190, 255)); |
128 | brush1.setStyle(Qt::SolidPattern); |
129 | palette.setBrush(cg: QPalette::Disabled, cr: QPalette::WindowText, brush: brush1); |
130 | gameOverLabel->setPalette(palette); |
131 | QFont font; |
132 | font.setPointSize(20); |
133 | font.setBold(true); |
134 | font.setWeight(75); |
135 | gameOverLabel->setFont(font); |
136 | gameOverLabel->setAlignment(Qt::AlignCenter); |
137 | |
138 | gridLayout->addWidget(gameOverLabel, row: 1, column: 0, rowSpan: 1, columnSpan: 5); |
139 | |
140 | jackpotLabel = new QLabel(MainWindow); |
141 | jackpotLabel->setObjectName(QString::fromUtf8(str: "jackpotLabel" )); |
142 | QPalette palette1; |
143 | QBrush brush2(QColor(55, 200, 191, 255)); |
144 | brush2.setStyle(Qt::SolidPattern); |
145 | palette1.setBrush(cg: QPalette::Active, cr: QPalette::WindowText, brush: brush2); |
146 | palette1.setBrush(cg: QPalette::Inactive, cr: QPalette::WindowText, brush: brush2); |
147 | palette1.setBrush(cg: QPalette::Disabled, cr: QPalette::WindowText, brush: brush1); |
148 | jackpotLabel->setPalette(palette1); |
149 | jackpotLabel->setFont(font); |
150 | jackpotLabel->setAlignment(Qt::AlignCenter); |
151 | |
152 | gridLayout->addWidget(jackpotLabel, row: 2, column: 0, rowSpan: 1, columnSpan: 5); |
153 | |
154 | hurryLabel = new QLabel(MainWindow); |
155 | hurryLabel->setObjectName(QString::fromUtf8(str: "hurryLabel" )); |
156 | QPalette palette2; |
157 | QBrush brush3(QColor(67, 24, 97, 255)); |
158 | brush3.setStyle(Qt::SolidPattern); |
159 | palette2.setBrush(cg: QPalette::Active, cr: QPalette::WindowText, brush: brush3); |
160 | palette2.setBrush(cg: QPalette::Inactive, cr: QPalette::WindowText, brush: brush3); |
161 | palette2.setBrush(cg: QPalette::Disabled, cr: QPalette::WindowText, brush: brush1); |
162 | hurryLabel->setPalette(palette2); |
163 | hurryLabel->setFont(font); |
164 | hurryLabel->setAlignment(Qt::AlignCenter); |
165 | |
166 | gridLayout->addWidget(hurryLabel, row: 3, column: 0, rowSpan: 1, columnSpan: 5); |
167 | |
168 | cLabel = new QLabel(MainWindow); |
169 | cLabel->setObjectName(QString::fromUtf8(str: "cLabel" )); |
170 | QPalette palette3; |
171 | QBrush brush4(QColor(7, 0, 222, 255)); |
172 | brush4.setStyle(Qt::SolidPattern); |
173 | palette3.setBrush(cg: QPalette::Active, cr: QPalette::WindowText, brush: brush4); |
174 | palette3.setBrush(cg: QPalette::Inactive, cr: QPalette::WindowText, brush: brush4); |
175 | palette3.setBrush(cg: QPalette::Disabled, cr: QPalette::WindowText, brush: brush1); |
176 | cLabel->setPalette(palette3); |
177 | cLabel->setFont(font); |
178 | cLabel->setAlignment(Qt::AlignCenter); |
179 | |
180 | gridLayout->addWidget(cLabel, row: 4, column: 0, rowSpan: 1, columnSpan: 1); |
181 | |
182 | rLabel = new QLabel(MainWindow); |
183 | rLabel->setObjectName(QString::fromUtf8(str: "rLabel" )); |
184 | QPalette palette4; |
185 | QBrush brush5(QColor(6, 208, 36, 255)); |
186 | brush5.setStyle(Qt::SolidPattern); |
187 | palette4.setBrush(cg: QPalette::Active, cr: QPalette::WindowText, brush: brush5); |
188 | palette4.setBrush(cg: QPalette::Inactive, cr: QPalette::WindowText, brush: brush5); |
189 | palette4.setBrush(cg: QPalette::Disabled, cr: QPalette::WindowText, brush: brush1); |
190 | rLabel->setPalette(palette4); |
191 | rLabel->setFont(font); |
192 | rLabel->setAlignment(Qt::AlignCenter); |
193 | |
194 | gridLayout->addWidget(rLabel, row: 4, column: 1, rowSpan: 1, columnSpan: 1); |
195 | |
196 | aLabel = new QLabel(MainWindow); |
197 | aLabel->setObjectName(QString::fromUtf8(str: "aLabel" )); |
198 | QPalette palette5; |
199 | QBrush brush6(QColor(238, 17, 1, 255)); |
200 | brush6.setStyle(Qt::SolidPattern); |
201 | palette5.setBrush(cg: QPalette::Active, cr: QPalette::WindowText, brush: brush6); |
202 | palette5.setBrush(cg: QPalette::Inactive, cr: QPalette::WindowText, brush: brush6); |
203 | palette5.setBrush(cg: QPalette::Disabled, cr: QPalette::WindowText, brush: brush1); |
204 | aLabel->setPalette(palette5); |
205 | aLabel->setFont(font); |
206 | aLabel->setAlignment(Qt::AlignCenter); |
207 | |
208 | gridLayout->addWidget(aLabel, row: 4, column: 2, rowSpan: 1, columnSpan: 1); |
209 | |
210 | zLabel = new QLabel(MainWindow); |
211 | zLabel->setObjectName(QString::fromUtf8(str: "zLabel" )); |
212 | zLabel->setEnabled(true); |
213 | QPalette palette6; |
214 | QBrush brush7(QColor(230, 10, 230, 255)); |
215 | brush7.setStyle(Qt::SolidPattern); |
216 | palette6.setBrush(cg: QPalette::Active, cr: QPalette::WindowText, brush: brush7); |
217 | palette6.setBrush(cg: QPalette::Inactive, cr: QPalette::WindowText, brush: brush7); |
218 | palette6.setBrush(cg: QPalette::Disabled, cr: QPalette::WindowText, brush: brush1); |
219 | zLabel->setPalette(palette6); |
220 | zLabel->setFont(font); |
221 | zLabel->setAlignment(Qt::AlignCenter); |
222 | |
223 | gridLayout->addWidget(zLabel, row: 4, column: 3, rowSpan: 1, columnSpan: 1); |
224 | |
225 | yLabel = new QLabel(MainWindow); |
226 | yLabel->setObjectName(QString::fromUtf8(str: "yLabel" )); |
227 | QPalette palette7; |
228 | QBrush brush8(QColor(239, 224, 9, 255)); |
229 | brush8.setStyle(Qt::SolidPattern); |
230 | palette7.setBrush(cg: QPalette::Active, cr: QPalette::WindowText, brush: brush8); |
231 | palette7.setBrush(cg: QPalette::Inactive, cr: QPalette::WindowText, brush: brush8); |
232 | palette7.setBrush(cg: QPalette::Disabled, cr: QPalette::WindowText, brush: brush1); |
233 | yLabel->setPalette(palette7); |
234 | yLabel->setFont(font); |
235 | yLabel->setAlignment(Qt::AlignCenter); |
236 | |
237 | gridLayout->addWidget(yLabel, row: 4, column: 4, rowSpan: 1, columnSpan: 1); |
238 | |
239 | cButton = new QPushButton(MainWindow); |
240 | cButton->setObjectName(QString::fromUtf8(str: "cButton" )); |
241 | |
242 | gridLayout->addWidget(cButton, row: 5, column: 0, rowSpan: 1, columnSpan: 1); |
243 | |
244 | rButton = new QPushButton(MainWindow); |
245 | rButton->setObjectName(QString::fromUtf8(str: "rButton" )); |
246 | |
247 | gridLayout->addWidget(rButton, row: 5, column: 1, rowSpan: 1, columnSpan: 1); |
248 | |
249 | aButton = new QPushButton(MainWindow); |
250 | aButton->setObjectName(QString::fromUtf8(str: "aButton" )); |
251 | |
252 | gridLayout->addWidget(aButton, row: 5, column: 2, rowSpan: 1, columnSpan: 1); |
253 | |
254 | zButton = new QPushButton(MainWindow); |
255 | zButton->setObjectName(QString::fromUtf8(str: "zButton" )); |
256 | |
257 | gridLayout->addWidget(zButton, row: 5, column: 3, rowSpan: 1, columnSpan: 1); |
258 | |
259 | yButton = new QPushButton(MainWindow); |
260 | yButton->setObjectName(QString::fromUtf8(str: "yButton" )); |
261 | |
262 | gridLayout->addWidget(yButton, row: 5, column: 4, rowSpan: 1, columnSpan: 1); |
263 | |
264 | ballOutButton = new QPushButton(MainWindow); |
265 | ballOutButton->setObjectName(QString::fromUtf8(str: "ballOutButton" )); |
266 | |
267 | gridLayout->addWidget(ballOutButton, row: 6, column: 0, rowSpan: 1, columnSpan: 5); |
268 | |
269 | offStateLabel = new QLabel(MainWindow); |
270 | offStateLabel->setObjectName(QString::fromUtf8(str: "offStateLabel" )); |
271 | sizePolicy.setHeightForWidth(offStateLabel->sizePolicy().hasHeightForWidth()); |
272 | offStateLabel->setSizePolicy(sizePolicy); |
273 | offStateLabel->setWordWrap(true); |
274 | |
275 | gridLayout->addWidget(offStateLabel, row: 7, column: 0, rowSpan: 1, columnSpan: 6); |
276 | |
277 | normalStateLabel = new QLabel(MainWindow); |
278 | normalStateLabel->setObjectName(QString::fromUtf8(str: "normalStateLabel" )); |
279 | sizePolicy.setHeightForWidth(normalStateLabel->sizePolicy().hasHeightForWidth()); |
280 | normalStateLabel->setSizePolicy(sizePolicy); |
281 | normalStateLabel->setWordWrap(true); |
282 | |
283 | gridLayout->addWidget(normalStateLabel, row: 8, column: 0, rowSpan: 1, columnSpan: 6); |
284 | |
285 | hurryStateLabel = new QLabel(MainWindow); |
286 | hurryStateLabel->setObjectName(QString::fromUtf8(str: "hurryStateLabel" )); |
287 | sizePolicy.setHeightForWidth(hurryStateLabel->sizePolicy().hasHeightForWidth()); |
288 | hurryStateLabel->setSizePolicy(sizePolicy); |
289 | hurryStateLabel->setWordWrap(true); |
290 | |
291 | gridLayout->addWidget(hurryStateLabel, row: 9, column: 0, rowSpan: 1, columnSpan: 6); |
292 | |
293 | jackpotStateLabel = new QLabel(MainWindow); |
294 | jackpotStateLabel->setObjectName(QString::fromUtf8(str: "jackpotStateLabel" )); |
295 | sizePolicy.setHeightForWidth(jackpotStateLabel->sizePolicy().hasHeightForWidth()); |
296 | jackpotStateLabel->setSizePolicy(sizePolicy); |
297 | jackpotStateLabel->setWordWrap(true); |
298 | |
299 | gridLayout->addWidget(jackpotStateLabel, row: 10, column: 0, rowSpan: 1, columnSpan: 6); |
300 | |
301 | |
302 | retranslateUi(MainWindow); |
303 | |
304 | QMetaObject::connectSlotsByName(o: MainWindow); |
305 | } // setupUi |
306 | |
307 | void retranslateUi(QWidget *MainWindow) |
308 | { |
309 | highScoreTextLabel->setText(QCoreApplication::translate(context: "MainWindow" , key: "HIGH SCORE:" , disambiguation: nullptr)); |
310 | highScoreLabel->setText(QCoreApplication::translate(context: "MainWindow" , key: "0" , disambiguation: nullptr)); |
311 | scoreTextLabel->setText(QCoreApplication::translate(context: "MainWindow" , key: "SCORE:" , disambiguation: nullptr)); |
312 | scoreLabel->setText(QCoreApplication::translate(context: "MainWindow" , key: "0" , disambiguation: nullptr)); |
313 | startButton->setText(QCoreApplication::translate(context: "MainWindow" , key: "^\n" |
314 | "^\n" |
315 | "^\n" |
316 | "\n" |
317 | "S\n" |
318 | "T\n" |
319 | "A\n" |
320 | "R\n" |
321 | "T\n" |
322 | "\n" |
323 | "^\n" |
324 | "^\n" |
325 | "^" , disambiguation: nullptr)); |
326 | gameOverLabel->setText(QCoreApplication::translate(context: "MainWindow" , key: "GAME OVER" , disambiguation: nullptr)); |
327 | jackpotLabel->setText(QCoreApplication::translate(context: "MainWindow" , key: "JACKPOT!" , disambiguation: nullptr)); |
328 | hurryLabel->setText(QCoreApplication::translate(context: "MainWindow" , key: "HURRY!" , disambiguation: nullptr)); |
329 | cLabel->setText(QCoreApplication::translate(context: "MainWindow" , key: "C" , disambiguation: nullptr)); |
330 | rLabel->setText(QCoreApplication::translate(context: "MainWindow" , key: "R" , disambiguation: nullptr)); |
331 | aLabel->setText(QCoreApplication::translate(context: "MainWindow" , key: "A" , disambiguation: nullptr)); |
332 | zLabel->setText(QCoreApplication::translate(context: "MainWindow" , key: "Z" , disambiguation: nullptr)); |
333 | yLabel->setText(QCoreApplication::translate(context: "MainWindow" , key: "Y" , disambiguation: nullptr)); |
334 | cButton->setText(QCoreApplication::translate(context: "MainWindow" , key: "C" , disambiguation: nullptr)); |
335 | rButton->setText(QCoreApplication::translate(context: "MainWindow" , key: "R" , disambiguation: nullptr)); |
336 | aButton->setText(QCoreApplication::translate(context: "MainWindow" , key: "A" , disambiguation: nullptr)); |
337 | zButton->setText(QCoreApplication::translate(context: "MainWindow" , key: "Z" , disambiguation: nullptr)); |
338 | yButton->setText(QCoreApplication::translate(context: "MainWindow" , key: "Y" , disambiguation: nullptr)); |
339 | ballOutButton->setText(QCoreApplication::translate(context: "MainWindow" , key: "BALL OUT" , disambiguation: nullptr)); |
340 | offStateLabel->setText(QCoreApplication::translate(context: "MainWindow" , key: "Press START to release the ball." , disambiguation: nullptr)); |
341 | normalStateLabel->setText(QCoreApplication::translate(context: "MainWindow" , key: "Try to hit all CRAZY letters. Watch out for ball and avoid BALL OUT since the game will end." , disambiguation: nullptr)); |
342 | hurryStateLabel->setText(QCoreApplication::translate(context: "MainWindow" , key: "Now you need to hurry. Quickly hit all CRAZY letters again to gather the extra JACKPOT bonus. You have only 5 seconds. Otherwise you will need to start from scratch." , disambiguation: nullptr)); |
343 | jackpotStateLabel->setText(QCoreApplication::translate(context: "MainWindow" , key: "You did that! You have collected JACKPOT! Congratulations. Now you can continue game until you BALL OUT." , disambiguation: nullptr)); |
344 | (void)MainWindow; |
345 | } // retranslateUi |
346 | |
347 | }; |
348 | |
349 | namespace Ui { |
350 | class MainWindow: public Ui_MainWindow {}; |
351 | } // namespace Ui |
352 | |
353 | QT_END_NAMESPACE |
354 | |
355 | #endif // UI_MAINWINDOW_H |
356 | |