|
1 /* |
|
2 * Copyright (c) 2006, 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: Resource definitions for project Image Print UI |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 NAME IMPR |
|
20 |
|
21 #include <eikon.rh> |
|
22 #include <avkon.rsg> |
|
23 #include <avkon.rh> |
|
24 #include <avkon.hrh> |
|
25 #include <avkon.mbg> |
|
26 #include <avkon.loc> |
|
27 #include <AvkonIcons.hrh> |
|
28 #include <appinfo.rh> |
|
29 #include <data_caging_paths_strings.hrh> |
|
30 #include <badef.rh> |
|
31 |
|
32 #include "imageprintui.hrh" |
|
33 #include <imageprintui.loc> // Localisation file |
|
34 |
|
35 |
|
36 RESOURCE BA_RSS_SIGNATURE { signature = 1; } |
|
37 RESOURCE TBUF { buf="IMAGEPRINTAPP"; } |
|
38 |
|
39 // --------------------------------------------------------------------------- |
|
40 // eik_app_info, standard resource for symbian application |
|
41 // This is empty when using avkon's view architecture |
|
42 // --------------------------------------------------------------------------- |
|
43 // |
|
44 |
|
45 RESOURCE EIK_APP_INFO |
|
46 { |
|
47 } |
|
48 |
|
49 // --------------------------------------------------------------------------- |
|
50 // r_empty_view |
|
51 // Empty view resource, shown when the application starts |
|
52 // --------------------------------------------------------------------------- |
|
53 // |
|
54 RESOURCE AVKON_VIEW r_empty_view |
|
55 { |
|
56 menubar = R_AVKON_MENUPANE_EMPTY; |
|
57 cba = R_AVKON_SOFTKEYS_EXIT; |
|
58 } |
|
59 |
|
60 // --------------------------------------------------------------------------- |
|
61 // r_imageprint_softkeys_options_change_exit |
|
62 // Print preview view resource |
|
63 // --------------------------------------------------------------------------- |
|
64 // |
|
65 RESOURCE CBA r_imageprint_softkeys_options_change_exit |
|
66 { |
|
67 flags = 0; |
|
68 buttons = |
|
69 { |
|
70 CBA_BUTTON {id=EAknSoftkeyOptions; txt = text_softkey_option;}, |
|
71 CBA_BUTTON {id=EAknSoftkeyExit; txt = text_softkey_exit;}, |
|
72 CBA_BUTTON {id=ECmdSettingsChange; txt = qtn_msk_change;} |
|
73 }; |
|
74 } |
|
75 |
|
76 // --------------------------------------------------------------------------- |
|
77 // r_settings_view |
|
78 // settings view resource |
|
79 // --------------------------------------------------------------------------- |
|
80 // |
|
81 RESOURCE AVKON_VIEW r_settings_view |
|
82 { |
|
83 menubar = r_settings_view_menubar; |
|
84 cba = r_imageprint_softkeys_options_change_exit; |
|
85 } |
|
86 |
|
87 // --------------------------------------------------------------------------- |
|
88 // r_settings_view_menubar |
|
89 // settings view menu bar |
|
90 // --------------------------------------------------------------------------- |
|
91 // |
|
92 RESOURCE MENU_BAR r_settings_view_menubar |
|
93 { |
|
94 titles = |
|
95 { |
|
96 MENU_TITLE |
|
97 { |
|
98 menu_pane = r_settings_view_menu; |
|
99 txt = " "; |
|
100 } |
|
101 }; |
|
102 } |
|
103 |
|
104 // --------------------------------------------------------------------------- |
|
105 // r_settings_view_menu |
|
106 // settings view menu pane |
|
107 // --------------------------------------------------------------------------- |
|
108 // |
|
109 RESOURCE MENU_PANE r_settings_view_menu |
|
110 { |
|
111 items = |
|
112 { |
|
113 MENU_ITEM |
|
114 { |
|
115 command = ECmdSettingsChange; |
|
116 txt = qtn_usb_opt_change; |
|
117 }, |
|
118 MENU_ITEM |
|
119 { |
|
120 command = ECmdSettingsPrint; |
|
121 txt = qtn_usb_option_print; |
|
122 }, |
|
123 |
|
124 #ifdef __SERIES60_HELP |
|
125 MENU_ITEM |
|
126 { |
|
127 command = ECmdSettingsHelp; |
|
128 txt = qtn_options_help; |
|
129 }, |
|
130 #endif |
|
131 |
|
132 MENU_ITEM |
|
133 { |
|
134 command = EAknCmdExit; |
|
135 txt = qtn_options_exit; |
|
136 } |
|
137 }; |
|
138 } |
|
139 |
|
140 // --------------------------------------------------------------------------- |
|
141 // r_imageprintui_localisable_app_info |
|
142 // settings view menu pane |
|
143 // --------------------------------------------------------------------------- |
|
144 // |
|
145 RESOURCE LOCALISABLE_APP_INFO r_imageprintui_localisable_app_info |
|
146 { |
|
147 short_caption = qtn_usb_title_image_print; |
|
148 caption_and_icon = |
|
149 CAPTION_AND_ICON_INFO |
|
150 { |
|
151 caption = qtn_usb_title_image_print; |
|
152 #ifdef __SCALABLE_ICONS |
|
153 number_of_icons = 1; |
|
154 icon_file = APP_BITMAP_DIR"\\imageprintui_aif.mif"; |
|
155 #else |
|
156 number_of_icons = 2; |
|
157 icon_file = APP_BITMAP_DIR"\\imageprintui_aif.mbm"; |
|
158 #endif // __SCALABLE_ICONS |
|
159 }; |
|
160 } |
|
161 |
|
162 // --------------------------------------------------------------------------- |
|
163 // r_print_progress_note |
|
164 // Resource for print progress dialog |
|
165 // --------------------------------------------------------------------------- |
|
166 // |
|
167 RESOURCE DIALOG r_print_progress_note |
|
168 { |
|
169 flags = EAknProgressNoteFlags; |
|
170 buttons = R_AVKON_SOFTKEYS_CANCEL; |
|
171 items = |
|
172 { |
|
173 DLG_LINE |
|
174 { |
|
175 type = EBitmapCtrl; |
|
176 id = EBrandingBitmap; |
|
177 }, |
|
178 DLG_LINE |
|
179 { |
|
180 type = EAknCtNote; |
|
181 id = EAknNoteProgressBar; |
|
182 control = AVKON_NOTE |
|
183 { |
|
184 layout = EProgressLayout; |
|
185 singular_label = qtn_usb_wait_printing; |
|
186 imageid = EMbmAvkonQgn_note_progress; |
|
187 imagemask = EMbmAvkonQgn_note_progress_mask; |
|
188 }; |
|
189 } |
|
190 }; |
|
191 } |
|
192 |
|
193 // --------------------------------------------------------------------------- |
|
194 // r_connect_usb |
|
195 // Dialog resource for "Connect USB Printer" |
|
196 // --------------------------------------------------------------------------- |
|
197 // |
|
198 RESOURCE DIALOG r_connect_usb |
|
199 { |
|
200 flags = EAknWaitNoteFlags; |
|
201 buttons = R_AVKON_SOFTKEYS_CANCEL; |
|
202 items = |
|
203 { |
|
204 DLG_LINE |
|
205 { |
|
206 type = EAknCtNote; |
|
207 id = EAknNoteProgressBar; |
|
208 control = AVKON_NOTE |
|
209 { |
|
210 layout = EWaitLayout; |
|
211 singular_label = qtn_usb_wait_connect_cable; |
|
212 animation = R_QGN_GRAF_WAIT_BAR_ANIM; |
|
213 }; |
|
214 } |
|
215 }; |
|
216 } |
|
217 |
|
218 // --------------------------------------------------------------------------- |
|
219 // r_connect_usb |
|
220 // Dialog resource for "Connect USB Printer" |
|
221 // --------------------------------------------------------------------------- |
|
222 // |
|
223 RESOURCE DIALOG r_not_connect_printer |
|
224 { |
|
225 flags = EAknWaitNoteFlags; |
|
226 buttons = R_AVKON_SOFTKEYS_CANCEL; |
|
227 items = |
|
228 { |
|
229 DLG_LINE |
|
230 { |
|
231 type = EAknCtNote; |
|
232 id = EAknNoteProgressBar; |
|
233 control = AVKON_NOTE |
|
234 { |
|
235 layout = EWaitLayout; |
|
236 singular_label = qtn_usb_wait_connect_cable_compatible; |
|
237 animation = R_QGN_GRAF_WAIT_BAR_ANIM; |
|
238 }; |
|
239 } |
|
240 }; |
|
241 } |
|
242 |
|
243 // --------------------------------------------------------------------------- |
|
244 // r_cancel_printing_dialog |
|
245 // Dialog resource for "Cancel printing" |
|
246 // --------------------------------------------------------------------------- |
|
247 // |
|
248 RESOURCE DIALOG r_cancel_printing_dialog |
|
249 { |
|
250 flags = EAknWaitNoteFlags; |
|
251 buttons = R_AVKON_SOFTKEYS_EMPTY; |
|
252 items= |
|
253 { |
|
254 DLG_LINE |
|
255 { |
|
256 type = EAknCtNote; |
|
257 id = EGeneralNote; |
|
258 control= AVKON_NOTE |
|
259 { |
|
260 layout = EWaitLayout; |
|
261 singular_label = qtn_usb_wait_cancelling; |
|
262 animation =R_QGN_GRAF_WAIT_BAR_ANIM; |
|
263 }; |
|
264 } |
|
265 }; |
|
266 } |
|
267 |
|
268 // |
|
269 RESOURCE LISTBOX r_usb_print_mode_setting_editor |
|
270 { |
|
271 flags = EEikListBoxMultipleSelection; |
|
272 } |
|
273 |
|
274 //----------------------------------------------------------------------------- |
|
275 // |
|
276 // r_usb_print_mode_setting_page |
|
277 // Setting page for setting the USB mode |
|
278 // |
|
279 //----------------------------------------------------------------------------- |
|
280 // |
|
281 RESOURCE AVKON_SETTING_PAGE r_usb_print_mode_setting_page |
|
282 { |
|
283 label = ""; |
|
284 hint_text = " "; |
|
285 type = EAknSetListBox; |
|
286 editor_resource_id = r_usb_print_mode_setting_editor; |
|
287 } |
|
288 |
|
289 // --------------------------------------------------------------------------- |
|
290 // Layout strings |
|
291 // --------------------------------------------------------------------------- |
|
292 // |
|
293 RESOURCE TBUF r_usb_print_layout |
|
294 { |
|
295 buf = qtn_usb_print_layout; |
|
296 } |
|
297 |
|
298 RESOURCE TBUF r_usb_print_layout_default |
|
299 { |
|
300 buf = qtn_usb_print_layout_default; |
|
301 } |
|
302 |
|
303 RESOURCE TBUF r_usb_print_layout_1_up |
|
304 { |
|
305 buf = qtn_usb_print_layout_1_up; |
|
306 } |
|
307 |
|
308 RESOURCE TBUF r_usb_print_layout_2_up |
|
309 { |
|
310 buf = qtn_usb_print_layout_2_up; |
|
311 } |
|
312 |
|
313 RESOURCE TBUF r_usb_print_layout_4_up |
|
314 { |
|
315 buf = qtn_usb_print_layout_4_up; |
|
316 } |
|
317 |
|
318 RESOURCE TBUF r_usb_print_layout_6_up |
|
319 { |
|
320 buf = qtn_usb_print_layout_6_up; |
|
321 } |
|
322 |
|
323 RESOURCE TBUF r_usb_print_layout_9_up |
|
324 { |
|
325 buf = qtn_usb_print_layout_9_up; |
|
326 } |
|
327 |
|
328 RESOURCE TBUF r_usb_print_layout_borderless |
|
329 { |
|
330 buf = qtn_usb_print_layout_borderless; |
|
331 } |
|
332 |
|
333 // --------------------------------------------------------------------------- |
|
334 // Paper size strings |
|
335 // --------------------------------------------------------------------------- |
|
336 // |
|
337 |
|
338 RESOURCE TBUF r_usb_print_paper_size |
|
339 { |
|
340 buf = qtn_usb_print_paper_size; |
|
341 } |
|
342 |
|
343 RESOURCE TBUF r_usb_print_paper_size_automatic |
|
344 { |
|
345 buf = qtn_usb_print_paper_size_automatic; |
|
346 } |
|
347 |
|
348 RESOURCE TBUF r_usb_print_paper_size_a4 |
|
349 { |
|
350 buf = qtn_usb_print_paper_size_a4; |
|
351 } |
|
352 |
|
353 RESOURCE TBUF r_usb_print_paper_size_a6 |
|
354 { |
|
355 buf = qtn_usb_print_paper_size_a6; |
|
356 } |
|
357 |
|
358 RESOURCE TBUF r_usb_print_paper_size_inch |
|
359 { |
|
360 buf = qtn_usb_print_paper_size_inch; |
|
361 } |
|
362 |
|
363 RESOURCE TBUF r_usb_print_paper_size_card |
|
364 { |
|
365 buf = qtn_usb_print_paper_size_card; |
|
366 } |
|
367 |
|
368 RESOURCE TBUF r_usb_print_paper_size_letter |
|
369 { |
|
370 buf = qtn_usb_print_paper_size_letter; |
|
371 } |
|
372 |
|
373 // --------------------------------------------------------------------------- |
|
374 // Quality strings |
|
375 // --------------------------------------------------------------------------- |
|
376 // |
|
377 |
|
378 RESOURCE TBUF r_usb_print_quality |
|
379 { |
|
380 buf = qtn_usb_print_quality; |
|
381 } |
|
382 |
|
383 RESOURCE TBUF r_usb_print_quality_default |
|
384 { |
|
385 buf = qtn_usb_print_quality_default; |
|
386 } |
|
387 |
|
388 RESOURCE TBUF r_usb_print_quality_high |
|
389 { |
|
390 buf = qtn_usb_print_quality_high; |
|
391 } |
|
392 |
|
393 RESOURCE TBUF r_usb_print_quality_normal |
|
394 { |
|
395 buf = qtn_usb_print_quality_normal; |
|
396 } |
|
397 |
|
398 RESOURCE TBUF r_usb_print_quality_draft |
|
399 { |
|
400 buf = qtn_usb_print_quality_draft; |
|
401 } |
|
402 |
|
403 |
|
404 // --------------------------------------------------------------------------- |
|
405 // Printing Error strings |
|
406 // --------------------------------------------------------------------------- |
|
407 // |
|
408 |
|
409 RESOURCE TBUF r_error_unable_to_connect |
|
410 { |
|
411 buf = qtn_usb_error_unable_to_connect; |
|
412 } |
|
413 RESOURCE TBUF r_error_printer_busy |
|
414 { |
|
415 buf = qtn_usb_error_printer_busy; |
|
416 } |
|
417 RESOURCE TBUF r_error_connection_lost |
|
418 { |
|
419 buf = qtn_usb_error_connection_lost; |
|
420 } |
|
421 RESOURCE TBUF r_error_general |
|
422 { |
|
423 buf = qtn_usb_error_in_printing; |
|
424 } |
|
425 RESOURCE TBUF r_error_check_status |
|
426 { |
|
427 buf = qtn_usb_error_check_status; |
|
428 } |
|
429 RESOURCE TBUF r_error_out_of_paper |
|
430 { |
|
431 buf = qtn_usb_error_out_of_paper; |
|
432 } |
|
433 RESOURCE TBUF r_error_out_of_ink |
|
434 { |
|
435 buf = qtn_usb_error_out_of_ink; |
|
436 } |
|
437 RESOURCE TBUF r_error_ink_low |
|
438 { |
|
439 buf = qtn_usb_error_ink_low; |
|
440 } |
|
441 RESOURCE TBUF r_error_paper_jam |
|
442 { |
|
443 buf = qtn_usb_error_paper_jam; |
|
444 } |
|
445 |
|
446 |
|
447 // --------------------------------------------------------------------------- |
|
448 // Other error strings |
|
449 // --------------------------------------------------------------------------- |
|
450 // |
|
451 |
|
452 RESOURCE TBUF r_error_file_not_supported |
|
453 { |
|
454 buf = qtn_usb_error_file_not_supported; |
|
455 } |
|
456 RESOURCE TBUF r_error_file_not_found |
|
457 { |
|
458 buf = qtn_usb_error_file_not_found; |
|
459 } |
|
460 |
|
461 RESOURCE TBUF r_error_unsupported_files_removed |
|
462 { |
|
463 buf = qtn_usb_error_unsupported_files_removed; |
|
464 } |
|
465 |
|
466 RESOURCE TBUF r_info__select_new_images |
|
467 { |
|
468 buf = qtn_usb_info_select_new_images; |
|
469 } |
|
470 RESOURCE TBUF r_info_app_in_use |
|
471 { |
|
472 buf = qtn_usb_info_app_in_use; |
|
473 } |
|
474 |
|
475 |
|
476 RESOURCE TBUF r_change_value {buf = qtn_usb_opt_change;} |
|
477 RESOURCE TBUF r_printing {buf = qtn_usb_option_print;} |
|
478 RESOURCE TBUF r_help {buf = qtn_options_help;} |
|
479 RESOURCE TBUF r_qtn_print_progress_note_title { buf = qtn_usb_wait_printing; } |
|
480 |
|
481 |
|
482 // --------------------------------------------------------------------------- |
|
483 // Note resources |
|
484 // --------------------------------------------------------------------------- |
|
485 // |
|
486 |
|
487 // modified note resource |
|
488 RESOURCE DIALOG r_progress_note |
|
489 { |
|
490 flags = EAknProgressNoteFlags; |
|
491 buttons = R_AVKON_SOFTKEYS_CANCEL; |
|
492 items = |
|
493 { |
|
494 DLG_LINE |
|
495 { |
|
496 type = EAknCtNote; |
|
497 id = EAknCtNote; |
|
498 control = AVERELL_NOTE |
|
499 { |
|
500 layout = EProgressLayout; |
|
501 singular_label = qtn_usb_wait_printing; |
|
502 imagefile = AVKON_ICON_FILE; |
|
503 imageid = EMbmAvkonQgn_note_progress; |
|
504 imagemask = EMbmAvkonQgn_note_progress_mask; |
|
505 }; |
|
506 } |
|
507 }; |
|
508 } |