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