|
1 /* |
|
2 * Copyright (c) 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 NAME RAPI |
|
20 |
|
21 #include <eikon.rh> |
|
22 #include <EIKCORE.rsg> |
|
23 #include <avkon.rsg> |
|
24 #include <avkon.rh> |
|
25 #include <avkon.mbg> |
|
26 #include <avkon.loc> |
|
27 #include <badef.rh> |
|
28 #include <appinfo.rh> |
|
29 #include <AvkonIcons.hrh> |
|
30 #include <vuivoicerecognition.loc> |
|
31 #include <data_caging_paths_strings.hrh> |
|
32 |
|
33 #include "vuivoicerecognition.hrh" |
|
34 |
|
35 // CONSTANTS |
|
36 #define KVoiceStartSoundFile "z:\\system\\sounds\\digital\\namediallerstarttone.wav" |
|
37 #define KVoiceConfirmationSoundFile "z:\\system\\sounds\\digital\\namediallerconfirmtone.wav" |
|
38 |
|
39 RESOURCE RSS_SIGNATURE { } |
|
40 |
|
41 RESOURCE TBUF { buf = r_main_view_title; } |
|
42 |
|
43 RESOURCE EIK_APP_INFO |
|
44 { |
|
45 status_pane = r_main_status_pane; |
|
46 } |
|
47 |
|
48 //----------------------------------------------------------------------------- |
|
49 // |
|
50 // r_main_status_pane |
|
51 // Status pane for main view. |
|
52 // |
|
53 //----------------------------------------------------------------------------- |
|
54 // |
|
55 RESOURCE STATUS_PANE_APP_MODEL r_main_status_pane |
|
56 { |
|
57 //Set status pane as empty to fix layouts |
|
58 layout = R_AVKON_STATUS_PANE_LAYOUT_EMPTY; |
|
59 panes = |
|
60 { |
|
61 SPANE_PANE |
|
62 { |
|
63 id = EEikStatusPaneUidTitle; |
|
64 type = EAknCtTitlePane; |
|
65 resource = r_main_view_title; |
|
66 } |
|
67 }; |
|
68 } |
|
69 |
|
70 //----------------------------------------------------------------------------- |
|
71 // |
|
72 // r_localisable_app_info |
|
73 // menu captions and application icon |
|
74 // |
|
75 //----------------------------------------------------------------------------- |
|
76 // |
|
77 RESOURCE LOCALISABLE_APP_INFO r_localisable_app_info |
|
78 { |
|
79 short_caption = qtn_sivc_appl_grid; |
|
80 caption_and_icon = |
|
81 CAPTION_AND_ICON_INFO |
|
82 { |
|
83 caption = qtn_sivc_appl_list; |
|
84 number_of_icons = 1; |
|
85 icon_file = APP_BITMAP_DIR"\\vuivoicerecognition_aif.mif"; |
|
86 }; |
|
87 } |
|
88 |
|
89 //----------------------------------------------------------------------------- |
|
90 // |
|
91 // r_main_view_title |
|
92 // Main view's title. |
|
93 // |
|
94 //----------------------------------------------------------------------------- |
|
95 // |
|
96 RESOURCE TITLE_PANE r_main_view_title |
|
97 { |
|
98 txt = qtn_sivc_title; |
|
99 } |
|
100 |
|
101 //---------------------------------------------------- |
|
102 // |
|
103 // r_softkeys_select_quit__select |
|
104 // N-Best list cba buttons |
|
105 // |
|
106 //---------------------------------------------------- |
|
107 // |
|
108 RESOURCE CBA r_softkeys_select_quit__select |
|
109 { |
|
110 buttons = |
|
111 { |
|
112 CBA_BUTTON { id=EVoiceTagSoftKeySelect; txt=text_softkey_select; }, |
|
113 CBA_BUTTON { id=EVoiceTagSoftKeyQuit; txt=text_softkey_quit; }, |
|
114 CBA_BUTTON { id=EVoiceTagSoftKeySelect; txt=qtn_msk_select; } |
|
115 }; |
|
116 } |
|
117 |
|
118 //---------------------------------------------------- |
|
119 // |
|
120 // r_softkeys_select_quit__select |
|
121 // N-Best list cba buttons |
|
122 // |
|
123 //---------------------------------------------------- |
|
124 // |
|
125 RESOURCE CBA r_softkeys_options_quit__select |
|
126 { |
|
127 buttons = |
|
128 { |
|
129 CBA_BUTTON { id=EAknSoftkeyOptions; txt=text_softkey_option; }, |
|
130 CBA_BUTTON { id=EVoiceTagSoftKeyQuit; txt=text_softkey_quit; }, |
|
131 CBA_BUTTON { id=EVoiceTagSoftKeySelect; txt=qtn_msk_select; } |
|
132 }; |
|
133 } |
|
134 |
|
135 //---------------------------------------------------- |
|
136 // |
|
137 // r_softkeys_next_cancel__next |
|
138 // Tutorial message cba buttons |
|
139 // |
|
140 //---------------------------------------------------- |
|
141 // |
|
142 RESOURCE CBA r_softkeys_next_cancel__next |
|
143 { |
|
144 buttons = |
|
145 { |
|
146 CBA_BUTTON { id=EVoiceInfoSoftKeyNext; txt=qtn_vc_softkey_next; }, |
|
147 CBA_BUTTON { id=EVoiceInfoSoftKeyCancel; txt=text_softkey_cancel; }, |
|
148 CBA_BUTTON { id=EVoiceInfoSoftKeyNext; txt=qtn_vc_softkey_next; } |
|
149 }; |
|
150 } |
|
151 |
|
152 //---------------------------------------------------- |
|
153 // |
|
154 // r_softkeys_activate_cancel__activate |
|
155 // Tutorial message cba buttons |
|
156 // |
|
157 //---------------------------------------------------- |
|
158 // |
|
159 RESOURCE CBA r_softkeys_activate_cancel__activate |
|
160 { |
|
161 buttons = |
|
162 { |
|
163 CBA_BUTTON { id=EVoiceInfoSoftKeyActivate; txt=qtn_vc_softkey_activate; }, |
|
164 CBA_BUTTON { id=EVoiceInfoSoftKeyCancel; txt=text_softkey_cancel; }, |
|
165 CBA_BUTTON { id=EVoiceInfoSoftKeyActivate; txt=qtn_vc_softkey_activate; } |
|
166 }; |
|
167 } |
|
168 |
|
169 //---------------------------------------------------- |
|
170 // |
|
171 // r_softkeys_ok_cancel__ok |
|
172 // Verification query cba buttons |
|
173 // |
|
174 //---------------------------------------------------- |
|
175 // |
|
176 RESOURCE CBA r_softkeys_ok_cancel__ok |
|
177 { |
|
178 buttons = |
|
179 { |
|
180 CBA_BUTTON { id=EVoiceTagSoftKeySelect; txt=text_softkey_ok; }, |
|
181 CBA_BUTTON { id=EVoiceTagSoftKeyCancel; txt=text_softkey_cancel; }, |
|
182 CBA_BUTTON { id=EVoiceTagSoftKeySelect; txt=text_softkey_ok; } |
|
183 }; |
|
184 } |
|
185 |
|
186 //---------------------------------------------------- |
|
187 // |
|
188 // r_progressnote |
|
189 // Speak now progress dialog |
|
190 // |
|
191 //---------------------------------------------------- |
|
192 // |
|
193 RESOURCE DIALOG r_progressnote |
|
194 { |
|
195 flags = EAknProgressNoteFlags; |
|
196 buttons = R_AVKON_SOFTKEYS_QUIT; |
|
197 items = |
|
198 { |
|
199 DLG_LINE |
|
200 { |
|
201 type = EAknCtNote; |
|
202 id = EProgressDialogId; |
|
203 control = AVKON_NOTE |
|
204 { |
|
205 layout = EProgressLayout; |
|
206 }; |
|
207 } |
|
208 }; |
|
209 } |
|
210 |
|
211 //---------------------------------------------------- |
|
212 // |
|
213 // r_message_query |
|
214 // Tutorial message dialog |
|
215 // |
|
216 //---------------------------------------------------- |
|
217 // |
|
218 RESOURCE DIALOG r_message_query |
|
219 { |
|
220 flags = EGeneralQueryFlags | EEikDialogFlagNoBorder | EEikDialogFlagNoShadow; |
|
221 buttons = r_softkeys_select_quit__select; |
|
222 items= |
|
223 { |
|
224 DLG_LINE |
|
225 { |
|
226 type = EAknCtPopupHeadingPane; |
|
227 id = EAknMessageQueryHeaderId; |
|
228 itemflags = EEikDlgItemNonFocusing; |
|
229 control = AVKON_HEADING |
|
230 { |
|
231 }; |
|
232 }, |
|
233 DLG_LINE |
|
234 { |
|
235 type = EAknCtMessageQuery; |
|
236 id = EAknMessageQueryContentId; |
|
237 control = AVKON_MESSAGE_QUERY |
|
238 { |
|
239 }; |
|
240 } |
|
241 }; |
|
242 } |
|
243 |
|
244 // --------------------------------------------------------- |
|
245 // |
|
246 // r_nbest_options_menu |
|
247 // Menu title definition |
|
248 // |
|
249 // --------------------------------------------------------- |
|
250 // |
|
251 RESOURCE MENU_BAR r_nbest_options_menu |
|
252 { |
|
253 titles = |
|
254 { |
|
255 MENU_TITLE |
|
256 { |
|
257 menu_pane = r_nbest_menu_pane; |
|
258 } |
|
259 }; |
|
260 } |
|
261 |
|
262 // --------------------------------------------------------- |
|
263 // |
|
264 // r_nbest_menu_pane |
|
265 // Menu for "Options" |
|
266 // |
|
267 // --------------------------------------------------------- |
|
268 // |
|
269 RESOURCE MENU_PANE r_nbest_menu_pane |
|
270 { |
|
271 items = |
|
272 { |
|
273 MENU_ITEM |
|
274 { |
|
275 command = EVoiceTagSoftKeySelect; txt = qtn_vc_options_select; |
|
276 }, |
|
277 MENU_ITEM |
|
278 { |
|
279 command = EVoiceTagSoftKeyOpen; txt = qtn_vc_nbest_options_open_contact; |
|
280 }, |
|
281 MENU_ITEM |
|
282 { |
|
283 command = EVoiceTagSoftKeyQuit; txt = qtn_vc_nbest_options_quit; |
|
284 } |
|
285 }; |
|
286 } |
|
287 |
|
288 //---------------------------------------------------- |
|
289 // |
|
290 // r_nbest_popup_list |
|
291 // N-Best List query dialog |
|
292 // |
|
293 //---------------------------------------------------- |
|
294 // |
|
295 RESOURCE AVKON_LIST_QUERY r_nbest_popup_list |
|
296 { |
|
297 flags = EGeneralQueryFlags; |
|
298 softkeys = r_softkeys_select_quit__select; |
|
299 items = |
|
300 { |
|
301 AVKON_LIST_QUERY_DLG_LINE |
|
302 { |
|
303 type = EAknCtListQueryControl; |
|
304 id = EListQueryControl; |
|
305 control = AVKON_LIST_QUERY_CONTROL |
|
306 { |
|
307 listtype = EAknCtDoubleGraphicPopupMenuListBox; |
|
308 listbox = AVKON_LIST_QUERY_LIST; |
|
309 heading = qtn_vc_nbest_list_header; |
|
310 }; |
|
311 } |
|
312 }; |
|
313 } |
|
314 |
|
315 RESOURCE ARRAY r_verification_query_item |
|
316 { |
|
317 items = |
|
318 { |
|
319 LBUF { txt = qtn_vc_verification_select; }, |
|
320 LBUF { txt = qtn_vc_verification_other; }, |
|
321 LBUF { txt = qtn_vc_verification_cancel; } |
|
322 }; |
|
323 } |
|
324 |
|
325 //---------------------------------------------------- |
|
326 // |
|
327 // r_verification_query |
|
328 // Verification query dialog |
|
329 // |
|
330 //---------------------------------------------------- |
|
331 // |
|
332 RESOURCE AVKON_LIST_QUERY r_verification_query |
|
333 { |
|
334 flags = EGeneralQueryFlags; |
|
335 softkeys = r_softkeys_ok_cancel__ok; |
|
336 items = |
|
337 { |
|
338 AVKON_LIST_QUERY_DLG_LINE |
|
339 { |
|
340 control = AVKON_LIST_QUERY_CONTROL |
|
341 { |
|
342 listtype = EAknCtSinglePopupMenuListBox; |
|
343 listbox = AVKON_LIST_QUERY_LIST |
|
344 { |
|
345 array_id = r_verification_query_item; |
|
346 }; |
|
347 heading = " "; |
|
348 }; |
|
349 } |
|
350 }; |
|
351 } |
|
352 |
|
353 |
|
354 //---------------------------------------------------- |
|
355 // |
|
356 // r_nbest_row_format |
|
357 // Row format for N-Best List listbox |
|
358 // |
|
359 //---------------------------------------------------- |
|
360 // |
|
361 RESOURCE TBUF r_nbest_row_format |
|
362 { |
|
363 buf = "%U\t%U\t"; |
|
364 } |
|
365 |
|
366 |
|
367 //---------------------------------------------------- |
|
368 // |
|
369 // r_voice_start_sound_path |
|
370 // Path to a sound file to play when starting voice dialing |
|
371 // |
|
372 //---------------------------------------------------- |
|
373 // |
|
374 RESOURCE TBUF r_voice_start_sound_path |
|
375 { |
|
376 buf = KVoiceStartSoundFile; |
|
377 } |
|
378 |
|
379 //---------------------------------------------------- |
|
380 // |
|
381 // r_voice_confirmation_sound_path |
|
382 // Path to a sound file to play when starting an application |
|
383 // |
|
384 //---------------------------------------------------- |
|
385 // |
|
386 RESOURCE TBUF r_voice_confirmation_sound_path |
|
387 { |
|
388 buf = KVoiceConfirmationSoundFile; |
|
389 } |
|
390 |
|
391 RESOURCE TBUF r_text_voice_system_error { buf = text_voice_system_error; } |
|
392 RESOURCE TBUF r_text_voice_no_matches { buf = text_voice_no_matches; } |
|
393 RESOURCE TBUF r_text_call_in_progress { buf = text_call_in_progress; } |
|
394 RESOURCE TBUF r_text_voice_no_tag { buf = text_voice_no_tag; } |
|
395 |
|
396 RESOURCE TBUF r_text_voice_speak_now { buf = text_voice_speak_now; } |
|
397 RESOURCE TBUF r_qan_vc_tts_dialling { buf = qan_vc_tts_dialling; } |
|
398 |
|
399 RESOURCE TBUF r_qtn_vc_nbest_list_header { buf = qtn_vc_nbest_list_header; } |
|
400 |
|
401 RESOURCE TBUF r_qan_vc_verification_query { buf = qan_vc_verification_query; } |
|
402 RESOURCE TBUF r_qan_vc_verification_select { buf = qan_vc_verification_select; } |
|
403 RESOURCE TBUF r_qan_vc_verification_other { buf = qan_vc_verification_other; } |
|
404 RESOURCE TBUF r_qan_vc_verification_cancel { buf = qan_vc_verification_cancel; } |
|
405 |
|
406 // SIND Demo |
|
407 RESOURCE TBUF r_text_sind_tutorial_page_intro_title { buf = qtn_vc_tutorial_page1_title; } |
|
408 RESOURCE TBUF r_text_sind_tutorial_page_intro_text_up { buf = qtn_vc_tutorial_page1_text_up; } |
|
409 RESOURCE TBUF r_text_sind_tutorial_page_intro_text_down { buf = qtn_vc_tutorial_page1_text_down; } |
|
410 RESOURCE TBUF r_text_sind_tutorial_page_command_title { buf = qtn_vc_tutorial_page2_title; } |
|
411 RESOURCE TBUF r_text_sind_tutorial_page_command_text_up { buf = qtn_vc_tutorial_page2_text_up; } |
|
412 RESOURCE TBUF r_text_sind_tutorial_page_command_text_down { buf = qtn_vc_tutorial_page2_text_down; } |
|
413 RESOURCE TBUF r_text_sind_tutorial_page_dial_title { buf = qtn_vc_tutorial_page3_title; } |
|
414 RESOURCE TBUF r_text_sind_tutorial_page_dial_text_up { buf = qtn_vc_tutorial_page3_text_up; } |
|
415 RESOURCE TBUF r_text_sind_tutorial_page_dial_text_down { buf = qtn_vc_tutorial_page3_text_down; } |
|
416 RESOURCE TBUF r_text_sind_tutorial_page_other_title { buf = qtn_vc_tutorial_page4_title; } |
|
417 RESOURCE TBUF r_text_sind_tutorial_page_other_text_up { buf = qtn_vc_tutorial_page4_text_up; } |
|
418 RESOURCE TBUF r_text_sind_tutorial_page_other_text_down { buf = qtn_vc_tutorial_page4_text_down; } |
|
419 RESOURCE TBUF r_text_sind_tutorial_page_try_title { buf = qtn_vc_tutorial_page5_title; } |
|
420 RESOURCE TBUF r_text_sind_tutorial_page_try_text_up { buf = qtn_vc_tutorial_page5_text_up; } |
|
421 RESOURCE TBUF r_text_sind_tutorial_page_try_text_down { buf = qtn_vc_tutorial_page5_text_down; } |
|
422 RESOURCE TBUF r_text_sind_tutorial_page_best_title { buf = qtn_vc_tutorial_page_results_title; } |
|
423 RESOURCE TBUF r_text_sind_tutorial_page_best_text_up { buf = qtn_vc_tutorial_page6_text_up; } |
|
424 RESOURCE TBUF r_text_sind_tutorial_page_best_text_down { buf = qtn_vc_tutorial_page6_text_down; } |
|
425 RESOURCE TBUF r_text_sind_tutorial_page_activation_title { buf = qtn_vc_tutorial_page7_title; } |
|
426 RESOURCE TBUF r_text_sind_tutorial_page_activation_text { buf = qtn_vc_tutorial_page7_text; } |
|
427 RESOURCE TBUF r_text_sind_tutorial_page_error_title { buf = qtn_vc_tutorial_page_error_title; } |
|
428 RESOURCE TBUF r_text_sind_tutorial_page_error_text_up { buf = qtn_vc_tutorial_page_error_text_up; } |
|
429 RESOURCE TBUF r_text_sind_tutorial_page_error_text_down { buf = qtn_vc_tutorial_page_error_text_down; } |
|
430 RESOURCE TBUF r_text_sind_tutorial_first_time_text_up { buf = qtn_vc_tutorial_first_time1_text_up; } |
|
431 RESOURCE TBUF r_text_sind_tutorial_first_time_text_down { buf = qtn_vc_tutorial_first_time1_text_down; } |
|
432 |