|
1 /* |
|
2 * Copyright (c) 2002-2005 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: Main view's resource file |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 //---------------------------------------------------- |
|
20 // |
|
21 // r_chatclient_mainview |
|
22 // View-resource definition for main-view |
|
23 // |
|
24 //---------------------------------------------------- |
|
25 // |
|
26 RESOURCE AVKON_VIEW r_chatclient_mainview |
|
27 { |
|
28 hotkeys = r_chatclient_hotkeys; |
|
29 menubar = r_chatclient_menubar_mainview; |
|
30 cba = r_chat_softkeys_options_exit__open; |
|
31 } |
|
32 |
|
33 //---------------------------------------------------- |
|
34 // |
|
35 // r_chatclient_menubar_mainview |
|
36 // Menubar definition for main-view |
|
37 // |
|
38 //---------------------------------------------------- |
|
39 // |
|
40 RESOURCE MENU_BAR r_chatclient_menubar_mainview |
|
41 { |
|
42 titles= |
|
43 { |
|
44 MENU_TITLE { menu_pane=r_chatclient_general_menu; }, |
|
45 MENU_TITLE { menu_pane=r_chatclient_mainview_menu; } |
|
46 }; |
|
47 } |
|
48 |
|
49 //---------------------------------------------------- |
|
50 // |
|
51 // r_chatclient_mainview_menu |
|
52 // Items for menupane in mainview |
|
53 // |
|
54 //---------------------------------------------------- |
|
55 // |
|
56 RESOURCE MENU_PANE r_chatclient_mainview_menu |
|
57 { |
|
58 items= |
|
59 { |
|
60 MENU_ITEM { command=EChatClientMainViewCmdOpen; txt = qtn_chat_main_om_open; }, |
|
61 MENU_ITEM { command=EChatClientMainViewCmdChangeStatus; txt = qtn_chat_friend_change_status; }, |
|
62 MENU_ITEM { command=EChatClientMainViewCmdLogin; txt = qtn_chat_main_om_login; }, |
|
63 MENU_ITEM { command=EChatClientMainViewCmdLogout; txt = qtn_chat_main_om_logout; }, |
|
64 MENU_ITEM { command=EChatClientMainViewSettings; txt = qtn_chat_settings; } |
|
65 }; |
|
66 } |
|
67 |
|
68 //---------------------------------------------------- |
|
69 // |
|
70 // r_mainview_list |
|
71 // Items in main-view listbox, , initial state |
|
72 // |
|
73 //---------------------------------------------------- |
|
74 // |
|
75 RESOURCE ARRAY r_mainview_list |
|
76 { |
|
77 items= |
|
78 { |
|
79 LBUF{ txt = qtn_chat_clist_ibox ;}, |
|
80 LBUF{ txt = qtn_chat_main_friends;}, |
|
81 LBUF{ txt = qtn_chat_main_chatlist;}, |
|
82 LBUF{ txt = qtn_chat_recorded_chats;} |
|
83 }; |
|
84 } |
|
85 |
|
86 RESOURCE TBUF r_chat_status_changed_automatic { buf = qtn_chat_status_changed_automatic; } |
|
87 |
|
88 // Own status change |
|
89 RESOURCE TBUF r_chat_change_own_online { buf = qtn_chat_change_own_online; } |
|
90 RESOURCE TBUF r_chat_change_own_away { buf = qtn_chat_change_own_away; } |
|
91 RESOURCE TBUF r_chat_change_own_busy { buf = qtn_chat_change_own_busy; } |
|
92 RESOURCE TBUF r_chat_change_own_appear_offline { buf = qtn_chat_change_own_appear_offline; } |
|
93 RESOURCE TBUF r_chat_enter_status_message { buf = qtn_chat_change_status_message; } |
|
94 RESOURCE TBUF r_chat_change_message_changing { buf = qtn_chat_change_message_changing; } |
|
95 RESOURCE TBUF r_chat_change_message_changed { buf = qtn_chat_change_message_changed; } |
|
96 RESOURCE TBUF r_chat_change_message_not_changed { buf = qtn_chat_change_message_not_changed; } |
|
97 RESOURCE TBUF r_chat_change_message_failed { buf = qtn_chat_change_message_failed; } |
|
98 |
|
99 RESOURCE DIALOG r_chatclient_enter_status_message_query |
|
100 { |
|
101 flags = EGeneralQueryFlags; |
|
102 buttons=R_AVKON_SOFTKEYS_OK_CANCEL__OK; |
|
103 items= |
|
104 { |
|
105 DLG_LINE |
|
106 { |
|
107 type=EAknCtQuery; |
|
108 id=EGeneralQuery; |
|
109 control= AVKON_DATA_QUERY |
|
110 { |
|
111 layout = EDataLayout; |
|
112 //label = "--"; |
|
113 control=EDWIN |
|
114 { |
|
115 flags= EEikEdwinNoHorizScrolling | EEikEdwinResizable; |
|
116 maxlength=40; |
|
117 width=16; |
|
118 lines=4; |
|
119 default_case = EAknEditorLowerCase; |
|
120 }; |
|
121 }; |
|
122 } |
|
123 }; |
|
124 } |
|
125 |
|
126 RESOURCE AVKON_LIST_QUERY r_chat_status_change_dlg |
|
127 { |
|
128 softkeys = R_AVKON_SOFTKEYS_SELECT_CANCEL__SELECT; |
|
129 items = |
|
130 { |
|
131 AVKON_LIST_QUERY_DLG_LINE |
|
132 { |
|
133 control = AVKON_LIST_QUERY_CONTROL |
|
134 { |
|
135 listtype = EAknCtSingleGraphicPopupMenuListBox; |
|
136 listbox = AVKON_LIST_QUERY_LIST; |
|
137 heading = qtn_chat_change_own_status; |
|
138 }; |
|
139 } |
|
140 }; |
|
141 } |
|
142 |
|
143 |
|
144 ///own data menu option |
|
145 RESOURCE TBUF r_qtn_chat_friend_own_options { buf = qtn_chat_friend_own_options; } |
|
146 |
|
147 |
|
148 //-------------------------------------------------- |
|
149 // |
|
150 // |
|
151 // Items in singlelist-view's own options submenu |
|
152 // |
|
153 //-------------------------------------------------- |
|
154 |
|
155 RESOURCE MENU_PANE r_qtn_chat_friend_own_options_submenu |
|
156 { |
|
157 items= |
|
158 { |
|
159 MENU_ITEM { command=EChatClientSingleListViewCmdChangeMessage; txt = qtn_chat_friend_change_message; }, |
|
160 MENU_ITEM { command=EChatClientSingleListViewCmdDetails; txt = qtn_chat_friend_contact_details; }, |
|
161 MENU_ITEM { command=EChatClientSingleListViewCmdOwnEdit; txt = qtn_chat_friend_contact_edit; } |
|
162 }; |
|
163 } |
|
164 |
|
165 //-------------------------------------------------- |
|
166 // |
|
167 // |
|
168 // Items in singlelist-view when focus is on contact item |
|
169 // |
|
170 //-------------------------------------------------- |
|
171 |
|
172 RESOURCE MENU_PANE r_qtn_chat_friend_edit_options_submenu |
|
173 { |
|
174 items= |
|
175 { |
|
176 MENU_ITEM { command=EChatClientSingleListViewCmdDetails; txt = qtn_chat_friend_om_details; } , |
|
177 MENU_ITEM { command=EChatClientSingleListViewCmdEdit; txt = qtn_chat_friend_om_edit; } , |
|
178 MENU_ITEM { command=EChatClientSingleListViewCmdDelete; txt = qtn_chat_friend_om_del; } , |
|
179 MENU_ITEM { command=EChatClientSingleListViewCmdMove; txt = qtn_chat_contact_move; }, |
|
180 MENU_ITEM { command=EChatClientFriendsListViewCmdAddWatch; txt = qtn_chat_friend_om_watch; }, |
|
181 MENU_ITEM { command=EChatClientFriendsListViewCmdRemoveWatch; txt = qtn_chat_friend_om_offwa; } |
|
182 |
|
183 }; |
|
184 } |
|
185 |
|
186 |
|
187 //-------------------------------------------------- |
|
188 // |
|
189 // |
|
190 // Items in singlelist-view's create new submenu |
|
191 // |
|
192 //-------------------------------------------------- |
|
193 |
|
194 RESOURCE MENU_PANE r_qtn_chat_friend_om_crnew_submenu |
|
195 { |
|
196 items= |
|
197 { |
|
198 MENU_ITEM { command=EChatClientFriendsListViewCmdAddFromPb; txt = qtn_chat_add_from_pb; }, |
|
199 MENU_ITEM { command=EChatClientFriendsListViewCmdAddManually; txt = qtn_chat_friends_addmanually; }, |
|
200 MENU_ITEM { command=EChatClientFriendsListViewCmdAddFromSrv; txt = qtn_chat_search_contact; } |
|
201 }; |
|
202 } |
|
203 |
|
204 RESOURCE TBUF r_qtn_chat_friend_saved_conversations { buf = qtn_chat_friend_saved_conversations; } |
|
205 |
|
206 |
|
207 //-------------------------------------------------- |
|
208 // |
|
209 // |
|
210 // Items in singlelist-view when focus is on Conversation item |
|
211 // |
|
212 //-------------------------------------------------- |
|
213 |
|
214 RESOURCE MENU_BAR r_chat_menubar_conversation_chatlist |
|
215 { |
|
216 titles= |
|
217 { |
|
218 MENU_TITLE { menu_pane=r_chatclient_general_menu; }, |
|
219 MENU_TITLE { menu_pane=r_chat_menubar_private_chatlist_menu; } |
|
220 }; |
|
221 } |
|
222 |
|
223 //---------------------------------------------------- |
|
224 // |
|
225 // r_chatclient_mainview_menu |
|
226 // Items for menupane in mainview |
|
227 // |
|
228 //---------------------------------------------------- |
|
229 // |
|
230 RESOURCE TBUF r_chat_menubar_conversation_chatlist_menu_open { buf = qtn_chat_om_conv_open; } |
|
231 |
|
232 RESOURCE TBUF r_chat_menubar_conversation_chatlist_menu_delete { buf = qtn_chat_conv_list_delete; } |
|
233 |
|
234 RESOURCE TBUF r_chat_menubar_conversation_chatlist_menu_addtofriends { buf = qtn_chat_om_addfriends; } |
|
235 |
|
236 RESOURCE TBUF r_chat_menubar_conversation_chatlist_menu_closeconvers { buf = qtn_chat_om_close_conv; } |
|
237 |
|
238 RESOURCE TBUF r_chat_menubar_conversation_chatlist_menu_newconvers { buf = qtn_chat_om_new_convers; } |
|
239 /*RESOURCE MENU_PANE r_chat_menubar_conversation_chatlist_menu |
|
240 { |
|
241 items= |
|
242 { |
|
243 MENU_ITEM { command=EChatPrivateListCmdOpen; txt = qtn_chat_om_conv_open; }, |
|
244 MENU_ITEM { command=EChatPrivateListCmdAddToFriends; txt = qtn_chat_om_addfriends; }, |
|
245 MENU_ITEM { command=EChatPrivateListCmdCloseConvers; txt = qtn_chat_om_close_conv; }, |
|
246 MENU_ITEM { command=EChatPrivateListCmdNewConvers; cascade = r_chat_conversation_chatlist_sm_new_conversation; txt = qtn_chat_om_new_convers; }, |
|
247 // MENU_ITEM { command=EChatPrivateListCmdBlockOpt; cascade = r_chat_conversation_chatlist_sm_block; txt = qtn_chat_friend_om_imsg_set; }, |
|
248 // MENU_ITEM { command=EChatClientMainViewCmdLogin; txt = qtn_chat_main_om_login; }, |
|
249 //MENU_ITEM { command=EChatClientMainViewCmdLogout; txt = qtn_chat_main_om_logout; }, |
|
250 // MENU_ITEM { command=EChatPrivateListCmdSettings; txt = qtn_chat_settings; } |
|
251 }; |
|
252 } |
|
253 |
|
254 */ |
|
255 RESOURCE MENU_PANE r_chat_conversation_chatlist_sm_new_conversation |
|
256 { |
|
257 items = |
|
258 { |
|
259 |
|
260 MENU_ITEM |
|
261 { |
|
262 command = EChatPrivateListWriteNewConvers; |
|
263 txt = qtn_im_p2p_recip_write; |
|
264 }, |
|
265 MENU_ITEM |
|
266 { |
|
267 command = EChatPrivateListCmdSelectRecipient; |
|
268 txt = qtn_chat_opt_new_conversation; |
|
269 } |
|
270 }; |
|
271 } |
|
272 |
|
273 RESOURCE MENU_PANE r_chat_conversation_chatlist_sm_block |
|
274 { |
|
275 items = |
|
276 { |
|
277 MENU_ITEM |
|
278 { |
|
279 command = EChatPrivateListBlock; |
|
280 txt = qtn_chat_friend_om_block; |
|
281 }, |
|
282 |
|
283 MENU_ITEM |
|
284 { |
|
285 command = EChatPrivateListBlockEnter; |
|
286 txt = qtn_chat_friend_block_enter; |
|
287 }, |
|
288 |
|
289 MENU_ITEM |
|
290 { |
|
291 command = EChatPrivateListBlockShow; |
|
292 txt = qtn_chat_friend_block_showl; |
|
293 }, |
|
294 |
|
295 MENU_ITEM |
|
296 { |
|
297 command = EChatPrivateListUnblock; |
|
298 txt = qtn_chat_friend_block_unblock; |
|
299 } |
|
300 |
|
301 }; |
|
302 } |
|
303 |
|
304 |
|
305 ///New Chat menu option |
|
306 RESOURCE TBUF r_qtn_chat_opt_new_chat { buf = qtn_chat_opt_new_chat; } |
|
307 |
|
308 //-------------------------------------------------- |
|
309 // |
|
310 // |
|
311 // Items in singlelist-view's New Chat submenu |
|
312 // |
|
313 //-------------------------------------------------- |
|
314 |
|
315 RESOURCE MENU_PANE r_chat_friend_new_chat_submenu |
|
316 { |
|
317 items= |
|
318 { |
|
319 |
|
320 MENU_ITEM |
|
321 { |
|
322 command = EChatPrivateListWriteNewConvers; |
|
323 txt = qtn_im_p2p_recip_write; |
|
324 }, |
|
325 MENU_ITEM |
|
326 { |
|
327 command = EChatPrivateListCmdSelectRecipient; |
|
328 txt = qtn_chat_opt_new_conversation; |
|
329 }, |
|
330 MENU_ITEM |
|
331 { |
|
332 command = EChatClientSingleListViewCmdSearchContact; |
|
333 txt = qtn_chat_opt_new_conv_searchcontact; |
|
334 }, |
|
335 MENU_ITEM |
|
336 { |
|
337 command = EChatClientSingleListViewCmdCreateGrp; |
|
338 txt = qtn_chat_opt_new_conv_creategroup; |
|
339 }, |
|
340 MENU_ITEM |
|
341 { |
|
342 command = EChatClientSingleListViewCmdSearchGrp; |
|
343 txt = qtn_chat_opt_new_conv_searchgroup; |
|
344 }, |
|
345 MENU_ITEM |
|
346 { |
|
347 command = EChatClientSingleListViewCmdEnterGrpID; |
|
348 txt = qtn_chat_opt_new_conv_entergroup; |
|
349 } |
|
350 }; |
|
351 } |
|
352 |
|
353 //**************************************************************// |
|
354 //Group Related Options for if focus is on a group item |
|
355 |
|
356 |
|
357 //---------------------------------------------------- |
|
358 // |
|
359 // r_chatclient_chatlist_view_menu |
|
360 // Items for menupane in chatlist-view |
|
361 // |
|
362 //---------------------------------------------------- |
|
363 // |
|
364 |
|
365 |
|
366 RESOURCE TBUF r_qtn_chat_clist_om_open { buf = qtn_chat_clist_om_open; } |
|
367 |
|
368 RESOURCE TBUF r_qtn_chat_friend_join_group { buf = qtn_chat_friend_join_group; } |
|
369 |
|
370 RESOURCE TBUF r_qtn_chat_clist_om_cgr { buf = qtn_chat_clist_om_cgr; } |
|
371 |
|
372 RESOURCE TBUF r_qtn_chat_clist_cgr_sm_leave { buf = qtn_chat_clist_cgr_sm_leave; } |
|
373 |
|
374 RESOURCE TBUF r_qtn_chat_contacts_open_group_conv { buf = qtn_chat_contacts_open_group_conv; } |
|
375 |
|
376 RESOURCE MENU_PANE r_chat_group_options_submenu |
|
377 { |
|
378 items= |
|
379 { |
|
380 MENU_ITEM { command = EChatClientSingleListViewCmdGroupEdit; |
|
381 txt = qtn_chat_clist_cgr_sm_pedit; |
|
382 }, |
|
383 MENU_ITEM { command = EChatClientSingleListViewCmdGroupFavor; |
|
384 txt = qtn_chat_om_save_favor; |
|
385 }, |
|
386 MENU_ITEM { command = EChatClientSingleListViewCmdGroupRmv; |
|
387 txt = qtn_chat_clist_cgr_sm_rmv; |
|
388 }, |
|
389 MENU_ITEM { command = EChatClientSingleListViewCmdGroupPart; |
|
390 txt = qtn_chat_clist_cgr_sm_part; |
|
391 }, |
|
392 MENU_ITEM { command = EChatClientSingleListViewCmdGroupInfo; |
|
393 txt = qtn_chat_clist_cgr_sm_info; |
|
394 } |
|
395 }; |
|
396 } |
|
397 |
|
398 //**************************************************************// |
|
399 // End of File |