author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Wed, 13 Oct 2010 14:15:33 +0300 | |
branch | RCL_3 |
changeset 85 | 38bb213f60ba |
parent 74 | 6b5524b4f673 |
permissions | -rw-r--r-- |
63 | 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 |
{ |
|
85
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
74
diff
changeset
|
54 |
menu_pane = r_psu2_fixed_dialing_copy_menupane; |
63 | 55 |
}, |
56 |
MENU_TITLE |
|
57 |
{ |
|
85
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
74
diff
changeset
|
58 |
menu_pane = R_AVKON_MENUPANE_MARKABLE_LIST; |
63 | 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 |
numeric_keymap = EAknEditorStandardNumberModeKeymap; |
|
306 |
allowed_input_modes = EAknEditorNumericInputMode; |
|
307 |
default_input_mode = EAknEditorNumericInputMode; |
|
308 |
}; |
|
309 |
}; |
|
310 |
} |
|
311 |
}; |
|
312 |
} |
|
313 |
||
314 |
// -------------------------------------------------------------------------- |
|
315 |
// Name formatting field types |
|
316 |
// -------------------------------------------------------------------------- |
|
317 |
// |
|
318 |
RESOURCE VPBK_FIELD_TYPE_MAPPING_LIST r_psu2_fdn_name_display_order |
|
319 |
{ |
|
320 |
items = |
|
321 |
{ |
|
322 |
/// Top contact indicator / Top contact internal order |
|
323 |
VPBK_FIELD_TYPE_MAPPING |
|
324 |
{ |
|
325 |
versitProperty = VBK_FIELD_VERSIT_PROPERTY |
|
326 |
{ |
|
327 |
name = EVPbkVersitNameTopContact; |
|
328 |
}; |
|
329 |
}, |
|
330 |
// Last name |
|
331 |
VPBK_FIELD_TYPE_MAPPING |
|
332 |
{ |
|
333 |
versitProperty = VBK_FIELD_VERSIT_PROPERTY |
|
334 |
{ |
|
335 |
name = EVPbkVersitNameN; |
|
336 |
subField = EVPbkVersitSubFieldFamilyName; |
|
337 |
}; |
|
338 |
}, |
|
339 |
// First name |
|
340 |
VPBK_FIELD_TYPE_MAPPING |
|
341 |
{ |
|
342 |
versitProperty = VBK_FIELD_VERSIT_PROPERTY |
|
343 |
{ |
|
344 |
name = EVPbkVersitNameN; |
|
345 |
subField = EVPbkVersitSubFieldGivenName; |
|
346 |
}; |
|
347 |
}, |
|
348 |
/// Last name reading |
|
349 |
VPBK_FIELD_TYPE_MAPPING |
|
350 |
{ |
|
351 |
versitProperty = VBK_FIELD_VERSIT_PROPERTY |
|
352 |
{ |
|
353 |
name = EVPbkVersitNameSOUND; |
|
354 |
subField = EVPbkVersitSubFieldFamilyNamePronunciation; |
|
355 |
}; |
|
356 |
}, |
|
357 |
/// First name reading |
|
358 |
VPBK_FIELD_TYPE_MAPPING |
|
359 |
{ |
|
360 |
versitProperty = VBK_FIELD_VERSIT_PROPERTY |
|
361 |
{ |
|
362 |
name = EVPbkVersitNameSOUND; |
|
363 |
subField = EVPbkVersitSubFieldGivenNamePronunciation; |
|
364 |
}; |
|
365 |
}, |
|
366 |
// SIM GSM number = general mobile |
|
367 |
VPBK_FIELD_TYPE_MAPPING |
|
368 |
{ |
|
369 |
versitProperty = VBK_FIELD_VERSIT_PROPERTY |
|
370 |
{ |
|
371 |
name = EVPbkVersitNameTEL; |
|
372 |
parameters = |
|
373 |
{ |
|
374 |
EVPbkVersitParamCELL |
|
375 |
}; |
|
376 |
}; |
|
377 |
}, |
|
378 |
// Generic label |
|
379 |
VPBK_FIELD_TYPE_MAPPING |
|
380 |
{ |
|
381 |
versitProperty = VBK_FIELD_VERSIT_PROPERTY {}; |
|
382 |
nonVersitType = EVPbkNonVersitTypeGenericLabel; |
|
383 |
} |
|
384 |
}; |
|
385 |
} |
|
386 |
||
387 |
// -------------------------------------------------------------------------- |
|
388 |
// Title field selector |
|
389 |
// -------------------------------------------------------------------------- |
|
390 |
// |
|
391 |
RESOURCE VPBK_FIELD_TYPE_SELECTOR r_psu2_fdn_title_field_selector |
|
392 |
{ |
|
393 |
versitProperties = |
|
394 |
{ |
|
395 |
// Last name |
|
396 |
VBK_FIELD_VERSIT_PROPERTY |
|
397 |
{ |
|
398 |
name = EVPbkVersitNameN; |
|
399 |
subField = EVPbkVersitSubFieldFamilyName; |
|
400 |
}, |
|
401 |
// SIM GSM number = general mobile |
|
402 |
VBK_FIELD_VERSIT_PROPERTY |
|
403 |
{ |
|
404 |
name = EVPbkVersitNameTEL; |
|
405 |
parameters = { EVPbkVersitParamCELL }; |
|
406 |
} |
|
407 |
}; |
|
408 |
nonVersitType = |
|
409 |
{ |
|
410 |
EVPbkNonVersitTypeGenericLabel |
|
411 |
}; |
|
412 |
} |
|
413 |
||
414 |
// End of File |