|
1 /* |
|
2 * Copyright (c) 2009 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 |
|
20 NAME MATT |
|
21 |
|
22 #include <eikon.rh> |
|
23 #include <eikon.rsg> |
|
24 #include <avkon.rh> |
|
25 #include <avkon.rsg> |
|
26 #include <avkon.mbg> |
|
27 #include <CommonDialogs.hrh> |
|
28 #include <CommonDialogs.rh> |
|
29 #include <pathconfiguration.hrh> |
|
30 |
|
31 #include "SG.hrh" |
|
32 #include "SGStd.h" |
|
33 #include <data_caging_paths_strings.hrh> |
|
34 #include <appinfo.rh> |
|
35 |
|
36 |
|
37 // --------------------------------------------------------- |
|
38 // |
|
39 // Define the resource file signature |
|
40 // This resource should be empty. |
|
41 // |
|
42 // --------------------------------------------------------- |
|
43 // |
|
44 RESOURCE RSS_SIGNATURE { } |
|
45 |
|
46 // --------------------------------------------------------- |
|
47 // |
|
48 // Default Document Name |
|
49 // |
|
50 // --------------------------------------------------------- |
|
51 // |
|
52 RESOURCE TBUF r_default_document_name { buf=""; } |
|
53 |
|
54 // --------------------------------------------------------- |
|
55 // |
|
56 // Define default menu and CBA key. |
|
57 // |
|
58 // --------------------------------------------------------- |
|
59 // |
|
60 RESOURCE EIK_APP_INFO |
|
61 { |
|
62 //status_pane = r_screengrabber_status_pane; |
|
63 //menubar = r_screengrabber_menubar; |
|
64 //cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT; |
|
65 } |
|
66 |
|
67 |
|
68 //---------------------------------------------------- |
|
69 // |
|
70 // r_screengrabber_hotkeys |
|
71 // |
|
72 //---------------------------------------------------- |
|
73 // |
|
74 RESOURCE HOTKEYS r_screengrabber_hotkeys |
|
75 { |
|
76 control= |
|
77 { |
|
78 HOTKEY { command=EAknCmdExit; key='e'; } |
|
79 }; |
|
80 } |
|
81 |
|
82 |
|
83 //---------------------------------------------------- |
|
84 // |
|
85 // r_screengrabber_view1 |
|
86 // |
|
87 //---------------------------------------------------- |
|
88 // |
|
89 RESOURCE AVKON_VIEW r_screengrabber_view1 |
|
90 { |
|
91 hotkeys=r_screengrabber_hotkeys; |
|
92 menubar=r_screengrabber_menubar_view1; |
|
93 cba=R_AVKON_SOFTKEYS_OPTIONS_EXIT; |
|
94 } |
|
95 |
|
96 //---------------------------------------------------- |
|
97 // |
|
98 // r_screengrabber_menubar_view1 |
|
99 // |
|
100 //---------------------------------------------------- |
|
101 // |
|
102 RESOURCE MENU_BAR r_screengrabber_menubar_view1 |
|
103 { |
|
104 titles= |
|
105 { |
|
106 MENU_TITLE { menu_pane=r_screengrabber_app_menu; txt="App"; }, |
|
107 MENU_TITLE { menu_pane=r_screengrabber_view1_menu; txt="View"; } |
|
108 }; |
|
109 } |
|
110 |
|
111 //---------------------------------------------------- |
|
112 // |
|
113 // r_screengrabber_view1_menu |
|
114 // |
|
115 //---------------------------------------------------- |
|
116 // |
|
117 |
|
118 RESOURCE MENU_PANE r_screengrabber_view1_menu |
|
119 { |
|
120 items= |
|
121 { |
|
122 MENU_ITEM { command=EScreenGrabberCmdSendToBackground; txt="Send to background"; }, |
|
123 MENU_ITEM { command=EScreenGrabberCmdScreenResolution; cascade = r_screengrabber_resolution_submenu; txt="Screen resolution"; }, |
|
124 MENU_ITEM { command=EScreenGrabberCmdSettings; txt="Settings"; }, |
|
125 MENU_ITEM { command=EScreenGrabberCmdAbout; txt="About"; }, |
|
126 MENU_ITEM { command=EAknCmdExit; txt="Exit"; } |
|
127 }; |
|
128 } |
|
129 |
|
130 RESOURCE MENU_PANE r_screengrabber_resolution_submenu |
|
131 { |
|
132 items= |
|
133 { |
|
134 }; |
|
135 } |
|
136 |
|
137 //---------------------------------------------------- |
|
138 // |
|
139 // r_screengrabber_view2 |
|
140 // |
|
141 //---------------------------------------------------- |
|
142 // |
|
143 RESOURCE CBA r_screengrabber_softkeys_view2 |
|
144 { |
|
145 buttons = |
|
146 { |
|
147 CBA_BUTTON {id=EAknSoftkeyOptions; txt = "Options" ;}, |
|
148 CBA_BUTTON {id=EScreenGrabberCmdSettingsBack; txt = "Back" ; } |
|
149 }; |
|
150 } |
|
151 |
|
152 RESOURCE AVKON_VIEW r_screengrabber_view2 |
|
153 { |
|
154 hotkeys=r_screengrabber_hotkeys; |
|
155 menubar=r_screengrabber_menubar_view2; |
|
156 cba=r_screengrabber_softkeys_view2; |
|
157 } |
|
158 |
|
159 //---------------------------------------------------- |
|
160 // |
|
161 // r_screengrabber_menubar_view2 |
|
162 // |
|
163 //---------------------------------------------------- |
|
164 // |
|
165 RESOURCE MENU_BAR r_screengrabber_menubar_view2 |
|
166 { |
|
167 titles= |
|
168 { |
|
169 MENU_TITLE { menu_pane=r_screengrabber_app_menu; txt="App"; }, |
|
170 MENU_TITLE { menu_pane=r_screengrabber_view2_menu; txt="View"; } |
|
171 }; |
|
172 } |
|
173 |
|
174 //---------------------------------------------------- |
|
175 // |
|
176 // r_screengrabber_view2_menu |
|
177 // ?description |
|
178 // |
|
179 //---------------------------------------------------- |
|
180 // |
|
181 RESOURCE MENU_PANE r_screengrabber_view2_menu |
|
182 { |
|
183 items= |
|
184 { |
|
185 MENU_ITEM { command=EScreenGrabberCmdSettingsChange; txt="Change"; }, |
|
186 MENU_ITEM { command=EScreenGrabberCmdSettingsExit; txt="Exit"; } |
|
187 }; |
|
188 } |
|
189 |
|
190 //---------------------------------------------------- |
|
191 // |
|
192 // r_screengrabber_app_menu |
|
193 // |
|
194 //---------------------------------------------------- |
|
195 // |
|
196 RESOURCE MENU_PANE r_screengrabber_app_menu |
|
197 { |
|
198 items= |
|
199 { |
|
200 }; |
|
201 } |
|
202 |
|
203 |
|
204 //---------------------------------------------------- |
|
205 // |
|
206 // r_screengrabber_settinglist |
|
207 // |
|
208 //---------------------------------------------------- |
|
209 // |
|
210 RESOURCE AVKON_SETTING_ITEM_LIST r_screengrabber_settinglist |
|
211 { |
|
212 title = "Settings"; |
|
213 initial_number = 1; |
|
214 items = |
|
215 { |
|
216 AVKON_SETTING_ITEM |
|
217 { |
|
218 identifier = ESettingListCaptureModeSelection; |
|
219 name = "Capture mode"; |
|
220 setting_page_resource = r_capturemodeselection_setting_page; |
|
221 associated_resource = r_capturemodeselection_setting_texts; |
|
222 }, |
|
223 |
|
224 AVKON_SETTING_ITEM |
|
225 { |
|
226 identifier = ESettingListSingleCaptureHotkeySelection; |
|
227 name = "Capture hotkey"; |
|
228 setting_page_resource = r_hotkeyselection_setting_page; |
|
229 associated_resource = r_hotkeyselection_setting_texts; |
|
230 }, |
|
231 AVKON_SETTING_ITEM |
|
232 { |
|
233 identifier = ESettingListSingleCaptureImageFormatSelection; |
|
234 name = "Image format"; |
|
235 setting_page_resource = r_imageformatselection_setting_page; |
|
236 associated_resource = r_imageformatselection_setting_texts; |
|
237 }, |
|
238 AVKON_SETTING_ITEM |
|
239 { |
|
240 identifier = ESettingListSingleCaptureMemorySelection; |
|
241 name = "Memory in use"; |
|
242 setting_page_resource = r_memoryselection_dialog; |
|
243 }, |
|
244 AVKON_SETTING_ITEM |
|
245 { |
|
246 identifier = ESettingListSingleCaptureFileNameSelection; |
|
247 name = "File name"; |
|
248 setting_page_resource = r_filenameselection_setting_page; |
|
249 }, |
|
250 |
|
251 AVKON_SETTING_ITEM |
|
252 { |
|
253 identifier = ESettingListSequantialCaptureHotkeySelection; |
|
254 name = "Start/stop hotkey"; |
|
255 setting_page_resource = r_hotkeyselection_setting_page; |
|
256 associated_resource = r_hotkeyselection_setting_texts; |
|
257 }, |
|
258 AVKON_SETTING_ITEM |
|
259 { |
|
260 identifier = ESettingListSequantialCaptureImageFormatSelection; |
|
261 name = "Image format"; |
|
262 setting_page_resource = r_imageformatselection_setting_page; |
|
263 associated_resource = r_imageformatselection_setting_texts; |
|
264 }, |
|
265 AVKON_SETTING_ITEM |
|
266 { |
|
267 identifier = ESettingListSequantialCaptureDelaySelection; |
|
268 name = "Delay (ms)"; |
|
269 setting_page_resource = r_delayselection_setting_page; |
|
270 }, |
|
271 AVKON_SETTING_ITEM |
|
272 { |
|
273 identifier = ESettingListSequantialCaptureMemorySelection; |
|
274 name = "Memory in use"; |
|
275 setting_page_resource = r_memoryselection_dialog; |
|
276 }, |
|
277 AVKON_SETTING_ITEM |
|
278 { |
|
279 identifier = ESettingListSequantialCaptureFileNameSelection; |
|
280 name = "File name"; |
|
281 setting_page_resource = r_filenameselection_setting_page; |
|
282 }, |
|
283 |
|
284 AVKON_SETTING_ITEM |
|
285 { |
|
286 identifier = ESettingListVideoCaptureHotkeySelection; |
|
287 name = "Start/stop hotkey"; |
|
288 setting_page_resource = r_hotkeyselection_setting_page; |
|
289 associated_resource = r_hotkeyselection_setting_texts; |
|
290 }, |
|
291 AVKON_SETTING_ITEM |
|
292 { |
|
293 identifier = ESettingListVideoCaptureVideoFormatSelection; |
|
294 name = "Video format"; |
|
295 setting_page_resource = r_videoformatselection_setting_page; |
|
296 associated_resource = r_videoformatselection_setting_texts; |
|
297 }, |
|
298 AVKON_SETTING_ITEM |
|
299 { |
|
300 identifier = ESettingListVideoCaptureMemorySelection; |
|
301 name = "Memory in use"; |
|
302 setting_page_resource = r_memoryselection_dialog; |
|
303 }, |
|
304 AVKON_SETTING_ITEM |
|
305 { |
|
306 identifier = ESettingListVideoCaptureFileNameSelection; |
|
307 name = "File name"; |
|
308 setting_page_resource = r_filenameselection_setting_page; |
|
309 } |
|
310 }; |
|
311 } |
|
312 |
|
313 RESOURCE POPUP_SETTING_LIST r_popup_setting_list_editor |
|
314 { |
|
315 } |
|
316 |
|
317 // |
|
318 // resources for capture mode selection |
|
319 // |
|
320 RESOURCE AVKON_SETTING_PAGE r_capturemodeselection_setting_page |
|
321 { |
|
322 number = EAknSettingPageNoOrdinalDisplayed; |
|
323 type = EAknCtPopupSettingList; |
|
324 editor_resource_id = r_popup_setting_list_editor; |
|
325 } |
|
326 RESOURCE AVKON_POPUP_SETTING_TEXTS r_capturemodeselection_setting_texts |
|
327 { |
|
328 setting_texts_resource = r_capturemodeselection_text_array; |
|
329 } |
|
330 RESOURCE ARRAY r_capturemodeselection_text_array |
|
331 { |
|
332 items = |
|
333 { |
|
334 AVKON_ENUMERATED_TEXT { value=ECaptureModeSingleCapture; text = "Single capture"; }, |
|
335 AVKON_ENUMERATED_TEXT { value=ECaptureModeSequantialCapture; text = "Sequantial capture"; }, |
|
336 AVKON_ENUMERATED_TEXT { value=ECaptureModeVideoCapture; text = "Video capture"; } |
|
337 }; |
|
338 } |
|
339 |
|
340 // |
|
341 // generic resources for hotkey selection |
|
342 // |
|
343 RESOURCE AVKON_SETTING_PAGE r_hotkeyselection_setting_page |
|
344 { |
|
345 number = EAknSettingPageNoOrdinalDisplayed; |
|
346 type = EAknCtPopupSettingList; |
|
347 editor_resource_id = r_popup_setting_list_editor; |
|
348 } |
|
349 RESOURCE AVKON_POPUP_SETTING_TEXTS r_hotkeyselection_setting_texts |
|
350 { |
|
351 setting_texts_resource = r_hotkeyselection_text_array; |
|
352 } |
|
353 RESOURCE ARRAY r_hotkeyselection_text_array |
|
354 { |
|
355 items = |
|
356 { |
|
357 AVKON_ENUMERATED_TEXT { value=EHotkeySendKey; text = "Send key"; }, |
|
358 AVKON_ENUMERATED_TEXT { value=EHotkeyShiftStar; text = "SHIFT+*"; }, |
|
359 AVKON_ENUMERATED_TEXT { value=EHotkeyHashStar; text = "HASH+*"; }, |
|
360 AVKON_ENUMERATED_TEXT { value=EHotkeyShiftMenu; text = "SHIFT+Menu"; }, |
|
361 AVKON_ENUMERATED_TEXT { value=EHotkeyPowerKey; text = "Power key"; }, |
|
362 AVKON_ENUMERATED_TEXT { value=EHotkeySideKey; text = "Side key"; }, |
|
363 AVKON_ENUMERATED_TEXT { value=EHotkeyCameraKey1; text = "Camera key #1"; }, |
|
364 AVKON_ENUMERATED_TEXT { value=EHotkeyCameraKey2; text = "Camera key #2"; }, |
|
365 AVKON_ENUMERATED_TEXT { value=EHotkeyPOC; text = "POC"; } |
|
366 }; |
|
367 } |
|
368 |
|
369 // |
|
370 // generic resources for image format selection |
|
371 // |
|
372 RESOURCE AVKON_SETTING_PAGE r_imageformatselection_setting_page |
|
373 { |
|
374 number = EAknSettingPageNoOrdinalDisplayed; |
|
375 type = EAknCtPopupSettingList; |
|
376 editor_resource_id = r_popup_setting_list_editor; |
|
377 } |
|
378 RESOURCE AVKON_POPUP_SETTING_TEXTS r_imageformatselection_setting_texts |
|
379 { |
|
380 setting_texts_resource = r_imageformatselection_text_array; |
|
381 } |
|
382 RESOURCE ARRAY r_imageformatselection_text_array |
|
383 { |
|
384 items = |
|
385 { |
|
386 AVKON_ENUMERATED_TEXT { value=EImageFormatPNG; text = "PNG"; }, |
|
387 AVKON_ENUMERATED_TEXT { value=EImageFormatJPGHQ; text = "JPEG high qual."; }, |
|
388 AVKON_ENUMERATED_TEXT { value=EImageFormatJPGLQ; text = "JPEG low qual."; }, |
|
389 AVKON_ENUMERATED_TEXT { value=EImageFormatBMP; text = "BMP"; }, |
|
390 AVKON_ENUMERATED_TEXT { value=EImageFormatGIF; text = "GIF"; }, |
|
391 AVKON_ENUMERATED_TEXT { value=EImageFormatMBM; text = "MBM"; } |
|
392 }; |
|
393 } |
|
394 |
|
395 // |
|
396 // generic resources for video format selection |
|
397 // |
|
398 RESOURCE AVKON_SETTING_PAGE r_videoformatselection_setting_page |
|
399 { |
|
400 number = EAknSettingPageNoOrdinalDisplayed; |
|
401 type = EAknCtPopupSettingList; |
|
402 editor_resource_id = r_popup_setting_list_editor; |
|
403 } |
|
404 RESOURCE AVKON_POPUP_SETTING_TEXTS r_videoformatselection_setting_texts |
|
405 { |
|
406 setting_texts_resource = r_videoformatselection_text_array; |
|
407 } |
|
408 RESOURCE ARRAY r_videoformatselection_text_array |
|
409 { |
|
410 items = |
|
411 { |
|
412 AVKON_ENUMERATED_TEXT { value=EVideoFormatAnimatedGIF; text = "Animated GIF"; } |
|
413 }; |
|
414 } |
|
415 |
|
416 // |
|
417 // generic resources for memory selection |
|
418 // |
|
419 RESOURCE MEMORYSELECTIONDIALOG r_memoryselection_dialog |
|
420 { |
|
421 title = "Memory in use"; |
|
422 locations = |
|
423 { |
|
424 LOCATION |
|
425 { |
|
426 root_path = text_phone_memory_root_path; |
|
427 default_folder = text_images_path; |
|
428 }, |
|
429 LOCATION |
|
430 { |
|
431 root_path = text_memory_card_root_path; |
|
432 default_folder = text_images_path; |
|
433 } |
|
434 }; |
|
435 } |
|
436 |
|
437 // |
|
438 // generic resources for filename selection |
|
439 // |
|
440 RESOURCE AVKON_SETTING_PAGE r_filenameselection_setting_page |
|
441 { |
|
442 type = EEikCtEdwin; |
|
443 editor_resource_id = r_filename_text_editor; |
|
444 } |
|
445 |
|
446 RESOURCE EDWIN r_filename_text_editor |
|
447 { |
|
448 lines = 0; // expanding to multiple rows |
|
449 maxlength = 63; |
|
450 flags = EEikEdwinNoLineOrParaBreaks; |
|
451 } |
|
452 |
|
453 // |
|
454 // generic resources for delay selection |
|
455 // |
|
456 RESOURCE AVKON_SETTING_PAGE r_delayselection_setting_page |
|
457 { |
|
458 type = EAknCtIntegerEdwin; |
|
459 editor_resource_id = r_delay_integer_editor; |
|
460 } |
|
461 |
|
462 RESOURCE AVKON_INTEGER_EDWIN r_delay_integer_editor |
|
463 { |
|
464 maxlength = 6; |
|
465 min = 0; |
|
466 max = 999999; |
|
467 } |
|
468 |
|
469 // |
|
470 // --------------------------------------------------------- |
|
471 // |
|
472 |
|
473 RESOURCE DIALOG r_my_general_confirmation_query |
|
474 { |
|
475 flags = EGeneralQueryFlags; |
|
476 buttons = R_AVKON_SOFTKEYS_YES_NO; |
|
477 items = |
|
478 { |
|
479 DLG_LINE |
|
480 { |
|
481 type = EAknCtQuery; |
|
482 id = EGeneralQuery; |
|
483 control = AVKON_CONFIRMATION_QUERY |
|
484 { |
|
485 layout = EConfirmationQueryLayout; |
|
486 }; |
|
487 } |
|
488 }; |
|
489 } |
|
490 |
|
491 |
|
492 // --------------------------------------------------------- |
|
493 // |
|
494 // r_screengrabber_about_dialog |
|
495 // About dialog - show version and copyright info etc. |
|
496 // |
|
497 // --------------------------------------------------------- |
|
498 // |
|
499 |
|
500 RESOURCE DIALOG r_screengrabber_about_dialog |
|
501 { |
|
502 flags = EGeneralQueryFlags | EEikDialogFlagNoBorder | EEikDialogFlagNoShadow; |
|
503 buttons = R_AVKON_SOFTKEYS_OK_EMPTY; |
|
504 items= |
|
505 { |
|
506 DLG_LINE |
|
507 { |
|
508 type = EAknCtPopupHeadingPane; |
|
509 id = EAknMessageQueryHeaderId; |
|
510 control = AVKON_HEADING |
|
511 { |
|
512 label = "About Scr.Grabber"; |
|
513 headinglayout = R_AVKON_WML_SIGN_QUERY_HEADING_PANE; |
|
514 }; |
|
515 }, |
|
516 DLG_LINE |
|
517 { |
|
518 type = EAknCtMessageQuery; |
|
519 id = EAknMessageQueryContentId; |
|
520 control = AVKON_MESSAGE_QUERY |
|
521 { |
|
522 message = "Version 4.2.0 - 14th May 2009. Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies). All rights reserved. Licensed under Eclipse Public License v1.0."; |
|
523 }; |
|
524 } |
|
525 }; |
|
526 } |
|
527 |
|
528 // --------------------------------------------------------- |
|
529 // |
|
530 // New framework: |
|
531 // Secure platform and scalable UI changes |
|
532 // |
|
533 // --------------------------------------------------------- |
|
534 // |
|
535 RESOURCE LOCALISABLE_APP_INFO r_screengrabber_localisable_app_info |
|
536 { |
|
537 short_caption = "Scr.Grabber"; |
|
538 caption_and_icon = |
|
539 CAPTION_AND_ICON_INFO |
|
540 { |
|
541 caption = "ScreenGrabber"; |
|
542 |
|
543 number_of_icons = 1; |
|
544 |
|
545 // Note for ROM-based apps it is recommended to add the drive letter |
|
546 // icon_file = "z:"APP_BITMAP_DIR"\\myapp_aif.mif"; |
|
547 icon_file = APP_BITMAP_DIR"\\screengrabber_aif.mif"; |
|
548 }; |
|
549 } |
|
550 |