|
1 /* |
|
2 * Copyright (c) 2002-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 * This file contains all the resources for Phonebook 2 groups list view. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #include <VPbkFieldType.rh> |
|
21 |
|
22 // --------------------------------------------------------- |
|
23 // Groups List View's main resource |
|
24 // --------------------------------------------------------- |
|
25 // |
|
26 RESOURCE AVKON_VIEW r_phonebook2_groupslist_appview |
|
27 { |
|
28 menubar = r_phonebook2_groupslist_menubar; |
|
29 cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT; |
|
30 } |
|
31 |
|
32 // --------------------------------------------------------- |
|
33 // Groups List View's main menu pane |
|
34 // --------------------------------------------------------- |
|
35 // |
|
36 RESOURCE MENU_PANE r_phonebook2_groupslist_menu |
|
37 { |
|
38 items= |
|
39 { |
|
40 MENU_ITEM |
|
41 { |
|
42 command = EPbk2CmdOpenGroup; |
|
43 txt = qtn_fldr_open_group; |
|
44 flags = EEikMenuItemAction; |
|
45 }, |
|
46 MENU_ITEM |
|
47 { |
|
48 command = EPbk2CmdWriteGroup; |
|
49 txt = qtn_phob_opt_send; |
|
50 flags = EEikMenuItemSpecific; |
|
51 }, |
|
52 MENU_ITEM |
|
53 { |
|
54 command = EPbk2CmdCreateNewGroup; |
|
55 txt = qtn_fldr_new_group; |
|
56 }, |
|
57 MENU_ITEM |
|
58 { |
|
59 command = EPbk2CmdRenameGroup; |
|
60 txt = qtn_fldr_rename_group; |
|
61 flags = EEikMenuItemSpecific; |
|
62 }, |
|
63 MENU_ITEM |
|
64 { |
|
65 command = EPbk2CmdSetToneToGroup; |
|
66 txt = qtn_phob_opt_group_rtone; |
|
67 flags = EEikMenuItemSpecific; |
|
68 }, |
|
69 MENU_ITEM |
|
70 { |
|
71 command = EPbk2CmdRemoveGroup; |
|
72 txt = qtn_fldr_delete_group; |
|
73 flags = EEikMenuItemSpecific; |
|
74 } |
|
75 }; |
|
76 } |
|
77 |
|
78 // --------------------------------------------------------- |
|
79 // Groups List View's menu bar |
|
80 // --------------------------------------------------------- |
|
81 // |
|
82 RESOURCE MENU_BAR r_phonebook2_groupslist_menubar |
|
83 { |
|
84 titles = |
|
85 { |
|
86 MENU_TITLE |
|
87 { |
|
88 menu_pane = R_PHONEBOOK2_SYSTEM_MENU; |
|
89 }, |
|
90 MENU_TITLE |
|
91 { |
|
92 menu_pane = R_PHONEBOOK2_SETTINGS_MENU; |
|
93 }, |
|
94 MENU_TITLE |
|
95 { |
|
96 menu_pane = R_PHONEBOOK2_INFO_MENU; |
|
97 }, |
|
98 MENU_TITLE |
|
99 { |
|
100 menu_pane = r_phonebook2_groupslist_menu; |
|
101 }, |
|
102 MENU_TITLE |
|
103 { |
|
104 menu_pane = R_PHONEBOOK2_GROUPVIEWS_POC_MENU; |
|
105 } |
|
106 }; |
|
107 } |
|
108 |
|
109 // --------------------------------------------------------- |
|
110 // Groups List View's context menu |
|
111 // --------------------------------------------------------- |
|
112 // |
|
113 RESOURCE MENU_PANE r_phonebook2_grouplist_context_menu |
|
114 { |
|
115 items= |
|
116 { |
|
117 MENU_ITEM |
|
118 { |
|
119 command = EPbk2CmdCreateNewGroup; |
|
120 txt = qtn_fldr_new_group; |
|
121 } |
|
122 }; |
|
123 } |
|
124 |
|
125 // --------------------------------------------------------- |
|
126 // Groups List View's context menu bar |
|
127 // --------------------------------------------------------- |
|
128 // |
|
129 RESOURCE MENU_BAR r_phonebook2_grouplist_context_menubar |
|
130 { |
|
131 titles = |
|
132 { |
|
133 MENU_TITLE |
|
134 { |
|
135 menu_pane = R_PHONEBOOK2_SETTINGS_MENU; |
|
136 }, |
|
137 MENU_TITLE |
|
138 { |
|
139 menu_pane = r_phonebook2_grouplist_context_menu; |
|
140 } |
|
141 }; |
|
142 } |
|
143 |
|
144 // --------------------------------------------------------- |
|
145 // Groups list control |
|
146 // --------------------------------------------------------- |
|
147 // |
|
148 RESOURCE PBK2_CONTACT_CONTROL r_pbk2_groups_list_control |
|
149 { |
|
150 flags = KPbk2ContactViewListControlUpdateContextPane; |
|
151 listbox = LISTBOX |
|
152 { |
|
153 flags = EAknListBoxLoopScrolling; |
|
154 }; |
|
155 iconArray = R_PBK2_FIELDTYPE_ICONS; |
|
156 emptyIconId = PHONEBOOK2_ICON_ID |
|
157 { |
|
158 ownerUid = KPbk2UID3; |
|
159 id = EPbk2qgn_prop_nrtyp_empty; |
|
160 }; |
|
161 defaultIconId = PHONEBOOK2_ICON_ID {}; |
|
162 } |
|
163 |
|
164 // -------------------------------------------------------------------------- |
|
165 // Group List View's stylus popup menu |
|
166 // -------------------------------------------------------------------------- |
|
167 // |
|
168 RESOURCE STYLUS_POPUP_MENU r_phonebook2_groupslist_stylus_menu |
|
169 { |
|
170 items = |
|
171 { |
|
172 STYLUS_POPUP_MENU_ITEM |
|
173 { |
|
174 txt = qtn_phob_longtap_message; |
|
175 command = EPbk2CmdWriteGroup; |
|
176 }, |
|
177 STYLUS_POPUP_MENU_ITEM |
|
178 { |
|
179 txt = qtn_phob_longtap_delete; |
|
180 command = EPbk2CmdRemoveGroup; |
|
181 }, |
|
182 STYLUS_POPUP_MENU_ITEM |
|
183 { |
|
184 txt = qtn_phob_longtap_rename; |
|
185 command = EPbk2CmdRenameGroup; |
|
186 }, |
|
187 STYLUS_POPUP_MENU_ITEM |
|
188 { |
|
189 txt = qtn_phob_longtap_tone; |
|
190 command = EPbk2CmdSetToneToGroup; |
|
191 } |
|
192 }; |
|
193 } |
|
194 |
|
195 // -------------------------------------------------------------------------- |
|
196 // Group display order definition |
|
197 // -------------------------------------------------------------------------- |
|
198 // |
|
199 RESOURCE VPBK_FIELD_TYPE_MAPPING_LIST r_group_display_order |
|
200 { |
|
201 items = |
|
202 { |
|
203 /// Generic label |
|
204 VPBK_FIELD_TYPE_MAPPING |
|
205 { |
|
206 versitProperty = VBK_FIELD_VERSIT_PROPERTY {}; |
|
207 nonVersitType = EVPbkNonVersitTypeGenericLabel; |
|
208 } |
|
209 }; |
|
210 } |
|
211 |
|
212 // End of File |