1 /* |
|
2 * Copyright (c) 2005-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: Phonebook 2 touchable fixed dialing view definition. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // -------------------------------------------------------------------------- |
|
20 // FDN contact view |
|
21 // -------------------------------------------------------------------------- |
|
22 // |
|
23 RESOURCE VPBK_CONTACT_VIEW r_psu2_fdn_contacts_view |
|
24 { |
|
25 uri = KVPBK_SIM_GLOBAL_FDN_URI; |
|
26 flags = EVPbkContactViewFlagsNone; |
|
27 subViews = {}; |
|
28 } |
|
29 |
|
30 // -------------------------------------------------------------------------- |
|
31 // Avkon view definition |
|
32 // -------------------------------------------------------------------------- |
|
33 // |
|
34 RESOURCE AVKON_VIEW r_psu2_fixed_dialing_appview |
|
35 { |
|
36 menubar = r_psu2_fixed_dialing_menubar; |
|
37 cba = R_AVKON_SOFTKEYS_BACK; |
|
38 } |
|
39 |
|
40 // -------------------------------------------------------------------------- |
|
41 // Menu bar |
|
42 // -------------------------------------------------------------------------- |
|
43 // |
|
44 RESOURCE MENU_BAR r_psu2_fixed_dialing_menubar |
|
45 { |
|
46 titles = |
|
47 { |
|
48 MENU_TITLE |
|
49 { |
|
50 menu_pane = R_PHONEBOOK2_SYSTEM_MENU; |
|
51 }, |
|
52 MENU_TITLE |
|
53 { |
|
54 menu_pane = r_psu2_fixed_dialing_copy_menupane; |
|
55 }, |
|
56 MENU_TITLE |
|
57 { |
|
58 menu_pane = R_AVKON_MENUPANE_MARKABLE_LIST; |
|
59 }, |
|
60 MENU_TITLE |
|
61 { |
|
62 menu_pane = r_psu2_fixed_dialing_menupane; |
|
63 }, |
|
64 MENU_TITLE |
|
65 { |
|
66 menu_pane = R_PHONEBOOK2_STYLUS_CALL_MENU; |
|
67 }, |
|
68 MENU_TITLE |
|
69 { |
|
70 menu_pane = r_psu2_fixed_dialing_open_menupane; |
|
71 } |
|
72 }; |
|
73 } |
|
74 |
|
75 // -------------------------------------------------------------------------- |
|
76 // Context menu bar |
|
77 // -------------------------------------------------------------------------- |
|
78 // |
|
79 RESOURCE MENU_BAR r_psu2_fixed_dialing_context_menubar |
|
80 { |
|
81 titles = |
|
82 { |
|
83 MENU_TITLE |
|
84 { |
|
85 menu_pane = R_PHONEBOOK2_MARKABLE_LIST_CONTEXT_MENU; |
|
86 }, |
|
87 MENU_TITLE |
|
88 { |
|
89 menu_pane = r_psu2_fixed_dialing_copy_context_menupane; |
|
90 }, |
|
91 MENU_TITLE |
|
92 { |
|
93 menu_pane = r_psu2_fixed_dialing_newcontact_menupane; |
|
94 }, |
|
95 MENU_TITLE |
|
96 { |
|
97 menu_pane = r_psu2_fixed_dialing_delete_menupane; |
|
98 } |
|
99 }; |
|
100 } |
|
101 |
|
102 // -------------------------------------------------------------------------- |
|
103 // Menu pane |
|
104 // -------------------------------------------------------------------------- |
|
105 // |
|
106 RESOURCE MENU_PANE r_psu2_fixed_dialing_menupane |
|
107 { |
|
108 items= |
|
109 { |
|
110 MENU_ITEM |
|
111 { |
|
112 command = EPsu2CmdActivateFDN; |
|
113 txt = qtn_fdn_activate_fdn; |
|
114 }, |
|
115 MENU_ITEM |
|
116 { |
|
117 command = EPsu2CmdDeactivateFDN; |
|
118 txt = qtn_fdn_deactivate_fdn; |
|
119 }, |
|
120 MENU_ITEM |
|
121 { |
|
122 command = EPsu2CmdNewContact; |
|
123 txt = qtn_simp_opt_entry_create; |
|
124 }, |
|
125 MENU_ITEM |
|
126 { |
|
127 command = EPbk2CmdEditMe; |
|
128 txt = qtn_phob_opt_entry_edit; |
|
129 flags = EEikMenuItemSpecific; |
|
130 }, |
|
131 MENU_ITEM |
|
132 { |
|
133 command = EPbk2CmdDeleteMe; |
|
134 txt = qtn_phob_opt_entry_delete; |
|
135 flags = EEikMenuItemSpecific; |
|
136 } |
|
137 }; |
|
138 } |
|
139 |
|
140 // -------------------------------------------------------------------------- |
|
141 // Open menu pane |
|
142 // -------------------------------------------------------------------------- |
|
143 // |
|
144 RESOURCE MENU_PANE r_psu2_fixed_dialing_open_menupane |
|
145 { |
|
146 items= |
|
147 { |
|
148 MENU_ITEM |
|
149 { |
|
150 command = EPsu2CmdOpenFixedDialingInfoView; |
|
151 txt = qtn_simp_opt_entry_view; |
|
152 flags = EEikMenuItemAction; |
|
153 } |
|
154 }; |
|
155 } |
|
156 |
|
157 // -------------------------------------------------------------------------- |
|
158 // Delete menu pane |
|
159 // -------------------------------------------------------------------------- |
|
160 // |
|
161 RESOURCE MENU_PANE r_psu2_fixed_dialing_delete_menupane |
|
162 { |
|
163 items= |
|
164 { |
|
165 MENU_ITEM |
|
166 { |
|
167 command = EPbk2CmdDeleteMe; |
|
168 txt = qtn_phob_opt_entry_delete; |
|
169 } |
|
170 }; |
|
171 } |
|
172 |
|
173 // -------------------------------------------------------------------------- |
|
174 // New contact menu pane |
|
175 // -------------------------------------------------------------------------- |
|
176 // |
|
177 RESOURCE MENU_PANE r_psu2_fixed_dialing_newcontact_menupane |
|
178 { |
|
179 items= |
|
180 { |
|
181 MENU_ITEM |
|
182 { |
|
183 command = EPsu2CmdNewContact; |
|
184 txt = qtn_simp_opt_entry_create; |
|
185 } |
|
186 }; |
|
187 } |
|
188 |
|
189 // -------------------------------------------------------------------------- |
|
190 // Copy menu pane |
|
191 // -------------------------------------------------------------------------- |
|
192 // |
|
193 RESOURCE MENU_PANE r_psu2_fixed_dialing_copy_menupane |
|
194 { |
|
195 items= |
|
196 { |
|
197 MENU_ITEM |
|
198 { |
|
199 command = EPbk2CmdCopy; |
|
200 txt = qtn_simp_opt_copy_to_pb; |
|
201 flags = EEikMenuItemSpecific; |
|
202 }, |
|
203 MENU_ITEM |
|
204 { |
|
205 command = EPsu2CmdCopyFromContacts; |
|
206 txt = qtn_fdn_opt_copy_from_pb; |
|
207 } |
|
208 }; |
|
209 } |
|
210 |
|
211 // -------------------------------------------------------------------------- |
|
212 // Copy context menu pane |
|
213 // -------------------------------------------------------------------------- |
|
214 // |
|
215 RESOURCE MENU_PANE r_psu2_fixed_dialing_copy_context_menupane |
|
216 { |
|
217 items= |
|
218 { |
|
219 MENU_ITEM |
|
220 { |
|
221 command = EPbk2CmdCopy; |
|
222 txt = qtn_simp_opt_copy_to_pb; |
|
223 }, |
|
224 MENU_ITEM |
|
225 { |
|
226 command = EPsu2CmdCopyFromContacts; |
|
227 txt = qtn_fdn_opt_copy_from_pb; |
|
228 } |
|
229 }; |
|
230 } |
|
231 // -------------------------------------------------------------------------- |
|
232 // Names list control |
|
233 // -------------------------------------------------------------------------- |
|
234 // |
|
235 RESOURCE PBK2_CONTACT_CONTROL r_psu2_fixed_dialing_name_list_control |
|
236 { |
|
237 // Flags |
|
238 flags = KPbk2ContactViewListControlUpdateContextPane | KPbk2ContactViewListControlFindBox; |
|
239 // Listbox resource |
|
240 listbox = LISTBOX |
|
241 { |
|
242 flags = EAknListBoxStylusMarkableList|EAknListBoxLoopScrolling; |
|
243 }; |
|
244 // Optional link to an icon array resource, see PBK2_ICON_ARRAY |
|
245 iconArray = R_PBK2_FIELDTYPE_ICONS; |
|
246 // Empty icon id in iconArray(s) |
|
247 emptyIconId = PHONEBOOK2_ICON_ID |
|
248 { |
|
249 ownerUid = KPbk2UID3; |
|
250 id = EPbk2qgn_prop_nrtyp_empty; |
|
251 }; |
|
252 defaultIconId = PHONEBOOK2_ICON_ID |
|
253 { |
|
254 ownerUid = KPbk2UID3; |
|
255 id = EPbk2qgn_prop_nrtyp_phone; |
|
256 }; |
|
257 } |
|
258 |
|
259 // -------------------------------------------------------------------------- |
|
260 // Tabs |
|
261 // -------------------------------------------------------------------------- |
|
262 // |
|
263 RESOURCE PBK2_VIEW_NODE_TAB_ARRAY r_psu2_fixed_dialing_view_tabs |
|
264 { |
|
265 items = |
|
266 { |
|
267 PBK2_VIEW_NODE_TAB |
|
268 { |
|
269 version = 0; |
|
270 tabsInGroup = 1; |
|
271 tab = r_psu2_fixed_dialing_view_tab1; |
|
272 } |
|
273 }; |
|
274 } |
|
275 |
|
276 // -------------------------------------------------------------------------- |
|
277 // Tab |
|
278 // -------------------------------------------------------------------------- |
|
279 // |
|
280 RESOURCE TAB r_psu2_fixed_dialing_view_tab1 |
|
281 { |
|
282 id = EPsu2FixedDialingViewId; |
|
283 } |
|
284 |
|
285 // -------------------------------------------------------------------------- |
|
286 // A dialog for asking fixed dialling phone number |
|
287 // -------------------------------------------------------------------------- |
|
288 // |
|
289 RESOURCE DIALOG r_psu2_fdn_numberquery_dialog |
|
290 { |
|
291 flags= EAknGeneralQueryFlags; |
|
292 buttons=R_AVKON_SOFTKEYS_CALL_CANCEL__CALL; |
|
293 items= |
|
294 { |
|
295 DLG_LINE |
|
296 { |
|
297 type=EAknCtQuery; |
|
298 id=EGeneralQuery; |
|
299 control=AVKON_DATA_QUERY |
|
300 { |
|
301 layout = EPhoneLayout; |
|
302 label = qtn_fdn_enter_number_to_call; |
|
303 control= EDWIN |
|
304 { |
|
305 }; |
|
306 }; |
|
307 } |
|
308 }; |
|
309 } |
|
310 |
|
311 // -------------------------------------------------------------------------- |
|
312 // Name formatting field types |
|
313 // -------------------------------------------------------------------------- |
|
314 // |
|
315 RESOURCE VPBK_FIELD_TYPE_MAPPING_LIST r_psu2_fdn_name_display_order |
|
316 { |
|
317 items = |
|
318 { |
|
319 /// Top contact indicator / Top contact internal order |
|
320 VPBK_FIELD_TYPE_MAPPING |
|
321 { |
|
322 versitProperty = VBK_FIELD_VERSIT_PROPERTY |
|
323 { |
|
324 name = EVPbkVersitNameTopContact; |
|
325 }; |
|
326 }, |
|
327 // Last name |
|
328 VPBK_FIELD_TYPE_MAPPING |
|
329 { |
|
330 versitProperty = VBK_FIELD_VERSIT_PROPERTY |
|
331 { |
|
332 name = EVPbkVersitNameN; |
|
333 subField = EVPbkVersitSubFieldFamilyName; |
|
334 }; |
|
335 }, |
|
336 // First name |
|
337 VPBK_FIELD_TYPE_MAPPING |
|
338 { |
|
339 versitProperty = VBK_FIELD_VERSIT_PROPERTY |
|
340 { |
|
341 name = EVPbkVersitNameN; |
|
342 subField = EVPbkVersitSubFieldGivenName; |
|
343 }; |
|
344 }, |
|
345 /// Last name reading |
|
346 VPBK_FIELD_TYPE_MAPPING |
|
347 { |
|
348 versitProperty = VBK_FIELD_VERSIT_PROPERTY |
|
349 { |
|
350 name = EVPbkVersitNameSOUND; |
|
351 subField = EVPbkVersitSubFieldFamilyNamePronunciation; |
|
352 }; |
|
353 }, |
|
354 /// First name reading |
|
355 VPBK_FIELD_TYPE_MAPPING |
|
356 { |
|
357 versitProperty = VBK_FIELD_VERSIT_PROPERTY |
|
358 { |
|
359 name = EVPbkVersitNameSOUND; |
|
360 subField = EVPbkVersitSubFieldGivenNamePronunciation; |
|
361 }; |
|
362 }, |
|
363 // SIM GSM number = general mobile |
|
364 VPBK_FIELD_TYPE_MAPPING |
|
365 { |
|
366 versitProperty = VBK_FIELD_VERSIT_PROPERTY |
|
367 { |
|
368 name = EVPbkVersitNameTEL; |
|
369 parameters = |
|
370 { |
|
371 EVPbkVersitParamCELL |
|
372 }; |
|
373 }; |
|
374 }, |
|
375 // Generic label |
|
376 VPBK_FIELD_TYPE_MAPPING |
|
377 { |
|
378 versitProperty = VBK_FIELD_VERSIT_PROPERTY {}; |
|
379 nonVersitType = EVPbkNonVersitTypeGenericLabel; |
|
380 } |
|
381 }; |
|
382 } |
|
383 |
|
384 // -------------------------------------------------------------------------- |
|
385 // Title field selector |
|
386 // -------------------------------------------------------------------------- |
|
387 // |
|
388 RESOURCE VPBK_FIELD_TYPE_SELECTOR r_psu2_fdn_title_field_selector |
|
389 { |
|
390 versitProperties = |
|
391 { |
|
392 // Last name |
|
393 VBK_FIELD_VERSIT_PROPERTY |
|
394 { |
|
395 name = EVPbkVersitNameN; |
|
396 subField = EVPbkVersitSubFieldFamilyName; |
|
397 }, |
|
398 // SIM GSM number = general mobile |
|
399 VBK_FIELD_VERSIT_PROPERTY |
|
400 { |
|
401 name = EVPbkVersitNameTEL; |
|
402 parameters = { EVPbkVersitParamCELL }; |
|
403 } |
|
404 }; |
|
405 nonVersitType = |
|
406 { |
|
407 EVPbkNonVersitTypeGenericLabel |
|
408 }; |
|
409 } |
|
410 |
|
411 // End of File |
|