pagecontrol.c
18.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
#include "viewer.h"
#include "status.h"
#include "uilogic.h"
#include "font.h"
#include "gzip.h"
#include "texrect.h"
#include "page.h"
#include "pagetop.h"
#include "texture.h"
#include "audrenderer.h"
#include "pagecontrol.h"
#include "date.h"
#include "texture/pcclock_gz.c"
#include "texture/pcexp_gz.c"
#include "texture/pcpwd_gz.c"
#include "texture/pclimit_gz.c"
#include "texture/pcadmin_gz.c"
#include "texture/pcbar_gz.c"
#include "texture/pcbarh_gz.c"
#include "texture/pcconfirm_gz.c"
static const u8 row[] = {0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 3, 3, 3};
static const int field_x[] = {300, 320, 340, 360,
300, 355, 385, 420, 455,
300,
300, 355, 385};
static const int arrow_x[] = {301, 321, 341, 361,
318, 362, 392, 427, 462,
326,
318, 362, 392};
static const int field_y[] = {PC_PWD_Y+7, PC_PWD_Y+7, PC_PWD_Y+7, PC_PWD_Y+7,
PC_CLOCK_Y+7, PC_CLOCK_Y+7, PC_CLOCK_Y+7, PC_CLOCK_Y+7, PC_CLOCK_Y+7,
PC_LIMIT_Y+7,
PC_EXP_Y+7, PC_EXP_Y+7, PC_EXP_Y+7 };
static int days_in_month[2][13] = {
{0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31},
{0, 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31},
};
static int gContConfirmIdx;
int gPageControlInit = 0;
extern UiTable gConfirmTable;
extern UiRow gConfirmRow[3];
extern UiImage gCYesImg;
extern UiImage gCYeshImg;
extern UiImage gCNoImg;
extern UiImage gCNohImg;
extern UiImage gCancelImg;
extern UiImage gCancelhImg;
void initPageControlAssets();
void drawPageControlBg();
void updateFields();
void drawFields();
void onContConfirmHilite();
void onContConfirmSelect();
void initPageControl()
{
initPageControlAssets();
gPageNo = PAGE_CONTROL;
gWhich = 0;
initConfirmTable(3);
gContConfirmIdx = 0;
osBbRtcGet(gpDate+0, gpDate+1, gpDate+2, gpDate+3,
gpDate+4, gpDate+5, gpDate+6);
contVal[VW_PC_YEAR] = (gpDate[VW_DATE_YEAR]<lower[VW_PC_YEAR] ||
gpDate[VW_DATE_YEAR]>upper[VW_PC_YEAR] ) ?
lower[VW_PC_YEAR] : gpDate[VW_DATE_YEAR];
contVal[VW_PC_MON] = (gpDate[VW_DATE_MON]<lower[VW_PC_MON] ||
gpDate[VW_DATE_MON]>upper[VW_PC_MON]) ?
lower[VW_PC_MON] : gpDate[VW_DATE_MON];
contVal[VW_PC_DAY] = (gpDate[VW_DATE_DAY]<lower[VW_PC_DAY] ||
gpDate[VW_DATE_DAY]>upper[VW_PC_DAY]) ?
lower[VW_PC_DAY] : gpDate[VW_DATE_DAY];
contVal[VW_PC_HR] = (gpDate[VW_DATE_HR]<lower[VW_PC_HR] ||
gpDate[VW_DATE_HR]>upper[VW_PC_HR]) ?
lower[VW_PC_HR] : gpDate[VW_DATE_HR];
contVal[VW_PC_MIN] = (gpDate[VW_DATE_MIN]<lower[VW_PC_MIN] ||
gpDate[VW_DATE_MIN]>upper[VW_PC_MIN]) ?
lower[VW_PC_MIN] : gpDate[VW_DATE_MIN];
}
void doPageControl()
{
if (gStatus==VW_CONT_CONFIRM)
updateRowHilite( &gConfirmTable );
drawPageControlBg();
switch (gStatus) {
case VW_OK:
updateFields();
drawFields();
if (gButton==CONT_A) {
gButton = 0;
playSound(SOUND_MENU_DOWN, AUDIO_NOWAIT);
gStatus = VW_CONT_EDIT;
} else if (gButton==CONT_B) {
gButton = 0;
playSound(SOUND_MENU_UP, AUDIO_NOWAIT);
gStatus = VW_CONT_CONFIRM;
return;
}
break;
case VW_CONT_EDIT:
updateFields();
drawFields();
if (gButton==CONT_A || gButton==CONT_B) {
if (gWhich==VW_PC_YEAR) contVal[VW_PC_EXPY] = contVal[VW_PC_YEAR];
else if (gWhich==VW_PC_MON) {
if (contVal[VW_PC_MON]!=upper[VW_PC_MON])
contVal[VW_PC_EXPM] = contVal[VW_PC_MON] + 1;
else {
if (contVal[VW_PC_YEAR]==upper[VW_PC_YEAR]) {
contVal[VW_PC_EXPY] = contVal[VW_PC_YEAR];
contVal[VW_PC_EXPM] = contVal[VW_PC_MON];
} else {
contVal[VW_PC_EXPY] = contVal[VW_PC_YEAR] + 1;
contVal[VW_PC_EXPM] = 1;
}
}
} else if (gWhich==VW_PC_DAY)
contVal[VW_PC_EXPD] = contVal[VW_PC_DAY];
gButton = 0;
playSound(SOUND_MENU_UP, AUDIO_NOWAIT);
gStatus = VW_OK;
}
break;
case VW_CONT_CONFIRM:
drawFields();
drawTexRectCI( texBoard,
G_IM_FMT_CI, G_IM_SIZ_8b,
TEX_BOARD_W, TEX_BOARD_H,
32, 32, 1<<10, 1<<10,
TEX_BOARD_W, TEX_BOARD_H,
(SCREEN_WD-TEX_BOARD_W)/2, (SCREEN_HT-TEX_BOARD_H)/2);
drawTexRect( texPcConfirm,
G_IM_FMT_RGBA, G_IM_SIZ_16b,
TEX_PC_CONFIRM_W, TEX_PC_CONFIRM_H,
32, 32, 1<<10, 1<<10,
TEX_PC_CONFIRM_W, TEX_PC_CONFIRM_H,
(SCREEN_WD-TEX_BOARD_W)/2 +(TEX_BOARD_W-TEX_PC_CONFIRM_W)/2,
(SCREEN_HT-TEX_BOARD_H)/2 + 20);
drawTable( &gConfirmTable, &onContConfirmHilite, &onContConfirmSelect);
break;
}
}
void onContConfirmHilite( int idx )
{
if (gContConfirmIdx != idx) {
playSound(SOUND_SELECTION_MOVE, AUDIO_NOWAIT);
gContConfirmIdx = idx;
}
if (idx==0) {
gConfirmRow[0].data[0] = (void*)(&gCYeshImg);
gConfirmRow[1].data[0] = (void*)(&gCNoImg);
gConfirmRow[2].data[0] = (void*)(&gCancelImg);
} else if (idx==1) {
gConfirmRow[0].data[0] = (void*)(&gCYesImg);
gConfirmRow[1].data[0] = (void*)(&gCNohImg);
gConfirmRow[2].data[0] = (void*)(&gCancelImg);
} else if (idx==2) {
gConfirmRow[0].data[0] = (void*)(&gCYesImg);
gConfirmRow[1].data[0] = (void*)(&gCNoImg);
gConfirmRow[2].data[0] = (void*)(&gCancelhImg);
}
}
void onContConfirmSelect( int idx, u32 button )
{
if (button==CONT_A) {
if (idx==0) { // save setttings, set clock
gStatus = uiSaveContSettings(contVal);
playSound(SOUND_MENU_UP, AUDIO_NOWAIT);
initPageTop(PAGE_MANAGE);
} else if (idx==1) { // don't save, return to pagetop
gStatus = VW_OK;
playSound(SOUND_MENU_UP, AUDIO_NOWAIT);
initPageTop(PAGE_MANAGE);
} else if (idx==2) { // cancel, stay on pagecontrol
gStatus = VW_OK;
}
}
}
void initPageControlAssets()
{
int outsize;
if (!gPageControlInit) {
bzero(texPcClock, TEX_PC_SET_W * TEX_PC_SET_H * 2);
outsize = expand_gzip( gzTexPcClock, texPcClock, gzTexPcClockSize, TEX_PC_SET_W * TEX_PC_SET_H * 2);
bzero(texPcPwd, TEX_PC_SET_W * TEX_PC_SET_H * 2);
outsize = expand_gzip( gzTexPcPwd, texPcPwd, gzTexPcPwdSize, TEX_PC_SET_W * TEX_PC_SET_H * 2);
bzero(texPcExp, TEX_PC_SET_W * TEX_PC_SET_H * 2);
outsize = expand_gzip( gzTexPcExp, texPcExp, gzTexPcExpSize, TEX_PC_SET_W * TEX_PC_SET_H * 2);
bzero(texPcLimit, TEX_PC_SET_W * TEX_PC_SET_H * 2);
outsize = expand_gzip( gzTexPcLimit, texPcLimit, gzTexPcLimitSize, TEX_PC_SET_W * TEX_PC_SET_H * 2);
bzero(texPcAdmin, TEX_PC_ADMIN_W * TEX_PC_ADMIN_H * 2);
outsize = expand_gzip( gzTexPcAdmin, texPcAdmin, gzTexPcAdminSize, TEX_PC_ADMIN_W * TEX_PC_ADMIN_H * 2);
bzero(texPcBar, TEX_PC_BAR_W * TEX_PC_BAR_H * 2);
outsize = expand_gzip( gzTexPcBar, texPcBar, gzTexPcBarSize, TEX_PC_BAR_W * TEX_PC_BAR_H * 2);
bzero(texPcBarH, TEX_PC_BAR_W * TEX_PC_BAR_H * 2);
outsize = expand_gzip( gzTexPcBarH, texPcBarH, gzTexPcBarHSize, TEX_PC_BAR_W * TEX_PC_BAR_H * 2);
bzero(texPcConfirm, TEX_PC_CONFIRM_W * TEX_PC_CONFIRM_H * 2);
outsize = expand_gzip( gzTexPcConfirm, texPcConfirm, gzTexPcConfirmSize, TEX_PC_CONFIRM_W * TEX_PC_CONFIRM_H * 2);
gPageControlInit = 1;
}
}
void drawPageControlBg()
{
int i;
void *tex;
gDPSetCycleType(gpGfxList++, G_CYC_FILL);
gDPSetFillColor(gpGfxList++, (GPACK_RGBA5551(13, 1, 77, 1) << 16) | GPACK_RGBA5551(13, 1, 77, 1));
gDPFillRectangle( gpGfxList++, 0, 0, SCREEN_WD-1, SCREEN_HT-1 );
gDPSetFillColor(gpGfxList++, (GPACK_RGBA5551(0, 0, 0, 1) << 16) | GPACK_RGBA5551(0, 0, 0, 1));
drawFrame(PAGE_CONTROL);
drawTexRect( texPcAdmin,
G_IM_FMT_RGBA, G_IM_SIZ_16b,
TEX_PC_ADMIN_W, TEX_PC_ADMIN_H,
32, 32, 1<<10, 1<<10,
TEX_PC_ADMIN_W, TEX_PC_ADMIN_H,
PC_ADMIN_X, PC_ADMIN_Y);
if (gStatus==VW_OK || gStatus==VW_CONT_EDIT || gStatus==VW_CONT_CONFIRM) {
for (i=0; i<4; i++) {
if (row[gWhich]==i) tex=texPcBarH; else tex=texPcBar;
drawTexRect( tex,
G_IM_FMT_RGBA, G_IM_SIZ_16b,
TEX_PC_BAR_W, TEX_PC_BAR_H,
32, 32, 1<<10, 1<<10,
TEX_PC_BAR_W, TEX_PC_BAR_H,
PC_BAR_X, PC_BAR_Y+i*56);
}
drawTexRect( texPcPwd,
G_IM_FMT_RGBA, G_IM_SIZ_16b,
TEX_PC_SET_W, TEX_PC_SET_H,
32, 32, 1<<10, 1<<10,
TEX_PC_SET_W, TEX_PC_SET_H,
PC_TEXT_X, PC_PWD_Y);
drawTexRect( texPcClock,
G_IM_FMT_RGBA, G_IM_SIZ_16b,
TEX_PC_SET_W, TEX_PC_SET_H,
32, 32, 1<<10, 1<<10,
TEX_PC_SET_W, TEX_PC_SET_H,
PC_TEXT_X, PC_CLOCK_Y);
drawTexRect( texPcLimit,
G_IM_FMT_RGBA, G_IM_SIZ_16b,
TEX_PC_SET_W, TEX_PC_SET_H,
32, 32, 1<<10, 1<<10,
TEX_PC_SET_W, TEX_PC_SET_H,
PC_TEXT_X, PC_LIMIT_Y);
drawTexRect( texPcExp,
G_IM_FMT_RGBA, G_IM_SIZ_16b,
TEX_PC_SET_W, TEX_PC_SET_H,
32, 32, 1<<10, 1<<10,
TEX_PC_SET_W, TEX_PC_SET_H,
PC_TEXT_X, PC_EXP_Y);
drawColorString(".", field_x[VW_PC_YEAR]+4*12+2, PC_CLOCK_Y+6, 0xFFFF);
drawColorString(".", field_x[VW_PC_MON]+2*12+2, PC_CLOCK_Y+6, 0xFFFF);
drawColorString(".", field_x[VW_PC_EXPY]+4*12+2, PC_EXP_Y+6, 0xFFFF);
drawColorString(".", field_x[VW_PC_MON]+2*12+2, PC_EXP_Y+6, 0xFFFF);
drawColorString(":", field_x[VW_PC_HR]+2*12+2, PC_CLOCK_Y+6, 0xFFFF);
}
}
void updateFields()
{
int leap;
u8 max;
if (gStatus==VW_OK) {
if (contVal[VW_PC_MON]==upper[VW_PC_MON]) {
if (contVal[VW_PC_EXPY]-contVal[VW_PC_YEAR]>=1)
{
contVal[VW_PC_EXPY] = contVal[VW_PC_YEAR]+1;
contVal[VW_PC_EXPM] = lower[VW_PC_EXPM];
while (contVal[VW_PC_EXPD] + upper[VW_PC_DAY] - contVal[VW_PC_DAY] > 31)
contVal[VW_PC_EXPD] --;
} else if (contVal[VW_PC_EXPY]-contVal[VW_PC_YEAR]<=0) {
contVal[VW_PC_EXPY] = contVal[VW_PC_YEAR];
contVal[VW_PC_EXPM] = contVal[VW_PC_MON];
if (contVal[VW_PC_EXPD]<contVal[VW_PC_DAY])
contVal[VW_PC_EXPD] = contVal[VW_PC_DAY];
}
} else {
contVal[VW_PC_EXPY] = contVal[VW_PC_YEAR];
if (contVal[VW_PC_EXPM]-contVal[VW_PC_MON]>=1) {
contVal[VW_PC_EXPM] = contVal[VW_PC_MON]+1;
while (contVal[VW_PC_EXPD] + upper[VW_PC_DAY] - contVal[VW_PC_DAY] > 31)
contVal[VW_PC_EXPD] --;
} else if (contVal[VW_PC_EXPM]-contVal[VW_PC_MON]<=0) {
contVal[VW_PC_EXPM] = contVal[VW_PC_MON];
if (contVal[VW_PC_EXPD]<contVal[VW_PC_DAY])
contVal[VW_PC_EXPD] = contVal[VW_PC_DAY];
}
}
leap = leap_year( contVal[VW_PC_YEAR] );
max = days_in_month[leap][contVal[VW_PC_MON]] < upper[VW_PC_DAY] ?
days_in_month[leap][contVal[VW_PC_MON]] : upper[VW_PC_DAY];
if (contVal[VW_PC_DAY] > max) contVal[VW_PC_DAY] = max;
leap = leap_year( contVal[VW_PC_EXPY] );
max = days_in_month[leap][contVal[VW_PC_EXPM]] < upper[VW_PC_EXPD] ?
days_in_month[leap][contVal[VW_PC_EXPM]] : upper[VW_PC_EXPD];
if (contVal[VW_PC_EXPD] > max) contVal[VW_PC_EXPD] = max;
}
switch (gMove) {
case VW_MOVE_RIGHT:
if (gStatus==VW_CONT_EDIT) {
if (gWhich==VW_PC_PWD3) gWhich=VW_PC_PWD0;
else if (gWhich==VW_PC_MIN) gWhich=VW_PC_YEAR;
else if (gWhich==VW_PC_EXPD) gWhich=VW_PC_EXPY;
else if (gWhich!=VW_PC_LIMIT) gWhich++;
playSound(SOUND_SELECTION_MOVE, AUDIO_NOWAIT);
}
break;
case VW_MOVE_LEFT:
if (gStatus==VW_CONT_EDIT) {
if (gWhich==VW_PC_PWD0) gWhich=VW_PC_PWD3;
else if (gWhich==VW_PC_YEAR) gWhich=VW_PC_MIN;
else if (gWhich==VW_PC_EXPY) gWhich=VW_PC_EXPD;
else if (gWhich!=VW_PC_LIMIT) gWhich--;
playSound(SOUND_SELECTION_MOVE, AUDIO_NOWAIT);
}
break;
case VW_MOVE_UP:
if (gStatus==VW_CONT_EDIT) {
if (gWhich==VW_PC_LIMIT) {
if (contVal[gWhich]==upper[gWhich]) contVal[gWhich] = 24;
else if (contVal[gWhich]==24) contVal[gWhich] = lower[gWhich];
else contVal[gWhich] += 5;
} else {
max = upper[gWhich];
if (gWhich==VW_PC_DAY ) {
leap = leap_year( contVal[VW_PC_YEAR] );
max = days_in_month[leap][contVal[VW_PC_MON]] < upper[VW_PC_DAY] ?
days_in_month[leap][contVal[VW_PC_MON]] : upper[VW_PC_DAY];
} else if (gWhich==VW_PC_EXPD) {
leap = leap_year( contVal[VW_PC_EXPY] );
max = days_in_month[leap][contVal[VW_PC_EXPM]] < upper[VW_PC_EXPD] ?
days_in_month[leap][contVal[VW_PC_EXPM]] : upper[VW_PC_EXPD];
}
if (contVal[gWhich] >= max) contVal[gWhich] = lower[gWhich];
else contVal[gWhich]++;
}
playSound(SOUND_SELECTION_MOVE, AUDIO_NOWAIT);
} else if (gStatus==VW_OK) {
if (row[gWhich]==0) gWhich=VW_PC_EXPY;
else if (row[gWhich]==1) gWhich=VW_PC_PWD0;
else if (row[gWhich]==2) gWhich=VW_PC_YEAR;
else if (row[gWhich]==3) gWhich=VW_PC_LIMIT;
playSound(SOUND_SELECTION_MOVE, AUDIO_NOWAIT);
}
break;
case VW_MOVE_DOWN:
if (gStatus==VW_CONT_EDIT) {
if (gWhich==VW_PC_LIMIT) {
if (contVal[gWhich]==lower[gWhich]) contVal[gWhich] = 24;
else if (contVal[gWhich]==24) contVal[gWhich] = upper[gWhich];
else contVal[gWhich] -= 5;
} else {
max = upper[gWhich];
if (gWhich==VW_PC_DAY ) {
leap = leap_year( contVal[VW_PC_YEAR] );
max = days_in_month[leap][contVal[VW_PC_MON]] < upper[VW_PC_DAY] ?
days_in_month[leap][contVal[VW_PC_MON]] : upper[VW_PC_DAY];
} else if (gWhich==VW_PC_EXPD) {
leap = leap_year( contVal[VW_PC_EXPY] );
max = days_in_month[leap][contVal[VW_PC_EXPM]] < upper[VW_PC_EXPD] ?
days_in_month[leap][contVal[VW_PC_EXPM]] : upper[VW_PC_EXPD];
}
if (contVal[gWhich] <= lower[gWhich]) contVal[gWhich] = max;
else contVal[gWhich]--;
}
playSound(SOUND_SELECTION_MOVE, AUDIO_NOWAIT);
} else if (gStatus==VW_OK) {
if (row[gWhich]==0) gWhich=VW_PC_YEAR;
else if (row[gWhich]==1) gWhich=VW_PC_LIMIT;
else if (row[gWhich]==2) gWhich=VW_PC_EXPY;
else if (row[gWhich]==3) gWhich=VW_PC_PWD0;
playSound(SOUND_SELECTION_MOVE, AUDIO_NOWAIT);
}
break;
}
gMove = VW_MOVE_STILL;
}
void drawFields()
{
int i;
int val;
for (i=0; i<MAX_CONT_FIELDS; i++) {
if (i==VW_PC_MON || i==VW_PC_DAY || i==VW_PC_HR || i==VW_PC_MIN || i==VW_PC_EXPM || i==VW_PC_EXPD)
sprintf(gTmpStrBuf, "%02d", contVal[i]);
else if (i==VW_PC_YEAR || i==VW_PC_EXPY)
sprintf(gTmpStrBuf, "20%02d", contVal[i]);
else if (i==VW_PC_LIMIT) {
if (contVal[i]!=24) {
val = contVal[i]/10.0f * 60;
sprintf(gTmpStrBuf, "%02d:%02d", val/60, val%60);
} else
sprintf(gTmpStrBuf, "24:00");
} else
sprintf(gTmpStrBuf, "%d", contVal[i]);
if (gWhich==i) {
if (gStatus==VW_OK || gStatus==VW_CONT_CONFIRM)
drawColorString(gTmpStrBuf, field_x[i], field_y[i], 0xFFFF);
else if (gStatus==VW_CONT_EDIT)
{
drawColorString(gTmpStrBuf, field_x[i], field_y[i],
GPACK_RGBA5551(240, 50, 0, 0));
drawTexRect ( texUpArrow,
G_IM_FMT_RGBA, G_IM_SIZ_16b,
TEX_ARROW_W, TEX_ARROW_H,
32, 32, 1<<10, 1<<10,
TEX_ARROW_W, TEX_ARROW_H,
arrow_x[i], field_y[i]-10);
drawTexRect ( texDownArrow,
G_IM_FMT_RGBA, G_IM_SIZ_16b,
TEX_ARROW_W, TEX_ARROW_H,
32, 32, 1<<10, 1<<10,
TEX_ARROW_W, TEX_ARROW_H,
arrow_x[i]+1, field_y[i]+18);
}
} else
drawColorString(gTmpStrBuf, field_x[i], field_y[i], 0xFFFF);
}
}