|
1 /* |
|
2 * Copyright (c) 2003-2005 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 * This file contains all the resources for the module. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 // RESOURCE IDENTIFIER |
|
22 NAME SMPL // 4 letter ID |
|
23 |
|
24 // INCLUDES |
|
25 |
|
26 #include <eikon.rh> |
|
27 #include <avkon.loc> |
|
28 #include <avkon.rsg> |
|
29 #include <avkon.rh> |
|
30 #include <avkon.mbg> |
|
31 #include <AvkonIcons.hrh> |
|
32 |
|
33 #include <AiwCommon.rh> |
|
34 #include <AiwGenericParam.hrh> |
|
35 |
|
36 #include <smilplayer.loc> |
|
37 #include "SmilPlayer.hrh" |
|
38 |
|
39 // RESOURCE DEFINITIONS |
|
40 RESOURCE RSS_SIGNATURE { } |
|
41 |
|
42 // ---------------------------------------------------------------------------- |
|
43 // |
|
44 // r_smilplayerdialog - Main dialog |
|
45 // |
|
46 // ---------------------------------------------------------------------------- |
|
47 RESOURCE DIALOG r_smilplayer_dialog |
|
48 { |
|
49 flags = EEikDialogFlagNoDrag | |
|
50 EEikDialogFlagNoTitleBar | |
|
51 EEikDialogFlagFillAppClientRect | |
|
52 EEikDialogFlagCbaButtons | |
|
53 EEikDialogFlagWait | |
|
54 EEikDialogFlagNotifyEsc; |
|
55 buttons=R_AVKON_SOFTKEYS_EMPTY_WITH_IDS; |
|
56 items= |
|
57 { |
|
58 DLG_LINE |
|
59 { |
|
60 type=EEikCtRichTextEditor; |
|
61 control=RTXTED |
|
62 { |
|
63 width = 0; // These 0's are not really needed |
|
64 height = 0; |
|
65 numlines = 0; |
|
66 }; |
|
67 itemflags = EEikDlgItemAsLabel | |
|
68 EEikEdwinAlwaysShowSelection | |
|
69 EEikEdwinUserSuppliedText | |
|
70 EEikRTedNoTextParsers; |
|
71 } |
|
72 }; |
|
73 } |
|
74 |
|
75 // ---------------------------------------------------------------------------- |
|
76 // |
|
77 // r_smilplayer_menubar - Main Menubar |
|
78 // |
|
79 // ---------------------------------------------------------------------------- |
|
80 RESOURCE MENU_BAR r_smilplayer_menubar |
|
81 { |
|
82 titles = |
|
83 { |
|
84 MENU_TITLE { menu_pane = r_smilplayer_menu_options; } |
|
85 }; |
|
86 } |
|
87 |
|
88 RESOURCE MENU_BAR r_smilplayer_select_menubar_in_playing_state |
|
89 { |
|
90 titles = |
|
91 { |
|
92 MENU_TITLE { menu_pane = r_smilplayer_select_menupane_in_playing_state; } |
|
93 }; |
|
94 } |
|
95 |
|
96 RESOURCE MENU_BAR r_smilplayer_select_menubar_in_pause_state |
|
97 { |
|
98 titles = |
|
99 { |
|
100 MENU_TITLE { menu_pane = r_smilplayer_select_menupane_in_pause_state; } |
|
101 }; |
|
102 } |
|
103 |
|
104 RESOURCE MENU_BAR r_smilplayer_select_menubar_in_stop_state |
|
105 { |
|
106 titles = |
|
107 { |
|
108 MENU_TITLE { menu_pane = r_smilplayer_select_menupane_in_stop_state; } |
|
109 }; |
|
110 } |
|
111 |
|
112 // ---------------------------------------------------------------------------- |
|
113 // |
|
114 // r_smilplayer_menu_options - Main Menubar items |
|
115 // |
|
116 // ---------------------------------------------------------------------------- |
|
117 RESOURCE MENU_PANE r_smilplayer_menu_options |
|
118 { |
|
119 items= |
|
120 { |
|
121 MENU_ITEM { command = ESmilPlayerCmdOpenLink; |
|
122 txt = qtn_smil_om_open_link ; }, |
|
123 MENU_ITEM { command = ESmilPlayerCmdPlaySVG; |
|
124 txt = qtn_smil_om_svgt_play ; }, |
|
125 MENU_ITEM { command = ESmilPlayerCmdActivateScroll; |
|
126 txt = qtn_smil_om_activate_scroll ; }, |
|
127 MENU_ITEM { command = ESmilPlayerCmdDeactivateScroll; |
|
128 txt = qtn_smil_om_deactivate_scroll ; }, |
|
129 MENU_ITEM { command = ESmilPlayerCmdResume; |
|
130 txt = qtn_mms_om_continue ; }, |
|
131 MENU_ITEM { command = ESmilPlayerCmdReplay; |
|
132 txt = qtn_mms_om_replay ; }, |
|
133 MENU_ITEM { command = EAknCmdHelp; |
|
134 txt = qtn_options_help; }, |
|
135 MENU_ITEM { command = EAknCmdExit; |
|
136 txt = qtn_options_exit; } |
|
137 }; |
|
138 } |
|
139 |
|
140 RESOURCE MENU_PANE r_smilplayer_select_menupane_in_playing_state |
|
141 { |
|
142 items= |
|
143 { |
|
144 MENU_ITEM { command = ESmilPlayerCmdOpenLink; |
|
145 txt = qtn_smil_om_open_link ; }, |
|
146 MENU_ITEM { command = ESmilPlayerCmdPlaySVG; |
|
147 txt = qtn_smil_om_svgt_play ; }, |
|
148 MENU_ITEM { command = ESmilPlayerCmdActivateScroll; |
|
149 txt = qtn_smil_om_activate_scroll ; }, |
|
150 MENU_ITEM { command = ESmilPlayerCmdDeactivateScroll; |
|
151 txt = qtn_smil_om_deactivate_scroll ; }, |
|
152 MENU_ITEM { command = ESmilPlayerCmdPause; |
|
153 txt = qtn_mms_om_pause ; } |
|
154 }; |
|
155 } |
|
156 |
|
157 RESOURCE MENU_PANE r_smilplayer_select_menupane_in_stop_state |
|
158 { |
|
159 items= |
|
160 { |
|
161 MENU_ITEM { command = ESmilPlayerCmdOpenLink; |
|
162 txt = qtn_smil_om_open_link ; }, |
|
163 MENU_ITEM { command = ESmilPlayerCmdPlaySVG; |
|
164 txt = qtn_smil_om_svgt_play ; }, |
|
165 MENU_ITEM { command = ESmilPlayerCmdActivateScroll; |
|
166 txt = qtn_smil_om_activate_scroll ; }, |
|
167 MENU_ITEM { command = ESmilPlayerCmdDeactivateScroll; |
|
168 txt = qtn_smil_om_deactivate_scroll ; }, |
|
169 MENU_ITEM { command = ESmilPlayerCmdReplay; |
|
170 txt = qtn_mms_om_replay; } |
|
171 }; |
|
172 } |
|
173 |
|
174 RESOURCE MENU_PANE r_smilplayer_select_menupane_in_pause_state |
|
175 { |
|
176 items= |
|
177 { |
|
178 MENU_ITEM { command = ESmilPlayerCmdOpenLink; |
|
179 txt = qtn_smil_om_open_link ; }, |
|
180 MENU_ITEM { command = ESmilPlayerCmdPlaySVG; |
|
181 txt = qtn_smil_om_svgt_play ; }, |
|
182 MENU_ITEM { command = ESmilPlayerCmdActivateScroll; |
|
183 txt = qtn_smil_om_activate_scroll ; }, |
|
184 MENU_ITEM { command = ESmilPlayerCmdDeactivateScroll; |
|
185 txt = qtn_smil_om_deactivate_scroll ; }, |
|
186 MENU_ITEM { command = ESmilPlayerCmdResume; |
|
187 txt = qtn_mms_om_continue ; } |
|
188 }; |
|
189 } |
|
190 |
|
191 // ---------------------------------------------------------------------------- |
|
192 // |
|
193 // r_smilplayer_menu_options_at_normal_end - Menu at end |
|
194 // |
|
195 // ---------------------------------------------------------------------------- |
|
196 RESOURCE MENU_PANE r_smilplayer_menu_options_at_normal_end |
|
197 { |
|
198 items= |
|
199 { |
|
200 MENU_ITEM { |
|
201 command = ESmilPlayerCmdReplay; |
|
202 txt = qtn_mms_om_replay; |
|
203 }, |
|
204 MENU_ITEM { |
|
205 command = EAknCmdHelp; |
|
206 txt = qtn_options_help; |
|
207 }, |
|
208 MENU_ITEM { |
|
209 command = EAknCmdExit; |
|
210 txt = qtn_options_exit; |
|
211 } |
|
212 }; |
|
213 } |
|
214 |
|
215 // ---------------------------------------------------------------------------- |
|
216 // |
|
217 // r_smilplayer_softkeys_playing |
|
218 // Invisible softkey when in playing state |
|
219 // |
|
220 // ---------------------------------------------------------------------------- |
|
221 // |
|
222 RESOURCE CBA r_smilplayer_softkeys_playing |
|
223 { |
|
224 flags = EAknCBAFlagRespondWhenInvisible; |
|
225 buttons = |
|
226 { |
|
227 CBA_BUTTON { |
|
228 id = ESmilPlayerCmdPause; |
|
229 txt = text_softkey_empty; |
|
230 }, |
|
231 CBA_BUTTON { |
|
232 id = ESmilPlayerCmdPause; |
|
233 txt = text_softkey_empty; |
|
234 }, |
|
235 CBA_BUTTON { |
|
236 id = EAknSoftkeyContextOptions; |
|
237 txt = text_softkey_option; |
|
238 } |
|
239 }; |
|
240 } |
|
241 |
|
242 // ---------------------------------------------------------------------------- |
|
243 // |
|
244 // r_smilplayer_softkeys_pause_in_normal |
|
245 // Softkeys in pause state when playing the presentation |
|
246 // |
|
247 // ---------------------------------------------------------------------------- |
|
248 // |
|
249 RESOURCE CBA r_smilplayer_softkeys_pause_in_normal |
|
250 { |
|
251 buttons = |
|
252 { |
|
253 CBA_BUTTON { |
|
254 id = EAknSoftkeyOptions; |
|
255 txt = text_softkey_option; |
|
256 }, |
|
257 CBA_BUTTON { |
|
258 id = EAknSoftkeyClose; |
|
259 txt = text_softkey_back; |
|
260 }, |
|
261 CBA_BUTTON { |
|
262 id = EAknSoftkeyContextOptions; |
|
263 txt = text_softkey_option; |
|
264 } |
|
265 }; |
|
266 } |
|
267 |
|
268 // ---------------------------------------------------------------------------- |
|
269 // |
|
270 // r_smilplayer_softkeys_pause_in_preview |
|
271 // Softkeys in pause state when previewing the presentation |
|
272 // |
|
273 // ---------------------------------------------------------------------------- |
|
274 // |
|
275 RESOURCE CBA r_smilplayer_softkeys_pause_in_preview |
|
276 { |
|
277 buttons = |
|
278 { |
|
279 CBA_BUTTON { |
|
280 id = ESmilPlayerCmdResume; |
|
281 txt = qtn_mms_softkey_continue; |
|
282 }, |
|
283 CBA_BUTTON { |
|
284 id = EAknSoftkeyBack; |
|
285 txt = text_softkey_back; |
|
286 }, |
|
287 CBA_BUTTON { |
|
288 id = EAknSoftkeyContextOptions; |
|
289 txt = text_softkey_option; |
|
290 } |
|
291 }; |
|
292 } |
|
293 |
|
294 // ---------------------------------------------------------------------------- |
|
295 // |
|
296 // r_smilplayer_softkeys_stop_in_normal |
|
297 // Softkeys when presentation ends in normal play |
|
298 // |
|
299 // ---------------------------------------------------------------------------- |
|
300 RESOURCE CBA r_smilplayer_softkeys_stop_in_normal |
|
301 { |
|
302 buttons = |
|
303 { |
|
304 CBA_BUTTON { |
|
305 id = EAknSoftkeyOptions; |
|
306 txt = text_softkey_option; |
|
307 }, |
|
308 CBA_BUTTON { |
|
309 id = EAknSoftkeyClose; |
|
310 txt = text_softkey_back; |
|
311 }, |
|
312 CBA_BUTTON { |
|
313 id = EAknSoftkeyContextOptions; |
|
314 txt = text_softkey_option; |
|
315 } |
|
316 }; |
|
317 } |
|
318 |
|
319 // ---------------------------------------------------------------------------- |
|
320 // |
|
321 // r_smilplayer_softkeys_stop_in_preview |
|
322 // Softkeys in stop state when previewing the presentation |
|
323 // |
|
324 // ---------------------------------------------------------------------------- |
|
325 RESOURCE CBA r_smilplayer_softkeys_stop_in_preview |
|
326 { |
|
327 buttons = |
|
328 { |
|
329 CBA_BUTTON { |
|
330 id = ESmilPlayerCmdReplay; |
|
331 txt = text_softkey_resume; |
|
332 }, |
|
333 CBA_BUTTON { |
|
334 id = EAknSoftkeyBack; |
|
335 txt = text_softkey_back; |
|
336 }, |
|
337 CBA_BUTTON { |
|
338 id = EAknSoftkeyContextOptions; |
|
339 txt = text_softkey_option; |
|
340 } |
|
341 }; |
|
342 } |
|
343 |
|
344 // ---------------------------------------------------------------------------- |
|
345 // |
|
346 // r_smilplayer_unsupported_presentation |
|
347 // The string for unsupported/corrupted presentation info note |
|
348 // |
|
349 // ---------------------------------------------------------------------------- |
|
350 RESOURCE TBUF r_smilplayer_unsupported_presentation |
|
351 { |
|
352 buf = qtn_mms_info_cannot_play; |
|
353 } |
|
354 |
|
355 // ---------------------------------------------------------------------------- |
|
356 // |
|
357 // r_smilplayer_presentation_duration |
|
358 // The string for the duration of the presentation |
|
359 // |
|
360 // ---------------------------------------------------------------------------- |
|
361 RESOURCE TBUF r_smilplayer_presentation_duration |
|
362 { |
|
363 buf = qtn_smil_presentation_duration; |
|
364 } |
|
365 |
|
366 // ---------------------------------------------------------------------------- |
|
367 // |
|
368 // r_smilplayer_confirm_open |
|
369 // The string for the open page confirmation dialog |
|
370 // |
|
371 // ---------------------------------------------------------------------------- |
|
372 RESOURCE TBUF r_smilplayer_confirm_open |
|
373 { |
|
374 buf = qtn_smil_quest_open; |
|
375 } |
|
376 |
|
377 // ---------------------------------------------------------------------------- |
|
378 // |
|
379 // r_smilplayer_confirm_mailto |
|
380 // The string for the mail to confirmation dialog |
|
381 // |
|
382 // ---------------------------------------------------------------------------- |
|
383 RESOURCE TBUF r_smilplayer_confirm_mailto |
|
384 { |
|
385 buf = qtn_smil_quest_mail; |
|
386 } |
|
387 |
|
388 // ---------------------------------------------------------------------------- |
|
389 // |
|
390 // r_smilplayer_confirm_call |
|
391 // The string for the call to confirmation dialog |
|
392 // |
|
393 // ---------------------------------------------------------------------------- |
|
394 RESOURCE TBUF r_smilplayer_confirm_callto |
|
395 { |
|
396 buf = qtn_smil_quest_call; |
|
397 } |
|
398 |
|
399 // ---------------------------------------------------------------------------- |
|
400 // |
|
401 // r_wait_note |
|
402 // The wait note during presentation is loading |
|
403 // |
|
404 // ---------------------------------------------------------------------------- |
|
405 RESOURCE DIALOG r_wait_note |
|
406 { |
|
407 flags = EAknWaitNoteFlags; |
|
408 buttons = R_AVKON_SOFTKEYS_EMPTY; |
|
409 items= |
|
410 { |
|
411 DLG_LINE |
|
412 { |
|
413 type = EAknCtNote; |
|
414 id = ESmilPlayerWaitNoteId; |
|
415 control= AVKON_NOTE |
|
416 { |
|
417 layout = EWaitLayout; |
|
418 singular_label = qtn_mms_wait_presentation_loading; |
|
419 animation =R_QGN_GRAF_WAIT_BAR_ANIM; |
|
420 }; |
|
421 } |
|
422 }; |
|
423 } |
|
424 |
|
425 // ---------------------------------------------------------------------------- |
|
426 // |
|
427 // r_smilplayer_confirm_query |
|
428 // The confirm dialog shown to the user |
|
429 // |
|
430 // ---------------------------------------------------------------------------- |
|
431 RESOURCE DIALOG r_smilplayer_confirm_query |
|
432 { |
|
433 flags = EGeneralQueryFlags; |
|
434 buttons = R_AVKON_SOFTKEYS_YES_NO__YES; |
|
435 items = |
|
436 { |
|
437 DLG_LINE |
|
438 { |
|
439 type = EAknCtQuery; |
|
440 id = EGeneralQuery; |
|
441 control = AVKON_CONFIRMATION_QUERY |
|
442 { |
|
443 layout = EConfirmationQueryLayout; |
|
444 bmpfile = AVKON_ICON_FILE; |
|
445 bmpid = EMbmAvkonQgn_note_query; |
|
446 bmpmask = EMbmAvkonQgn_note_query_mask; |
|
447 animation = R_QGN_NOTE_QUERY_ANIM; |
|
448 }; |
|
449 } |
|
450 }; |
|
451 } |
|
452 |
|
453 // ---------------------------------------------------------------------------- |
|
454 // |
|
455 // r_smilplayer_call_interest |
|
456 // AIW intrest definition for call functionality |
|
457 // |
|
458 // ---------------------------------------------------------------------------- |
|
459 RESOURCE AIW_INTEREST r_smilplayer_call_interest |
|
460 { |
|
461 items= |
|
462 { |
|
463 AIW_CRITERIA_ITEM |
|
464 { |
|
465 id = KAiwCmdCall; // serviceCmd used here also as ID |
|
466 serviceCmd = KAiwCmdCall; |
|
467 contentType = "*"; |
|
468 serviceClass = KAiwClassMenu; |
|
469 defaultProvider = 0x101F868E; |
|
470 maxProviders = 1; |
|
471 } |
|
472 }; |
|
473 } |
|
474 |
|
475 // End of File |
|
476 |
|
477 // ---------------------------------------------------------------------------- |