|
1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 NAME TVID |
|
17 |
|
18 #include <techview/eikon.rh> |
|
19 |
|
20 #include "TImageViewer.hrh" |
|
21 |
|
22 #include <techview/eikon.rsg> |
|
23 |
|
24 RESOURCE RSS_SIGNATURE { } |
|
25 |
|
26 RESOURCE TBUF { buf=""; } |
|
27 |
|
28 RESOURCE EIK_APP_INFO |
|
29 { |
|
30 menubar=r_video_menubar; |
|
31 hotkeys=r_video_hotkeys; |
|
32 } |
|
33 |
|
34 RESOURCE HOTKEYS r_video_hotkeys |
|
35 { |
|
36 control= |
|
37 { |
|
38 HOTKEY { command=EVideoCmdSaveAs; key='a'; }, |
|
39 HOTKEY { command=EVideoCmdBackgroundColor; key='b'; }, |
|
40 HOTKEY { command=EVideoCmdDisplayMode; key='d'; }, |
|
41 HOTKEY { command=EEikCmdExit; key='e'; }, |
|
42 HOTKEY { command=EVideoCmdExtractFrame; key='f'; }, |
|
43 HOTKEY { command=EVideoCmdFrameInfo; key='i'; }, |
|
44 HOTKEY { command=EVideoCmdMask; key='k'; }, |
|
45 HOTKEY { command=EVideoCmdZoomIn; key='m'; }, |
|
46 HOTKEY { command=EVideoCmdFineZoomIn; key='n'; }, |
|
47 HOTKEY { command=EVideoCmdOpenFile; key='o'; }, |
|
48 HOTKEY { command=EVideoCmdPlay; key='p'; }, |
|
49 HOTKEY { command=EVideoCmdRotateClockwise; key='q'; }, |
|
50 HOTKEY { command=EVideoCmdRefresh; key='r'; }, |
|
51 HOTKEY { command=EVideoCmdStream; key='s'; }, |
|
52 HOTKEY { command=EVideoCmdTest; key='t'; }, |
|
53 HOTKEY { command=EVideoCmdMirrorHorizontalAxis; key='w'; } |
|
54 }; |
|
55 shift_control= |
|
56 { |
|
57 HOTKEY { command=EVideoCmdExtractStreamedFrame; key='f'; }, |
|
58 HOTKEY { command=EVideoCmdZoomOut; key='m'; }, |
|
59 HOTKEY { command=EVideoCmdFineZoomOut; key='n'; }, |
|
60 HOTKEY { command=EVideoCmdRotateAntiClockwise; key='q'; }, |
|
61 HOTKEY { command=EVideoCmdDecoderOptions; key='o'; }, |
|
62 HOTKEY { command=EVideoCmdExtension; key='p'; }, |
|
63 HOTKEY { command=EVideoCmdMirrorVerticalAxis; key='w'; } |
|
64 }; |
|
65 } |
|
66 |
|
67 RESOURCE MENU_BAR r_video_menubar |
|
68 { |
|
69 titles= |
|
70 { |
|
71 MENU_TITLE { menu_pane=r_video_file_menu; txt="File"; }, |
|
72 MENU_TITLE { menu_pane=r_video_view_menu; txt="View"; }, |
|
73 MENU_TITLE { menu_pane=r_video_clip_menu; txt="Clip"; }, |
|
74 MENU_TITLE { menu_pane=r_video_test_menu; txt="Test"; } |
|
75 }; |
|
76 } |
|
77 |
|
78 RESOURCE MENU_PANE r_video_file_menu |
|
79 { |
|
80 items= |
|
81 { |
|
82 MENU_ITEM { command=EVideoCmdOpenFile; txt="Open file…"; }, |
|
83 MENU_ITEM { command=EVideoCmdOpenOtaFile; txt="Open Ota file…"; }, |
|
84 MENU_ITEM { command=EVideoCmdOpenWbmpFile; txt="Open Wbmp file…"; }, |
|
85 MENU_ITEM { command=EVideoCmdOpenFolder; txt="Open folder…"; }, |
|
86 MENU_ITEM { command=EVideoCmdSaveAs; txt="Save as…"; flags=EEikMenuItemSeparatorAfter; }, |
|
87 MENU_ITEM { command=EEikCmdExit; txt="Close"; } |
|
88 }; |
|
89 } |
|
90 |
|
91 RESOURCE MENU_PANE r_video_view_menu |
|
92 { |
|
93 items= |
|
94 { |
|
95 MENU_ITEM { command=EVideoCmdMask; txt="Toggle mask"; }, |
|
96 MENU_ITEM { cascade=r_video_zoom_menu; txt="Zoom"; }, |
|
97 MENU_ITEM { cascade=r_video_operate_menu; txt="Operate After Decode"; }, |
|
98 MENU_ITEM { command=EVideoCmdDisplayMode; txt="Display mode…"; }, |
|
99 MENU_ITEM { command=EVideoCmdBackgroundColor; txt="Background color…"; }, |
|
100 MENU_ITEM { command=EVideoCmdFrameInfo; txt="Information…"; }, |
|
101 MENU_ITEM { command=EVideoCmdUseExtensions; flags=EEikMenuItemCheckBox; txt="Use Extensions"; }, |
|
102 MENU_ITEM { command=EVideoCmdExtension; txt="Setup Extensions…"; } |
|
103 }; |
|
104 } |
|
105 |
|
106 RESOURCE MENU_PANE r_video_zoom_menu |
|
107 { |
|
108 items= |
|
109 { |
|
110 MENU_ITEM { command=EVideoCmdZoomIn; txt="Zoom in"; }, |
|
111 MENU_ITEM { command=EVideoCmdZoomOut; txt="Zoom out"; } |
|
112 }; |
|
113 } |
|
114 |
|
115 RESOURCE MENU_PANE r_video_operate_menu |
|
116 { |
|
117 items= |
|
118 { |
|
119 MENU_ITEM { command=EVideoCmdRotateClockwise; txt="Rotate clockwise"; }, |
|
120 MENU_ITEM { command=EVideoCmdRotateAntiClockwise; txt="Rotate anti-clockwise"; }, |
|
121 MENU_ITEM { command=EVideoCmdMirrorHorizontalAxis; txt="Mirror over horizontal axis"; }, |
|
122 MENU_ITEM { command=EVideoCmdMirrorVerticalAxis; txt="Mirror over vertical axis"; } |
|
123 }; |
|
124 } |
|
125 |
|
126 RESOURCE MENU_PANE r_video_clip_menu |
|
127 { |
|
128 items= |
|
129 { |
|
130 MENU_ITEM { command=EVideoCmdPlay; txt="Play"; }, |
|
131 MENU_ITEM { command=EVideoCmdStream; txt="Streamed play"; }, |
|
132 MENU_ITEM { command=EVideoCmdOtaStream; txt="Streamed OTA play"; }, |
|
133 MENU_ITEM { command=EVideoCmdWbmpStream; txt="Streamed WBMP play"; }, |
|
134 MENU_ITEM { command=EVideoCmdExtractStreamedFrame; txt="Streamed multiple frames…"; }, |
|
135 MENU_ITEM { command=EVideoCmdRefresh; txt="Refresh"; }, |
|
136 MENU_ITEM { command=EVideoCmdExtractFrame; txt="Extract frame…"; } |
|
137 }; |
|
138 } |
|
139 |
|
140 RESOURCE MENU_PANE r_video_test_menu |
|
141 { |
|
142 items= |
|
143 { |
|
144 MENU_ITEM { command=EVideoCmdTest; txt="Run test 1"; flags=EEikMenuItemSeparatorAfter; }, |
|
145 MENU_ITEM { command=EVideoCmdDecoderOptions; txt="Decoder Options"; } |
|
146 }; |
|
147 } |
|
148 |
|
149 RESOURCE DIALOG r_video_display_mode_dialog |
|
150 { |
|
151 title="Set display mode"; |
|
152 flags=EEikDialogFlagWait; |
|
153 buttons=R_EIK_BUTTONS_CANCEL_OK; |
|
154 items= |
|
155 { |
|
156 DLG_LINE |
|
157 { |
|
158 prompt="Display mode"; |
|
159 type=EEikCtChoiceList; |
|
160 id=EVideoIdDisplayMode; |
|
161 control=CHOICELIST { array_id=r_video_display_mode_array; }; |
|
162 }, |
|
163 DLG_LINE |
|
164 { |
|
165 type=EEikCtCheckBox; |
|
166 prompt="Use Image Native Display Mode"; |
|
167 id=EVideoIdUseImageNativeMode; |
|
168 } |
|
169 }; |
|
170 } |
|
171 |
|
172 RESOURCE DIALOG r_video_decoder_options_dialog |
|
173 { |
|
174 title="Set decoder options"; |
|
175 flags=EEikDialogFlagWait; |
|
176 buttons=R_EIK_BUTTONS_CANCEL_OK; |
|
177 items= |
|
178 { |
|
179 DLG_LINE |
|
180 { |
|
181 type=EEikCtCheckBox; |
|
182 prompt="Use thread"; |
|
183 id=EVideoIdUseThreadForDecoder; |
|
184 }, |
|
185 DLG_LINE |
|
186 { |
|
187 type=EEikCtCheckBox; |
|
188 prompt="Disable Dithering"; |
|
189 id=EVideoIdDecoderDisableDithering; |
|
190 }, |
|
191 DLG_LINE |
|
192 { |
|
193 type=EEikCtCheckBox; |
|
194 prompt="Autogenerate mask"; |
|
195 id=EVideoIdDecoderAutogenMask; |
|
196 }, |
|
197 DLG_LINE |
|
198 { |
|
199 type=EEikCtCheckBox; |
|
200 prompt="High speed decode"; |
|
201 id=EVideoIdDecodeHighSpeedDecode; |
|
202 }, |
|
203 DLG_LINE |
|
204 { |
|
205 type=EEikCtCheckBox; |
|
206 prompt="Auto rotate decode"; |
|
207 id=EVideoIdAutoRotateDecode; |
|
208 } |
|
209 |
|
210 }; |
|
211 } |
|
212 |
|
213 RESOURCE DLG_BUTTONS r_decoder_extension_dialog_buttons |
|
214 { |
|
215 buttons = |
|
216 { |
|
217 DLG_BUTTON |
|
218 { |
|
219 id = EEikBidCancel; |
|
220 button = CMBUT |
|
221 { |
|
222 txt = "Cancel"; |
|
223 }; |
|
224 flags = 0; |
|
225 }, |
|
226 DLG_BUTTON |
|
227 { |
|
228 id = EEikBidOk; |
|
229 button = CMBUT |
|
230 { |
|
231 txt = "Ok"; |
|
232 }; |
|
233 flags = EEikLabeledButtonIsDefault; |
|
234 }, |
|
235 DLG_BUTTON |
|
236 { |
|
237 id = EVideoIdAdd; |
|
238 button = CMBUT {txt = "Add";}; |
|
239 }, |
|
240 DLG_BUTTON |
|
241 { |
|
242 id = EVideoIdClear; |
|
243 button = CMBUT {txt = "Clear";}; |
|
244 } |
|
245 }; |
|
246 } |
|
247 |
|
248 RESOURCE ARRAY r_decoder_crop_line |
|
249 { |
|
250 items = |
|
251 { |
|
252 DLG_LINE |
|
253 { |
|
254 prompt="TopX"; |
|
255 type=EEikCtNumberEditor; |
|
256 id=EVideoIdCropTopLeftX; |
|
257 control= NUMBER_EDITOR |
|
258 { |
|
259 min = 0; |
|
260 max = 999999; |
|
261 }; |
|
262 }, |
|
263 DLG_LINE |
|
264 { |
|
265 prompt="TopY"; |
|
266 type=EEikCtNumberEditor; |
|
267 id=EVideoIdCropTopLeftY; |
|
268 control= NUMBER_EDITOR |
|
269 { |
|
270 min = 0; |
|
271 max = 999999; |
|
272 }; |
|
273 }, |
|
274 DLG_LINE |
|
275 { |
|
276 prompt="Width"; |
|
277 type=EEikCtNumberEditor; |
|
278 id=EVideoIdCropWidth; |
|
279 control= NUMBER_EDITOR |
|
280 { |
|
281 min = 0; |
|
282 max = 999999; |
|
283 }; |
|
284 }, |
|
285 DLG_LINE |
|
286 { |
|
287 prompt="Height"; |
|
288 type=EEikCtNumberEditor; |
|
289 id=EVideoIdCropHeight; |
|
290 control= NUMBER_EDITOR |
|
291 { |
|
292 min = 0; |
|
293 max = 999999; |
|
294 }; |
|
295 } |
|
296 }; |
|
297 } |
|
298 |
|
299 RESOURCE ARRAY r_decoder_scaling_line |
|
300 { |
|
301 items = |
|
302 { |
|
303 DLG_LINE |
|
304 { |
|
305 prompt="Scale Coeff (-ve is downscale)"; |
|
306 type=EEikCtNumberEditor; |
|
307 id=EVideoIdScaleCoeff; |
|
308 control=NUMBER_EDITOR |
|
309 { |
|
310 min=-999999; |
|
311 max=999999; |
|
312 }; |
|
313 }, |
|
314 DLG_LINE |
|
315 { |
|
316 prompt="Quality"; |
|
317 type=EEikCtChoiceList; |
|
318 id=EVideoIdScaleQuality; |
|
319 control=CHOICELIST { array_id=r_video_scale_quality_array; }; |
|
320 }, |
|
321 DLG_LINE |
|
322 { |
|
323 type=EEikCtCheckBox; |
|
324 prompt="Preserve Aspect"; |
|
325 id=EVideoIdScalePreserveAspect; |
|
326 } |
|
327 }; |
|
328 } |
|
329 |
|
330 RESOURCE ARRAY r_decoder_operation_line |
|
331 { |
|
332 items = |
|
333 { |
|
334 DLG_LINE |
|
335 { |
|
336 prompt="Operations"; |
|
337 type=EEikCtChoiceList; |
|
338 id=EVideoIdOperations; |
|
339 control=CHOICELIST { array_id=r_video_operation_array; }; |
|
340 }, |
|
341 DLG_LINE |
|
342 { |
|
343 prompt="Selected Operations"; |
|
344 type=EEikCtListBox; |
|
345 id=EVideoIdSelectedOperations; |
|
346 control=LISTBOX {height=3;}; |
|
347 } |
|
348 }; |
|
349 } |
|
350 |
|
351 RESOURCE ARRAY r_decoder_extension_pages |
|
352 { |
|
353 items = |
|
354 { |
|
355 PAGE {text="Crop"; lines=r_decoder_crop_line; id=EDecoderExtensionCropPage;}, |
|
356 PAGE {text="Scaling"; lines=r_decoder_scaling_line; id=EDecoderExtensionScalingPage;}, |
|
357 PAGE {text="Operation"; lines=r_decoder_operation_line; id=EDecoderExtensionOperationPage;} |
|
358 }; |
|
359 } |
|
360 |
|
361 RESOURCE ARRAY r_encoder_extension_pages |
|
362 { |
|
363 items = |
|
364 { |
|
365 PAGE {text="Operation"; lines=r_decoder_operation_line; id=EDecoderExtensionOperationPage;} |
|
366 }; |
|
367 } |
|
368 |
|
369 RESOURCE DIALOG r_video_decoder_extension_dialog |
|
370 { |
|
371 title = "Decoder Extensions"; |
|
372 buttons = r_decoder_extension_dialog_buttons; |
|
373 flags = EEikDialogFlagWait; |
|
374 pages = r_decoder_extension_pages; |
|
375 } |
|
376 |
|
377 RESOURCE DIALOG r_video_encoder_extension_dialog |
|
378 { |
|
379 title = "Encoder Extensions"; |
|
380 buttons = r_decoder_extension_dialog_buttons; |
|
381 flags = EEikDialogFlagWait; |
|
382 pages = r_encoder_extension_pages; |
|
383 } |
|
384 |
|
385 RESOURCE DIALOG r_video_background_color_dialog |
|
386 { |
|
387 title="Set background color"; |
|
388 flags=EEikDialogFlagWait; |
|
389 buttons=R_EIK_BUTTONS_CANCEL_OK; |
|
390 items= |
|
391 { |
|
392 DLG_LINE |
|
393 { |
|
394 type=EEikCtCheckBox; |
|
395 prompt="Override background color"; |
|
396 id=EVideoIdOverrideBackgroundColor; |
|
397 }, |
|
398 DLG_LINE |
|
399 { |
|
400 prompt="Use color"; |
|
401 type=EEikCtChoiceList; |
|
402 id=EVideoIdBackgroundColor; |
|
403 control=CHOICELIST { array_id=r_video_background_color_array; }; |
|
404 } |
|
405 }; |
|
406 } |
|
407 |
|
408 RESOURCE DIALOG r_video_frame_dialog |
|
409 { |
|
410 title="Set current frame"; |
|
411 flags=EEikDialogFlagWait; |
|
412 buttons=R_EIK_BUTTONS_CANCEL_OK; |
|
413 items= |
|
414 { |
|
415 DLG_LINE |
|
416 { |
|
417 prompt="Number of frames"; |
|
418 type=EEikCtNumberEditor; |
|
419 id=EVideoIdNumberOfFrames; |
|
420 control=NUMBER_EDITOR |
|
421 { |
|
422 min=0; |
|
423 max=999999; |
|
424 }; |
|
425 }, |
|
426 DLG_LINE |
|
427 { |
|
428 prompt="Current frame number"; |
|
429 type=EEikCtNumberEditor; |
|
430 id=EVideoIdCurrentFrameNumber; |
|
431 control=NUMBER_EDITOR |
|
432 { |
|
433 min=0; |
|
434 max=999999; |
|
435 }; |
|
436 } |
|
437 }; |
|
438 } |
|
439 |
|
440 RESOURCE ARRAY r_video_display_mode_array |
|
441 { |
|
442 items= |
|
443 { |
|
444 LBUF { txt="EGray2"; }, |
|
445 LBUF { txt="EGray4"; }, |
|
446 LBUF { txt="EGray16"; }, |
|
447 LBUF { txt="EGray256"; }, |
|
448 LBUF { txt="EColor16"; }, |
|
449 LBUF { txt="EColor256"; }, |
|
450 LBUF { txt="EColor4K"; }, |
|
451 LBUF { txt="EColor64K"; }, |
|
452 LBUF { txt="EColor16M"; }, |
|
453 LBUF { txt="EColor16MU"; }, |
|
454 LBUF { txt="EColor16MA"; }, |
|
455 LBUF { txt="EColor16MAP"; } |
|
456 }; |
|
457 } |
|
458 |
|
459 RESOURCE ARRAY r_video_operation_array |
|
460 { |
|
461 items= |
|
462 { |
|
463 LBUF { txt="ERotation90DegreesClockwise"; }, |
|
464 LBUF { txt="ERotation180DegreesClockwise"; }, |
|
465 LBUF { txt="ERotation270DegreesClockwise"; }, |
|
466 LBUF { txt="EMirrorHorizontalAxis"; }, |
|
467 LBUF { txt="EMirrorVerticalAxis"; } |
|
468 }; |
|
469 } |
|
470 |
|
471 RESOURCE ARRAY r_video_scale_quality_array |
|
472 { |
|
473 items= |
|
474 { |
|
475 LBUF { txt="EMinimumQuality"; }, |
|
476 LBUF { txt="EMediumQuality"; }, |
|
477 LBUF { txt="EMaximumQuality"; } |
|
478 }; |
|
479 } |
|
480 |
|
481 RESOURCE ARRAY r_video_full_display_mode_array // same order as TDisplayMode |
|
482 { |
|
483 items= |
|
484 { |
|
485 LBUF { txt="ENone"; }, |
|
486 LBUF { txt="EGray2"; }, |
|
487 LBUF { txt="EGray4"; }, |
|
488 LBUF { txt="EGray16"; }, |
|
489 LBUF { txt="EGray256"; }, |
|
490 LBUF { txt="EColor16"; }, |
|
491 LBUF { txt="EColor256"; }, |
|
492 LBUF { txt="EColor64K"; }, |
|
493 LBUF { txt="EColor16M"; }, |
|
494 LBUF { txt="ERgb"; }, |
|
495 LBUF { txt="EColor4K"; }, |
|
496 LBUF { txt="EColor16MU"; }, |
|
497 LBUF { txt="EColor16MA"; }, |
|
498 LBUF { txt="EColor16MAP"; } |
|
499 }; |
|
500 } |
|
501 |
|
502 RESOURCE ARRAY r_video_background_color_array |
|
503 { |
|
504 items= |
|
505 { |
|
506 LBUF { txt="Black"; }, |
|
507 LBUF { txt="Dark Gray"; }, |
|
508 LBUF { txt="Dark Red"; }, |
|
509 LBUF { txt="Dark Yellow"; }, |
|
510 LBUF { txt="Dark Green"; }, |
|
511 LBUF { txt="Red"; }, |
|
512 LBUF { txt="Yellow"; }, |
|
513 LBUF { txt="Green"; }, |
|
514 LBUF { txt="Magenta"; }, |
|
515 LBUF { txt="Blue"; }, |
|
516 LBUF { txt="Cyan"; }, |
|
517 LBUF { txt="Dark Magenta"; }, |
|
518 LBUF { txt="Dark Blue"; }, |
|
519 LBUF { txt="Dark Cyan"; }, |
|
520 LBUF { txt="Gray"; }, |
|
521 LBUF { txt="White"; } |
|
522 }; |
|
523 } |
|
524 |
|
525 RESOURCE DIALOG r_video_file_saveas_dialog |
|
526 { |
|
527 flags=EEikDialogFlagWait; |
|
528 title="Save as"; |
|
529 buttons=r_video_format_browse_cancel_ok_buttons; |
|
530 items= |
|
531 { |
|
532 DLG_LINE |
|
533 { |
|
534 prompt="Name"; |
|
535 type=EEikCtFileNameEd; |
|
536 id=EEikCidFileNameEd; |
|
537 control=FILENAMEEDITOR {}; |
|
538 }, |
|
539 DLG_LINE |
|
540 { |
|
541 prompt="Folder"; |
|
542 type=EEikCtFolderNameSel; |
|
543 id=EEikCidFolderNameSel; |
|
544 control=FOLDERNAMESELECTOR {}; |
|
545 }, |
|
546 DLG_LINE |
|
547 { |
|
548 prompt="Disk"; |
|
549 type=EEikCtDriveNameSel; |
|
550 id=EEikCidDriveNameSel; |
|
551 control=DRIVENAMESELECTOR {}; |
|
552 }, |
|
553 DLG_LINE |
|
554 { |
|
555 type=EEikCtCheckBox; |
|
556 prompt="Use new file"; |
|
557 id=EEikCidUseNewFileChbx; |
|
558 }, |
|
559 DLG_LINE |
|
560 { |
|
561 type=EEikCtCheckBox; |
|
562 prompt="Create Thumbnail"; |
|
563 id=EVideoIdCreateThumbnailChbx; |
|
564 }, |
|
565 DLG_LINE |
|
566 { |
|
567 type=EEikCtCheckBox; |
|
568 prompt="EXIF"; |
|
569 id=EVideoIdSaveAsEXIFChbx; |
|
570 }, |
|
571 DLG_LINE |
|
572 { |
|
573 prompt="Format"; |
|
574 type=EEikCtLabel; |
|
575 id=EVideoIdSaveAsFormat; |
|
576 control=LABEL { txt="Compuserve gif"; }; // Longest possible choice |
|
577 } |
|
578 }; |
|
579 } |
|
580 |
|
581 RESOURCE DLG_BUTTONS r_video_format_browse_cancel_ok_buttons |
|
582 { |
|
583 buttons= |
|
584 { |
|
585 DLG_BUTTON { id=EVideoBidFormat; button=CMBUT {txt="Format…";}; hotkey='F'; }, |
|
586 DLG_BUTTON { id=EVideoIdEncodeOperations; button=CMBUT {txt="Operations…";}; hotkey='O'; flags=0; }, |
|
587 DLG_BUTTON { id=EEikBidBrowse; button=CMBUT {txt="Browse…";}; hotkey='B'; }, |
|
588 DLG_BUTTON { id=EEikBidCancel; button=CMBUT {txt="Cancel";}; hotkey=EEikBidCancel; flags=0;}, |
|
589 DLG_BUTTON { id=EEikBidOk; button=CMBUT {txt="OK";}; hotkey=EEikBidOk; flags=0; } |
|
590 }; |
|
591 } |
|
592 |
|
593 RESOURCE DIALOG r_video_file_format_dialog |
|
594 { |
|
595 flags=EEikDialogFlagWait; |
|
596 title="File format"; |
|
597 buttons=R_EIK_BUTTONS_CANCEL_OK; |
|
598 items= |
|
599 { |
|
600 DLG_LINE |
|
601 { |
|
602 type=EEikCtChoiceList; |
|
603 prompt="Type"; |
|
604 id=EVideoIdFileFormatType; |
|
605 control=CHOICELIST {}; |
|
606 }, |
|
607 DLG_LINE |
|
608 { |
|
609 type=EEikCtChoiceList; |
|
610 prompt="Format"; |
|
611 id=EVideoIdFileFormatBpp; |
|
612 control=CHOICELIST { array_id=r_video_file_format_bpp_array; }; |
|
613 }, |
|
614 DLG_LINE |
|
615 { |
|
616 type=EEikCtChoiceList; |
|
617 prompt="Colour"; |
|
618 id=EVideoIdFileFormatColor; |
|
619 control=CHOICELIST { array_id=r_video_file_format_color_array; }; |
|
620 }, |
|
621 DLG_LINE |
|
622 { |
|
623 type=EEikCtNumberEditor; |
|
624 prompt="Quality"; |
|
625 id=EVideoIdFileFormatFactor; |
|
626 control= |
|
627 NUMBER_EDITOR |
|
628 { |
|
629 min=1; |
|
630 max=100; |
|
631 }; |
|
632 }, |
|
633 DLG_LINE |
|
634 { |
|
635 type=EEikCtChoiceList; |
|
636 prompt="Sampling"; |
|
637 id=EVideoIdFileFormatSampling; |
|
638 control=CHOICELIST { array_id=r_video_file_format_sampling_array; }; |
|
639 }, |
|
640 DLG_LINE |
|
641 { |
|
642 type=EEikCtChoiceList; |
|
643 prompt="Compression"; |
|
644 id=EVideoIdFileFormatCompression; |
|
645 control=CHOICELIST { array_id=r_video_file_format_compression_array; }; |
|
646 } |
|
647 }; |
|
648 } |
|
649 |
|
650 RESOURCE ARRAY r_video_file_format_bpp_array |
|
651 { |
|
652 items= |
|
653 { |
|
654 LBUF { txt="1"; }, |
|
655 LBUF { txt="2"; }, |
|
656 LBUF { txt="4"; }, |
|
657 LBUF { txt="8"; }, |
|
658 LBUF { txt="12"; }, |
|
659 LBUF { txt="16"; }, |
|
660 LBUF { txt="24"; }, |
|
661 LBUF { txt="32"; } |
|
662 }; |
|
663 } |
|
664 |
|
665 RESOURCE ARRAY r_video_file_format_color_array |
|
666 { |
|
667 items= |
|
668 { |
|
669 LBUF { txt="No"; }, |
|
670 LBUF { txt="Yes"; } |
|
671 }; |
|
672 } |
|
673 |
|
674 RESOURCE ARRAY r_video_file_format_sampling_array |
|
675 { |
|
676 items= |
|
677 { |
|
678 LBUF { txt="4:4:4"; }, |
|
679 LBUF { txt="4:2:2"; }, |
|
680 LBUF { txt="4:2:0"; } |
|
681 }; |
|
682 } |
|
683 |
|
684 RESOURCE ARRAY r_video_file_format_compression_array |
|
685 { |
|
686 items= |
|
687 { |
|
688 LBUF { txt="Default"; }, |
|
689 LBUF { txt="No compression"; }, |
|
690 LBUF { txt="Best speed"; }, |
|
691 LBUF { txt="Best compression"; } |
|
692 }; |
|
693 } |
|
694 |
|
695 RESOURCE TBUF r_video_server_starting { buf="Server starting..."; } |
|
696 RESOURCE TBUF r_video_server_started { buf="Server started"; } |
|
697 RESOURCE TBUF r_video_server_failed { buf="Server failed to start (%S)"; } |
|
698 RESOURCE TBUF r_video_file_format_bmp { buf="Windows bmp "; } |
|
699 RESOURCE TBUF r_video_file_format_gif { buf="Compuserve gif "; } |
|
700 RESOURCE TBUF r_video_file_format_jpeg { buf="Jpeg(JFIF) "; } |
|
701 RESOURCE TBUF r_video_file_format_exif { buf="Jpeg(EXIF) "; } |
|
702 RESOURCE TBUF r_video_file_format_mbm { buf="Symbian mbm "; } |
|
703 RESOURCE TBUF r_video_file_format_png { buf="PNG "; } |
|
704 RESOURCE TBUF r_video_file_format_custom { buf="Custom format "; } |
|
705 |
|
706 RESOURCE TBUF r_video_select_folder { buf="Select folder to open"; } |
|
707 RESOURCE TBUF r_video_open_ota { buf="Open OTA file"; } |
|
708 RESOURCE TBUF r_video_open_wbmp { buf="Open WBMP file"; } |
|
709 |
|
710 RESOURCE TBUF r_video_empty_folder { buf ="Empty folder"; } |
|
711 |
|
712 RESOURCE TBUF r_video_unknown { buf = "unknown command"; } |
|
713 |
|
714 |
|
715 RESOURCE ARRAY r_properties_lines |
|
716 { |
|
717 items= |
|
718 { |
|
719 DLG_LINE |
|
720 { |
|
721 type=EEikCtEdwin; |
|
722 control=EDWIN {lines=6; flags=EEikEdwinReadOnly | EEikEdwinNoAutoSelection;}; |
|
723 id=EFramePropertiesPage; |
|
724 } |
|
725 }; |
|
726 } |
|
727 |
|
728 RESOURCE ARRAY r_image_comments_lines |
|
729 { |
|
730 items= |
|
731 { |
|
732 DLG_LINE |
|
733 { |
|
734 type=EEikCtEdwin; |
|
735 control=EDWIN {lines=20; flags=EEikEdwinReadOnly | EEikEdwinNoAutoSelection;}; |
|
736 id=EImageCommentsPage; |
|
737 } |
|
738 }; |
|
739 } |
|
740 |
|
741 RESOURCE ARRAY r_frame_comments_lines |
|
742 { |
|
743 items= |
|
744 { |
|
745 DLG_LINE |
|
746 { |
|
747 type=EEikCtEdwin; |
|
748 control=EDWIN {lines=20; flags=EEikEdwinReadOnly | EEikEdwinNoAutoSelection;}; |
|
749 id=EFrameCommentsPage; |
|
750 } |
|
751 }; |
|
752 } |
|
753 |
|
754 RESOURCE ARRAY r_video_info_pages |
|
755 { |
|
756 items = |
|
757 { |
|
758 PAGE {text="Properties"; lines=r_properties_lines;}, |
|
759 PAGE {text="Image comments"; lines=r_image_comments_lines;}, |
|
760 PAGE {text="Frame comments"; lines=r_frame_comments_lines;} |
|
761 }; |
|
762 } |
|
763 |
|
764 RESOURCE DIALOG r_video_info_dialog |
|
765 { |
|
766 flags=EEikDialogFlagWait; |
|
767 title="Image information"; |
|
768 buttons=R_EIK_BUTTONS_CONTINUE; |
|
769 pages=r_video_info_pages; |
|
770 } |