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