|
1 /* |
|
2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: The application resource file. |
|
15 * |
|
16 */ |
|
17 |
|
18 // Resource identifier |
|
19 NAME ZYXW |
|
20 |
|
21 // System includes |
|
22 #include <clockapp.loc> |
|
23 #include <eikon.rh> |
|
24 #include <avkon.rh> |
|
25 #include <eikon.rsg> |
|
26 #include <avkon.rsg> |
|
27 #include <avkon.hrh> |
|
28 #include <avkon.loc> |
|
29 #include <appinfo.rh> |
|
30 #include <eikon.hrh> |
|
31 |
|
32 // User includes |
|
33 #include "clock.hrh" |
|
34 |
|
35 RESOURCE RSS_SIGNATURE { } |
|
36 |
|
37 RESOURCE TBUF { buf=""; } |
|
38 |
|
39 // Resource definitions |
|
40 // --------------------------------------------------------- |
|
41 // The EIK app info. |
|
42 // --------------------------------------------------------- |
|
43 // |
|
44 RESOURCE EIK_APP_INFO |
|
45 { |
|
46 } |
|
47 |
|
48 // Resource definitions |
|
49 // --------------------------------------------------------- |
|
50 // r_clock_main_view |
|
51 // The clock main view. |
|
52 // --------------------------------------------------------- |
|
53 // |
|
54 RESOURCE AVKON_VIEW r_clock_main_view |
|
55 { |
|
56 menubar = r_clock_main_view_menubar; |
|
57 //single click integration |
|
58 cba = r_clock_main_view_cba_msk_text; |
|
59 } |
|
60 |
|
61 |
|
62 |
|
63 // Resource definitions |
|
64 // --------------------------------------------------------- |
|
65 // r_clock_main_view_cba |
|
66 // The main view CBA, with MSK text. |
|
67 // --------------------------------------------------------- |
|
68 // |
|
69 RESOURCE CBA r_clock_main_view_cba_msk_text |
|
70 { |
|
71 buttons = |
|
72 { |
|
73 CBA_BUTTON { id = EAknSoftkeyOptions; txt = text_softkey_option; }, |
|
74 CBA_BUTTON { id = EAknSoftkeyExit; txt = text_softkey_exit; }, |
|
75 //single click integration |
|
76 CBA_BUTTON { id = EClockSelect; txt = qtn_msk_select; } |
|
77 |
|
78 }; |
|
79 } |
|
80 |
|
81 // Resource definitions |
|
82 // --------------------------------------------------------- |
|
83 // r_clock_main_view_menubar |
|
84 // The menubar. |
|
85 // --------------------------------------------------------- |
|
86 // |
|
87 RESOURCE MENU_BAR r_clock_main_view_menubar |
|
88 { |
|
89 titles = |
|
90 { |
|
91 MENU_TITLE { menu_pane = r_clock_main_view_menupane; } |
|
92 }; |
|
93 } |
|
94 |
|
95 |
|
96 |
|
97 // Resource definitions |
|
98 // --------------------------------------------------------- |
|
99 // r_clock_main_view_menupane |
|
100 // The menupane |
|
101 // --------------------------------------------------------- |
|
102 // |
|
103 //Single click integration |
|
104 RESOURCE MENU_PANE r_clock_main_view_menupane |
|
105 { |
|
106 items = |
|
107 { |
|
108 MENU_ITEM |
|
109 { |
|
110 command = EClockNewAlarm; |
|
111 txt = qtn_clk_multi_new_alarm; |
|
112 }, |
|
113 MENU_ITEM |
|
114 { |
|
115 command = EClockResetAlarm; |
|
116 txt = qtn_alarm_change_alarm; |
|
117 flags = EEikMenuItemAction; |
|
118 }, |
|
119 MENU_ITEM |
|
120 { |
|
121 command = EClockDeactivateAlarm; |
|
122 txt = qtn_clk_deact_alarm; |
|
123 flags = EEikMenuItemSpecific; |
|
124 }, |
|
125 MENU_ITEM |
|
126 { |
|
127 command = EClockActivateAlarm; |
|
128 txt = qtn_clk_activate_alarm; |
|
129 flags = EEikMenuItemSpecific; |
|
130 }, |
|
131 MENU_ITEM |
|
132 { |
|
133 command = EClockRemoveAlarm; |
|
134 txt = qtn_alarm_delete_alarm; |
|
135 flags = EEikMenuItemSpecific; |
|
136 }, |
|
137 MENU_ITEM |
|
138 { |
|
139 command = EClockSettings; |
|
140 txt = qtn_clk_settings; |
|
141 }, |
|
142 MENU_ITEM |
|
143 { |
|
144 command = EAknCmdHelp; |
|
145 txt = qtn_clk_help_home; |
|
146 }, |
|
147 MENU_ITEM |
|
148 { |
|
149 command = EClockMainViewExit; |
|
150 txt = qtn_options_exit; |
|
151 } |
|
152 }; |
|
153 } |
|
154 |
|
155 |
|
156 |
|
157 |
|
158 // Resource definitions |
|
159 // --------------------------------------------------------- |
|
160 // r_qtn_clock_alarms_view_inactive_alarm |
|
161 // Resource for string "INACTIVE" |
|
162 // --------------------------------------------------------- |
|
163 // |
|
164 RESOURCE TBUF r_qtn_clock_alarms_view_inactive_alarm |
|
165 { |
|
166 buf = qtn_clk_alarms_view_inactive_alarm; |
|
167 } |
|
168 |
|
169 // Resource definitions |
|
170 // --------------------------------------------------------- |
|
171 // r_qtn_clk_command_new_alarm |
|
172 // Resource for string "New alarm" |
|
173 // --------------------------------------------------------- |
|
174 // |
|
175 RESOURCE TBUF r_qtn_clk_command_new_alarm |
|
176 { |
|
177 buf = qtn_clk_command_new_alarm; |
|
178 } |
|
179 |
|
180 // Resource definitions |
|
181 // --------------------------------------------------------- |
|
182 // r_qtn_clock_alarm_note_deleted |
|
183 // Resource for string "Alarm deleted from Alarm view" |
|
184 // --------------------------------------------------------- |
|
185 // |
|
186 RESOURCE TBUF r_qtn_clock_alarm_note_deleted |
|
187 { |
|
188 buf = qtn_clk_alarm_note_deleted; |
|
189 } |
|
190 |
|
191 // Resource definitions |
|
192 // --------------------------------------------------------- |
|
193 // r_qtn_clock_note_alarm_dst_rollover |
|
194 // Resource for string "Alarm will occur at %U after automatic daylight saving update." |
|
195 // --------------------------------------------------------- |
|
196 // |
|
197 RESOURCE TBUF r_qtn_clock_note_alarm_dst_rollover |
|
198 { |
|
199 buf = qtn_clk_note_alarm_dst_rollover; |
|
200 } |
|
201 |
|
202 // Resource definitions |
|
203 // --------------------------------------------------------- |
|
204 // r_qtn_clock_alarm_note_day_clk |
|
205 // Resource for string "Alarm occurs every day at %U o’clock" |
|
206 // --------------------------------------------------------- |
|
207 // |
|
208 RESOURCE TBUF r_qtn_clock_alarm_note_day_clk |
|
209 { |
|
210 buf = qtn_clk_alarm_note_day_clk; |
|
211 } |
|
212 |
|
213 // Resource definitions |
|
214 // --------------------------------------------------------- |
|
215 // r_qtn_clock_alarm_note_wday_clk |
|
216 // Resource for string "Alarm occurs workdays at %U o’clock" |
|
217 // --------------------------------------------------------- |
|
218 // |
|
219 RESOURCE TBUF r_qtn_clock_alarm_note_wday_clk |
|
220 { |
|
221 buf = qtn_clk_alarm_note_wday_clk; |
|
222 } |
|
223 |
|
224 // Resource definitions |
|
225 // --------------------------------------------------------- |
|
226 // r_qtn_clock_alarm_note_week_clk |
|
227 // Resource for string "Alarm occurs every week on %0U at %1U o’clock" |
|
228 // --------------------------------------------------------- |
|
229 // |
|
230 RESOURCE TBUF r_qtn_clock_alarm_note_week_clk |
|
231 { |
|
232 buf = qtn_clk_alarm_note_week_clk; |
|
233 } |
|
234 |
|
235 // Resource definitions |
|
236 // --------------------------------------------------------- |
|
237 // r_qtn_clock_alarm_note_once_next |
|
238 // Resource for string "Alarm occurs once only on next %0U at %1U o’clock" |
|
239 // --------------------------------------------------------- |
|
240 // |
|
241 RESOURCE TBUF r_qtn_clock_alarm_note_once_next |
|
242 { |
|
243 buf = qtn_clk_alarm_note_once_next; |
|
244 } |
|
245 |
|
246 // Resource definitions |
|
247 // --------------------------------------------------------- |
|
248 // r_clock_alarm_conf_singular |
|
249 // Resource for string "Time to alarm: %0N hour and %1N minute." |
|
250 // --------------------------------------------------------- |
|
251 // |
|
252 RESOURCE TBUF r_clock_alarm_conf_singular |
|
253 { |
|
254 buf = qtn_alarm_conf_singular; |
|
255 } |
|
256 |
|
257 // Resource definitions |
|
258 // --------------------------------------------------------- |
|
259 // r_clock_alarm_conf_plural |
|
260 // Resource for string "Time to alarm: %0N hours and %1N minutes." |
|
261 // --------------------------------------------------------- |
|
262 // |
|
263 RESOURCE TBUF r_clock_alarm_conf_plural |
|
264 { |
|
265 buf = qtn_alarm_conf_plural; |
|
266 } |
|
267 |
|
268 // Resource definitions |
|
269 // --------------------------------------------------------- |
|
270 // r_clock_alarm_conf_hour_sev_min |
|
271 // Resource for string "Time to alarm: %0N hour and %1N minutes." |
|
272 // --------------------------------------------------------- |
|
273 // |
|
274 RESOURCE TBUF r_clock_alarm_conf_hour_sev_min |
|
275 { |
|
276 buf = qtn_alarm_conf_hour_sev_min; |
|
277 } |
|
278 |
|
279 // Resource definitions |
|
280 // --------------------------------------------------------- |
|
281 // r_clock_alarm_conf_sev_hours_min |
|
282 // Resource for string "Time to alarm: %0N hours and %1N minute." |
|
283 // --------------------------------------------------------- |
|
284 // |
|
285 RESOURCE TBUF r_clock_alarm_conf_sev_hours_min |
|
286 { |
|
287 buf = qtn_alarm_conf_sev_hours_min; |
|
288 } |
|
289 |
|
290 // Resource definitions |
|
291 // --------------------------------------------------------- |
|
292 // r_qtn_clk_alarms_view_snoozed_alarm |
|
293 // Resource for string "Snoozed %U" |
|
294 // --------------------------------------------------------- |
|
295 // |
|
296 RESOURCE TBUF r_qtn_clk_alarms_view_snoozed_alarm |
|
297 { |
|
298 buf = qtn_clk_alarms_view_snoozed_alarm; |
|
299 } |
|
300 |
|
301 // Resource definitions |
|
302 // --------------------------------------------------------- |
|
303 // r_clock_title_settings |
|
304 // Resource for string "Date & Time settings" |
|
305 // --------------------------------------------------------- |
|
306 // |
|
307 RESOURCE TBUF r_clock_title_settings |
|
308 { |
|
309 buf = qtn_clk_title_settings; |
|
310 } |
|
311 |
|
312 // Resource definitions |
|
313 // --------------------------------------------------------- |
|
314 // r_clock_title_main_view |
|
315 // Resource for string "Clock" |
|
316 // --------------------------------------------------------- |
|
317 // |
|
318 RESOURCE TBUF r_clock_title_main_view |
|
319 { |
|
320 buf = qtn_clk_title_home_clock; |
|
321 } |
|
322 |
|
323 // Resource definitions |
|
324 // --------------------------------------------------------- |
|
325 // r_clock_world_note_city_max |
|
326 // Resource for string "Snoozed %U" |
|
327 // --------------------------------------------------------- |
|
328 // |
|
329 RESOURCE TBUF r_clock_world_note_city_max |
|
330 { |
|
331 buf = qtn_clk_note_location_max; |
|
332 } |
|
333 |
|
334 // Resource definitions |
|
335 // --------------------------------------------------------- |
|
336 // r_clock_note_time_changed_country |
|
337 // Resource for string "Device time changed according to UTC offset of %U" |
|
338 // --------------------------------------------------------- |
|
339 // |
|
340 RESOURCE TBUF r_clock_note_time_changed_country |
|
341 { |
|
342 buf = qtn_clk_note_time_changed_country; |
|
343 } |
|
344 |
|
345 // Resource definitions |
|
346 // --------------------------------------------------------- |
|
347 // r_clock_query_remove_location |
|
348 // Resource for string "Remove location from the list: %U?" |
|
349 // --------------------------------------------------------- |
|
350 // |
|
351 RESOURCE TBUF r_clock_query_remove_location |
|
352 { |
|
353 buf = qtn_clk_query_remove_region; |
|
354 } |
|
355 |
|
356 // Resource definitions |
|
357 // --------------------------------------------------------- |
|
358 // r_wrld_clk_empty_view |
|
359 // Resource for string "No Locations" |
|
360 // --------------------------------------------------------- |
|
361 // |
|
362 RESOURCE TBUF r_wrld_clk_empty_view |
|
363 { |
|
364 buf = qtn_wrld_clk_empty_view; |
|
365 } |
|
366 |
|
367 // Resource definitions |
|
368 // --------------------------------------------------------- |
|
369 // r_title_wrld_clk |
|
370 // Resource for string "World Clock" |
|
371 // --------------------------------------------------------- |
|
372 // |
|
373 RESOURCE TBUF r_title_wrld_clk |
|
374 { |
|
375 buf = qtn_clk_title_wrld_clk; |
|
376 } |
|
377 |
|
378 // This resource will not be used as a part of pop-up removal. |
|
379 // Resource definitions |
|
380 // --------------------------------------------------------- |
|
381 // r_clock_alarm_delete_query |
|
382 // Alarm deletion confirmation query dialog. |
|
383 // --------------------------------------------------------- |
|
384 // |
|
385 RESOURCE DIALOG r_clock_alarm_delete_query |
|
386 { |
|
387 flags = EGeneralQueryFlags; |
|
388 buttons = R_AVKON_SOFTKEYS_YES_NO__YES; |
|
389 items= |
|
390 { |
|
391 DLG_LINE |
|
392 { |
|
393 type = EAknCtQuery; |
|
394 itemflags = EEikDlgItemNonFocusing; |
|
395 id = EGeneralQuery; |
|
396 control = AVKON_CONFIRMATION_QUERY |
|
397 { |
|
398 layout = EConfirmationLayout; |
|
399 label = qtn_alarm_quest_delete; |
|
400 animation = R_QGN_NOTE_QUERY_ANIM; |
|
401 }; |
|
402 } |
|
403 }; |
|
404 } |
|
405 |
|
406 // Resource definitions |
|
407 // --------------------------------------------------------- |
|
408 // r_clock_world_view |
|
409 // The clock world view. |
|
410 // --------------------------------------------------------- |
|
411 // |
|
412 RESOURCE AVKON_VIEW r_clock_world_view |
|
413 { |
|
414 menubar = r_clock_world_view_menubar; |
|
415 //single click integration |
|
416 cba = r_clock_world_view_cba_softkey; |
|
417 |
|
418 } |
|
419 |
|
420 |
|
421 |
|
422 // Resource definitions |
|
423 // --------------------------------------------------------- |
|
424 // r_clock_world_view_cba_softkey |
|
425 // The world view CBA, with msk Add. |
|
426 // --------------------------------------------------------- |
|
427 // |
|
428 RESOURCE CBA r_clock_world_view_cba_softkey |
|
429 { |
|
430 flags = 0; |
|
431 buttons = |
|
432 { |
|
433 CBA_BUTTON { id = EAknSoftkeyOptions; txt = text_softkey_option; }, |
|
434 CBA_BUTTON { id = EAknSoftkeyExit; txt = text_softkey_exit; }, |
|
435 //single click integration |
|
436 CBA_BUTTON { id = EClockWorldMyRegion; txt = qtn_clk_opt_region_my_region; } |
|
437 |
|
438 |
|
439 |
|
440 }; |
|
441 } |
|
442 |
|
443 // Resource definitions |
|
444 // --------------------------------------------------------- |
|
445 // r_clock_world_view_menubar |
|
446 // The world view menubar. |
|
447 // --------------------------------------------------------- |
|
448 // |
|
449 RESOURCE MENU_BAR r_clock_world_view_menubar |
|
450 { |
|
451 titles = |
|
452 { |
|
453 MENU_TITLE { menu_pane = r_clock_world_view_menupane; } |
|
454 }; |
|
455 } |
|
456 |
|
457 |
|
458 |
|
459 // Resource definitions |
|
460 // --------------------------------------------------------- |
|
461 // r_clock_world_view_menupane |
|
462 // The menupane |
|
463 // --------------------------------------------------------- |
|
464 // |
|
465 //single click integration |
|
466 RESOURCE MENU_PANE r_clock_world_view_menupane |
|
467 { |
|
468 items = |
|
469 { |
|
470 MENU_ITEM |
|
471 { |
|
472 command = EClockWorldAddRegion; |
|
473 txt = qtn_clk_opt_region_add; |
|
474 }, |
|
475 MENU_ITEM |
|
476 { |
|
477 command = EClockWorldMyRegion; |
|
478 txt = qtn_clk_opt_region_my_region; |
|
479 flags = EEikMenuItemAction; |
|
480 }, |
|
481 MENU_ITEM |
|
482 { |
|
483 command = EClockWorldRemoveRegion; |
|
484 txt = qtn_clk_opt_city_rmv; |
|
485 flags = EEikMenuItemSpecific; |
|
486 }, |
|
487 MENU_ITEM |
|
488 { |
|
489 command = EClockWorldAddImage; |
|
490 txt = qtn_clk_opt_wrld_clk_change_img; |
|
491 flags = EEikMenuItemSpecific; |
|
492 }, |
|
493 MENU_ITEM |
|
494 { |
|
495 command = EClockWorldSettings; |
|
496 txt = qtn_clk_settings; |
|
497 }, |
|
498 MENU_ITEM |
|
499 { |
|
500 command = EAknCmdHelp; |
|
501 txt = qtn_clk_help_home; |
|
502 }, |
|
503 MENU_ITEM |
|
504 { |
|
505 command = EClockWorldExit; |
|
506 txt = qtn_options_exit; |
|
507 } |
|
508 }; |
|
509 } |
|
510 |
|
511 |
|
512 |
|
513 // This resource will not be used as a part of pop-up removal. |
|
514 // Resource definitions |
|
515 // --------------------------------------------------------- |
|
516 // r_clock_dialog_query_remove_city |
|
517 // The query dialog for city removal confirmation. |
|
518 // --------------------------------------------------------- |
|
519 // |
|
520 RESOURCE DIALOG r_clock_dialog_query_remove_city |
|
521 { |
|
522 flags = EGeneralQueryFlags; |
|
523 buttons = R_AVKON_SOFTKEYS_YES_NO__YES; |
|
524 items = |
|
525 { |
|
526 DLG_LINE |
|
527 { |
|
528 type = EAknCtQuery; |
|
529 id = EGeneralQuery; |
|
530 control = AVKON_CONFIRMATION_QUERY |
|
531 { |
|
532 layout = EConfirmationQueryLayout; |
|
533 }; |
|
534 } |
|
535 }; |
|
536 } |
|
537 |
|
538 // Resource definitions |
|
539 // --------------------------------------------------------- |
|
540 // r_clock_dialog_query_nw_time_off |
|
541 // The query dialog for disabling network time update. |
|
542 // --------------------------------------------------------- |
|
543 // |
|
544 RESOURCE DIALOG r_clock_dialog_query_nw_time_off |
|
545 { |
|
546 flags = EGeneralQueryFlags; |
|
547 buttons = R_AVKON_SOFTKEYS_YES_NO__YES; |
|
548 items = |
|
549 { |
|
550 DLG_LINE |
|
551 { |
|
552 type = EAknCtQuery; |
|
553 id = EGeneralQuery; |
|
554 control = AVKON_CONFIRMATION_QUERY |
|
555 { |
|
556 label = qtn_clk_home_region_disable_nitz; |
|
557 layout = EConfirmationQueryLayout; |
|
558 }; |
|
559 } |
|
560 }; |
|
561 } |
|
562 |
|
563 // Resource definitions |
|
564 // --------------------------------------------------------- |
|
565 // r_clock_dialog_query_region_af_time |
|
566 // The query dialog confirming if the user wants to change the home zone. |
|
567 // --------------------------------------------------------- |
|
568 // |
|
569 RESOURCE DIALOG r_clock_dialog_query_region_af_time |
|
570 { |
|
571 flags = EGeneralQueryFlags; |
|
572 buttons = R_AVKON_SOFTKEYS_YES_NO__YES; |
|
573 items = |
|
574 { |
|
575 DLG_LINE |
|
576 { |
|
577 type = EAknCtQuery; |
|
578 id = EGeneralQuery; |
|
579 control = AVKON_CONFIRMATION_QUERY |
|
580 { |
|
581 label = qtn_clk_query_region_af_time; |
|
582 layout = EConfirmationQueryLayout; |
|
583 }; |
|
584 } |
|
585 }; |
|
586 } |
|
587 |
|
588 // Other resource files |
|
589 #include "clkdatetimeview.ra" |
|
590 #include "clockalarmeditor.ra" |
|
591 #include "clockcityselectionlist.ra" |
|
592 |
|
593 // End of file |