|
1 /* |
|
2 * Copyright (c) 2002-2007 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // RESOURCE IDENTIFIER |
|
20 NAME IGPR // 4 letter ID |
|
21 |
|
22 // INCLUDES |
|
23 |
|
24 #include <eikon.rh> |
|
25 #include <avkon.rsg> |
|
26 #include <avkon.rh> |
|
27 #include <avkon.hrh> |
|
28 #include <avkon.mbg> |
|
29 #include <avkon.loc> |
|
30 #include <AvkonIcons.hrh> |
|
31 #include <appinfo.rh> |
|
32 #include <data_caging_paths_strings.hrh> |
|
33 #include <btnotif.mbg> |
|
34 #include <imageprintapp.loc> |
|
35 |
|
36 #include "imageprintapp.hrh" |
|
37 |
|
38 // Maximum and minimum number |
|
39 #define MIN_TINT_NAME -2147483646 |
|
40 #define MAX_TINT_NAME 2147483647 |
|
41 |
|
42 // RESOURCE DEFINITIONS |
|
43 |
|
44 RESOURCE RSS_SIGNATURE { } |
|
45 RESOURCE TBUF { buf="ImagePrint"; } |
|
46 |
|
47 /** |
|
48 * Application resource |
|
49 */ |
|
50 RESOURCE EIK_APP_INFO |
|
51 { |
|
52 menubar = r_settings_view_menubar; |
|
53 cba = R_AVKON_SOFTKEYS_OPTIONS_BACK; |
|
54 } |
|
55 |
|
56 /** |
|
57 * Main view resource |
|
58 */ |
|
59 RESOURCE AVKON_VIEW r_settings_view |
|
60 { |
|
61 menubar = r_settings_view_menubar; |
|
62 cba = R_AVKON_SOFTKEYS_OPTIONS_BACK; |
|
63 } |
|
64 |
|
65 RESOURCE AVKON_VIEW r_empty_view |
|
66 { |
|
67 menubar = R_AVKON_MENUPANE_EMPTY; |
|
68 cba = R_AVKON_SOFTKEYS_EMPTY; |
|
69 } |
|
70 |
|
71 /** |
|
72 * Main view menubar |
|
73 */ |
|
74 RESOURCE MENU_BAR r_settings_view_menubar |
|
75 { |
|
76 titles = |
|
77 { |
|
78 MENU_TITLE |
|
79 { |
|
80 menu_pane = r_profile_list_view_menu; |
|
81 txt = " "; // Won't be visible, "Options" is shown |
|
82 } |
|
83 }; |
|
84 } |
|
85 |
|
86 /** |
|
87 * Main view menupane |
|
88 */ |
|
89 RESOURCE MENU_PANE r_profile_list_view_menu |
|
90 { |
|
91 items = |
|
92 { |
|
93 MENU_ITEM |
|
94 { |
|
95 command = ESettingsChangeItem; |
|
96 txt = qtn_print_settings_opt_change; |
|
97 }, |
|
98 MENU_ITEM |
|
99 { |
|
100 command = ESettingsPrint; |
|
101 txt = qtn_print_menu_opt_print; |
|
102 }, |
|
103 MENU_ITEM |
|
104 { |
|
105 command = ECmdPrintHelp; |
|
106 txt = qtn_print_menu_opt_help; |
|
107 }, |
|
108 MENU_ITEM |
|
109 { |
|
110 command = ESettingsExit; |
|
111 txt = qtn_print_menu_opt_exit; |
|
112 } |
|
113 }; |
|
114 } |
|
115 |
|
116 RESOURCE LOCALISABLE_APP_INFO r_imageprintapp_localisable_app_info |
|
117 { |
|
118 caption_and_icon = |
|
119 CAPTION_AND_ICON_INFO |
|
120 { |
|
121 caption = qtn_app_caption_string; |
|
122 number_of_icons = 1; |
|
123 icon_file = APP_BITMAP_DIR"\\imageprintapp_aif.mif"; |
|
124 }; |
|
125 } |
|
126 |
|
127 /** |
|
128 * Dialog resource for print progress note |
|
129 */ |
|
130 RESOURCE DIALOG r_print_progress_prog_note |
|
131 { |
|
132 flags = EAknProgressNoteFlags; |
|
133 buttons = R_AVKON_SOFTKEYS_CANCEL; |
|
134 items = |
|
135 { |
|
136 DLG_LINE |
|
137 { |
|
138 type = EBitmapCtrl; |
|
139 id = EBrandingBitmap; |
|
140 }, |
|
141 DLG_LINE |
|
142 { |
|
143 type = EAknCtNote; |
|
144 id = EPrintWaitNote; |
|
145 control = AVERELL_NOTE |
|
146 { |
|
147 layout = EProgressLayout; |
|
148 singular_label = qtn_print_progress_prompt; |
|
149 imagefile = AVKON_ICON_FILE; |
|
150 imageid = EMbmAvkonQgn_note_progress; |
|
151 imagemask = EMbmAvkonQgn_note_progress_mask; |
|
152 }; |
|
153 } |
|
154 }; |
|
155 } |
|
156 |
|
157 /** |
|
158 * Dialog resource for plain print progress note |
|
159 */ |
|
160 RESOURCE DIALOG r_print_progress_plain_prog_note |
|
161 { |
|
162 flags = EAknProgressNoteFlags; |
|
163 buttons = R_AVKON_SOFTKEYS_CANCEL; |
|
164 items = |
|
165 { |
|
166 DLG_LINE |
|
167 { |
|
168 type = EAknCtNote; |
|
169 id = EPrintWaitNote; |
|
170 control = AVERELL_NOTE |
|
171 { |
|
172 layout = EProgressLayout; |
|
173 singular_label = qtn_print_progress_prompt; |
|
174 imagefile = AVKON_ICON_FILE; |
|
175 imageid = EMbmAvkonQgn_note_progress; |
|
176 imagemask = EMbmAvkonQgn_note_progress_mask; |
|
177 }; |
|
178 } |
|
179 }; |
|
180 } |
|
181 |
|
182 /** |
|
183 * MMC printing completed dialog |
|
184 */ |
|
185 RESOURCE DIALOG r_mmc_printing_completed |
|
186 { |
|
187 flags = EEikDialogFlagNoDrag | EEikDialogFlagNoTitleBar | |
|
188 EEikDialogFlagCbaButtons; |
|
189 buttons = R_AVKON_SOFTKEYS_OK_EMPTY; |
|
190 items = |
|
191 { |
|
192 DLG_LINE |
|
193 { |
|
194 type = EAknCtNote; |
|
195 id = EPrintProgressNote; |
|
196 control = AVKON_NOTE |
|
197 { |
|
198 layout = EConfirmationLayout; |
|
199 singular_label = qtn_print_mmc_print_note; |
|
200 }; |
|
201 } |
|
202 }; |
|
203 } |
|
204 |
|
205 /** |
|
206 * Connect USB printer dialog |
|
207 */ |
|
208 RESOURCE DIALOG r_connect_usb |
|
209 { |
|
210 flags = EAknInformationNoteFlags; |
|
211 buttons = R_AVKON_SOFTKEYS_CANCEL; |
|
212 items = |
|
213 { |
|
214 DLG_LINE |
|
215 { |
|
216 type = EAknCtNote; |
|
217 id = EAknNoteNoType; |
|
218 control = AVKON_NOTE |
|
219 { |
|
220 layout = ENoteWithImageLayout; |
|
221 singular_label = qtn_print_connect_usb_note; |
|
222 }; |
|
223 } |
|
224 }; |
|
225 } |
|
226 |
|
227 /** |
|
228 * Confirmation dialog for "no printers" note |
|
229 */ |
|
230 RESOURCE DIALOG r_no_printers_confirmation |
|
231 { |
|
232 flags = EGeneralQueryFlags; |
|
233 buttons = R_AVKON_SOFTKEYS_YES_NO; |
|
234 items = |
|
235 { |
|
236 DLG_LINE |
|
237 { |
|
238 type = EAknCtQuery; |
|
239 id = ENoPrintersConfirmation; |
|
240 control = AVKON_CONFIRMATION_QUERY |
|
241 { |
|
242 layout = EConfirmationQueryLayout; |
|
243 }; |
|
244 } |
|
245 }; |
|
246 } |
|
247 |
|
248 RESOURCE DIALOG r_cancel_printing_dialog |
|
249 { |
|
250 flags = EAknWaitNoteFlags | EEikDialogFlagWait; |
|
251 buttons = R_AVKON_SOFTKEYS_EMPTY; |
|
252 items= |
|
253 { |
|
254 DLG_LINE |
|
255 { |
|
256 type = EAknCtNote; |
|
257 id = 1; |
|
258 control= AVKON_NOTE |
|
259 { |
|
260 layout = EWaitLayout; |
|
261 animation =R_QGN_GRAF_WAIT_BAR_ANIM; |
|
262 }; |
|
263 } |
|
264 }; |
|
265 } |
|
266 |
|
267 // Image array for pop-up animation |
|
268 RESOURCE ARRAY r_imageprint_animation_images |
|
269 { |
|
270 items = |
|
271 { |
|
272 BMPANIM_FRAME { bmpid=18; maskid=19; }, |
|
273 BMPANIM_FRAME { bmpid=16; maskid=17; }, |
|
274 BMPANIM_FRAME { bmpid=20; maskid=21; }, |
|
275 BMPANIM_FRAME { bmpid=16; maskid=17; } |
|
276 }; |
|
277 } |
|
278 |
|
279 RESOURCE ARRAY r_bt_animation_for_popuplist_images |
|
280 { |
|
281 items= |
|
282 { |
|
283 BMPANIM_FRAME {bmpid=EMbmBtnotifQgn_note_bt_popup_2; maskid=EMbmBtnotifQgn_note_bt_popup_2_mask; }, |
|
284 BMPANIM_FRAME {bmpid=EMbmBtnotifQgn_note_bt_popup; maskid=EMbmBtnotifQgn_note_bt_popup_mask; }, |
|
285 BMPANIM_FRAME {bmpid=EMbmBtnotifQgn_note_bt_popup_3; maskid=EMbmBtnotifQgn_note_bt_popup_3_mask; }, |
|
286 BMPANIM_FRAME {bmpid=EMbmBtnotifQgn_note_bt_popup; maskid=EMbmBtnotifQgn_note_bt_popup_mask; } |
|
287 }; |
|
288 } |
|
289 |
|
290 // Animation for searching devices popup-list |
|
291 RESOURCE BMPANIM_DATA r_imageprint_animation |
|
292 { |
|
293 frameinterval = 200; |
|
294 playmode = EAknBitmapAnimationPlayModeCycle; |
|
295 bmpfile = APP_BITMAP_DIR"\\btnotif.mbm"; |
|
296 frames = r_bt_animation_for_popuplist_images; |
|
297 } |
|
298 |
|
299 /** |
|
300 * Generic popup setting item |
|
301 */ |
|
302 RESOURCE AVKON_SETTING_PAGE r_setting_generic_protocol_page |
|
303 { |
|
304 softkey_resource = R_AVKON_SOFTKEYS_OK_CANCEL; |
|
305 type = EAknCtPopupSettingList; |
|
306 editor_resource_id = r_empty_protocol_setting_list; |
|
307 } |
|
308 |
|
309 RESOURCE POPUP_SETTING_LIST r_empty_protocol_setting_list |
|
310 { |
|
311 } |
|
312 |
|
313 RESOURCE CBA r_avkon_softkeys_stop |
|
314 { |
|
315 buttons = |
|
316 { |
|
317 CBA_BUTTON |
|
318 { |
|
319 txt = " "; |
|
320 }, |
|
321 CBA_BUTTON |
|
322 { |
|
323 id = EAknSoftkeyCancel; |
|
324 txt= qtn_clk_softkey_stop; |
|
325 } |
|
326 }; |
|
327 } |
|
328 |
|
329 |
|
330 |
|
331 /** |
|
332 * |
|
333 * Resource strings |
|
334 * |
|
335 */ |
|
336 |
|
337 RESOURCE TBUF r_settings_imageprint_mmc_print_note { buf = qtn_print_mmc_print_note; } |
|
338 RESOURCE TBUF r_settings_imageprint_mmc_print_note_one_picture { buf = qtn_print_mmc_print_note_one_picture; } |
|
339 RESOURCE TBUF r_txt_imageprint_title_printsettings { buf = qtn_app_caption_string; } |
|
340 RESOURCE TBUF r_printjob_images { buf = qtn_printjob_images; } |
|
341 RESOURCE TBUF r_printjob_image { buf = qtn_printjob_image; } |
|
342 RESOURCE TBUF r_print_selected_printer { buf = qtn_print_selected_printer; } |
|
343 RESOURCE TBUF r_print_memory_card { buf = qtn_print_memory_card; } |
|
344 RESOURCE TBUF r_print_no_printer { buf = qtn_print_no_printer; } |
|
345 |
|
346 RESOURCE TBUF r_qtn_print_progress_note_title { buf = qtn_print_progress_prompt; } |
|
347 RESOURCE TBUF r_qtn_print_not_found_error { buf = qtn_print_not_found_error; } |
|
348 RESOURCE TBUF r_qtn_print_no_printers { buf = qtn_print_no_printers; } |
|
349 RESOURCE TBUF r_qtn_print_settings_default_usb { buf = qtn_print_settings_default_usb; } |
|
350 RESOURCE TBUF r_qtn_print_settings_default_bt { buf = qtn_print_settings_default_bt; } |
|
351 RESOURCE TBUF r_qtn_print_settings_default_wlan { buf = qtn_print_settings_default_wlan; } |
|
352 RESOURCE TBUF r_qtn_print_wrongtype_note { buf = qtn_print_wrongtype_note; } |
|
353 RESOURCE TBUF r_qtn_print_selectnew_note { buf = qtn_print_selectnew_note; } |
|
354 RESOURCE TBUF r_qtn_print_concurrent_note { buf = qtn_print_concurrent_note; } |
|
355 RESOURCE TBUF r_qtn_print_memory_card { buf = qtn_print_memory_card; } |
|
356 RESOURCE TBUF r_qtn_print_settings_noc {buf = qtn_print_settings_noc; } |
|
357 RESOURCE TBUF r_qtn_print_progress_prompt_cancel { buf = qtn_print_progress_prompt_cancel; } |
|
358 |
|
359 RESOURCE TBUF r_qtn_popup_list_title { buf = qtn_print_selectprinter_prompt; } |
|
360 RESOURCE TBUF r_qtn_copy_progress_note_title { buf = qtn_print_progress_prompt_mmc; } |
|
361 RESOURCE TBUF r_qtn_popup_list_title2 { buf = qtn_print_selectprinter_prompt2; } |
|
362 RESOURCE TBUF r_qtn_search_again { buf = qtn_print_search_again; } |
|
363 |
|
364 RESOURCE TBUF r_note_imageprint_error_ink_out { buf = qtn_print_outofink_error; } |
|
365 RESOURCE TBUF r_note_imageprint_error_paper_load { buf = qtn_print_paper_load_error; } |
|
366 RESOURCE TBUF r_note_imageprint_error_paper_eject { buf = qtn_print_paper_eject_error; } |
|
367 RESOURCE TBUF r_note_imageprint_error_paper_media { buf = qtn_print_paper_media_error; } |
|
368 RESOURCE TBUF r_note_imageprint_error_paper_jam { buf = qtn_print_paper_jam_error; } |
|
369 RESOURCE TBUF r_note_imageprint_error_paper_combination { buf = qtn_print_paper_combination_error; } |
|
370 RESOURCE TBUF r_note_imageprint_error_paper_low { buf = qtn_print_paper_low_error; } |
|
371 RESOURCE TBUF r_note_imageprint_error_paper { buf = qtn_print_paper_error; } |
|
372 RESOURCE TBUF r_note_imageprint_error_ink_low { buf = qtn_print_inklow_error; } |
|
373 RESOURCE TBUF r_note_imageprint_error_ink_waste { buf = qtn_print_ink_waste_error; } |
|
374 RESOURCE TBUF r_note_imageprint_error_ink { buf = qtn_print_ink_error; } |
|
375 RESOURCE TBUF r_note_imageprint_error_file_decode { buf = qtn_print_file_decode_error; } |
|
376 RESOURCE TBUF r_note_imageprint_error_file { buf = qtn_print_file_error; } |
|
377 RESOURCE TBUF r_note_imageprint_error_hardware_cover_open { buf = qtn_print_hardware_cover_open_error; } |
|
378 RESOURCE TBUF r_note_imageprint_error_hardware_fatal { buf = qtn_print_hardware_fatal_error; } |
|
379 RESOURCE TBUF r_note_imageprint_error_hardware_servicecall { buf = qtn_print_hardware_servicecall_error; } |
|
380 RESOURCE TBUF r_note_imageprint_error_hardware_printer_unavailable { buf = qtn_print_hardware_printer_unavailable_error; } |
|
381 RESOURCE TBUF r_note_imageprint_error_hardware_printer_busy { buf = qtn_print_hardware_printer_busy_error; } |
|
382 RESOURCE TBUF r_note_imageprint_error_hardware_lever { buf = qtn_print_hardware_lever_error; } |
|
383 RESOURCE TBUF r_note_imageprint_error_hardware_no_marking_agent { buf = qtn_print_hardware_no_marking_agent_error; } |
|
384 RESOURCE TBUF r_note_imageprint_error_hardware_ink_cover_open { buf = qtn_print_hardware_ink_cover_open_error; } |
|
385 RESOURCE TBUF r_note_imageprint_error_hardware_no_ink_cartridge { buf = qtn_print_hardware_no_ink_cartridge_error; } |
|
386 RESOURCE TBUF r_note_imageprint_error_hardware { buf = qtn_print_hardware_error; } |
|
387 RESOURCE TBUF r_note_imageprint_error_output_area_almost_full { buf = qtn_print_output_area_almost_full_error; } |
|
388 RESOURCE TBUF r_note_imageprint_error_output_area_full { buf = qtn_print_output_area_full_error; } |
|
389 RESOURCE TBUF r_note_imageprint_error_marker_supply_low { buf = qtn_print_marker_supply_low_error; } |
|
390 RESOURCE TBUF r_note_imageprint_error_marker_supply_empty { buf = qtn_print_marker_supply_empty_error; } |
|
391 RESOURCE TBUF r_note_imageprint_error_marker_failure { buf = qtn_print_marker_failure_error; } |
|
392 RESOURCE TBUF r_note_imageprint_error_printer_paused { buf = qtn_print_paused_error; } |
|
393 RESOURCE TBUF r_note_imageprint_error_paper_out { buf = qtn_print_outofpaper_error; } |
|
394 |
|
395 RESOURCE TBUF r_note_print_status_error { buf = qtn_print_status_error; } |
|
396 RESOURCE TBUF r_note_send_print_error { buf = qtn_print_send_error; } |
|
397 RESOURCE TBUF r_note_disconnect_print_error { buf = qtn_print_disconnect_error; } |
|
398 RESOURCE TBUF r_note_general_print_error { buf = qtn_print_general_error; } |
|
399 RESOURCE TBUF r_note_connect_print_error { buf = qtn_print_connect_error; } |
|
400 RESOURCE TBUF r_note_imageprint_mmccopyfail { buf = qtn_print_note_mmccopyfail; } |
|
401 |
|
402 RESOURCE ARRAY r_default_printer_selection_popup_texts |
|
403 { |
|
404 items = |
|
405 { |
|
406 LBUF |
|
407 { |
|
408 txt = qtn_print_settings_default_bt; |
|
409 }, |
|
410 LBUF |
|
411 { |
|
412 txt = qtn_print_memory_card; |
|
413 }, |
|
414 LBUF |
|
415 { |
|
416 txt = qtn_print_settings_default_usb; |
|
417 }, |
|
418 LBUF |
|
419 { |
|
420 txt = qtn_print_settings_default_wlan; |
|
421 } |
|
422 }; |
|
423 } |
|
424 |
|
425 RESOURCE DIALOG r_hidden_dialog |
|
426 { |
|
427 flags = EAknWaitNoteFlags | EEikDialogFlagWait; |
|
428 buttons = R_AVKON_SOFTKEYS_CANCEL; |
|
429 items = |
|
430 { |
|
431 DLG_LINE |
|
432 { |
|
433 type = EAknCtNote; |
|
434 id = EGeneralNote; |
|
435 control = AVERELL_NOTE |
|
436 { |
|
437 layout = EWaitLayout; |
|
438 singular_label = qtn_print_progress_prompt_pro; |
|
439 animation = R_QGN_GRAF_WAIT_BAR_ANIM; |
|
440 }; |
|
441 } |
|
442 }; |
|
443 } |
|
444 |
|
445 RESOURCE DIALOG r_startwait_dialog |
|
446 { |
|
447 flags = EAknWaitNoteFlags; |
|
448 buttons = R_AVKON_SOFTKEYS_EMPTY; |
|
449 items = |
|
450 { |
|
451 DLG_LINE |
|
452 { |
|
453 type = EAknCtNote; |
|
454 id = EGeneralNote; |
|
455 control = AVERELL_NOTE |
|
456 { |
|
457 layout = EWaitLayout; |
|
458 singular_label = qtn_print_progress_prompt_pro; |
|
459 animation = R_QGN_GRAF_WAIT_BAR_ANIM; |
|
460 }; |
|
461 } |
|
462 }; |
|
463 } |
|
464 |
|
465 RESOURCE DIALOG r_launch_wlan_wizard_query |
|
466 { |
|
467 flags = EGeneralQueryFlags | EEikDialogFlagNoBorder | EEikDialogFlagNoShadow; |
|
468 buttons = R_AVKON_SOFTKEYS_OK_CANCEL; |
|
469 items= |
|
470 { |
|
471 DLG_LINE |
|
472 { |
|
473 type = EAknCtPopupHeadingPane; |
|
474 id = EAknMessageQueryHeaderId; |
|
475 control = AVKON_HEADING |
|
476 { |
|
477 label = qtn_launch_wlan_wizard_query_header; |
|
478 }; |
|
479 }, |
|
480 DLG_LINE |
|
481 { |
|
482 type = EAknCtMessageQuery; |
|
483 id = EAknMessageQueryContentId; |
|
484 control = AVKON_MESSAGE_QUERY |
|
485 { |
|
486 message = qtn_launch_wlan_wizard_query_msg; |
|
487 }; |
|
488 } |
|
489 }; |
|
490 } |
|
491 |
|
492 // Image print number of copies dialog resource. |
|
493 |
|
494 RESOURCE DIALOG r_noc_query |
|
495 { |
|
496 flags = EGeneralQueryFlags; |
|
497 buttons = R_AVKON_SOFTKEYS_OK_CANCEL; |
|
498 items = |
|
499 { |
|
500 DLG_LINE |
|
501 { |
|
502 type = EAknCtQuery; |
|
503 id = EGeneralQuery; |
|
504 control = AVKON_DATA_QUERY |
|
505 { |
|
506 layout = ENumberLayout; |
|
507 label = qtn_print_settings_noc; |
|
508 control = AVKON_INTEGER_EDWIN |
|
509 { |
|
510 min = 1; |
|
511 max = 999; |
|
512 maxlength = 3; |
|
513 unset_value=1; |
|
514 }; |
|
515 }; |
|
516 } |
|
517 }; |
|
518 } |
|
519 |
|
520 // End of File |