|
1 /* |
|
2 * Copyright (c) 2002-2008 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 the License "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 * Resource file for the content view's toolbar |
|
16 * |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 #include <Browser_platform_variant.hrh> |
|
22 |
|
23 #ifdef BRDO_AVKON_EXT_TB_FF |
|
24 |
|
25 // RESOURCE IDENTIFIER |
|
26 |
|
27 #include <eikon.hrh> |
|
28 #include "BrowserToolbar.hrh" |
|
29 |
|
30 // Common toolbar resource |
|
31 RESOURCE AVKON_TOOLBAR r_content_view_toolbar |
|
32 { |
|
33 flags = KAknToolbarFixed | KAknToolbarWithoutCba; |
|
34 items = |
|
35 { |
|
36 TBAR_CTRL |
|
37 { |
|
38 type=EAknCtToolbarExtension; |
|
39 id= EWmlCmdToolbarExtensionContentView; |
|
40 |
|
41 control = AVKON_TOOLBAR_EXTENSION |
|
42 { |
|
43 helptxt = qtn_browser_ext_tb_tt; |
|
44 items = |
|
45 { |
|
46 TBAR_CTRL |
|
47 { |
|
48 type = EAknCtButton; |
|
49 id = EWmlCmdFavourites; |
|
50 |
|
51 control = AVKON_BUTTON |
|
52 { |
|
53 flags = KAknButtonRequestExitOnButtonUpEvent; |
|
54 states = |
|
55 { |
|
56 AVKON_BUTTON_STATE |
|
57 { |
|
58 txt = qtn_browser_ext_tb_bm; |
|
59 helptxt = qtn_browser_ext_tb_bm_tt; |
|
60 bmpfile = "\\Resource\\apps\\browser.mif"; |
|
61 bmpid = EMbmBrowserQgn_indi_browser_tb_bm; |
|
62 bmpmask = EMbmBrowserQgn_indi_browser_tb_bm_mask; |
|
63 extension = r_browser_ext_qgn_indi_browser_tb_bm; |
|
64 } |
|
65 }; |
|
66 }; |
|
67 }, |
|
68 TBAR_CTRL |
|
69 { |
|
70 type = EAknCtButton; |
|
71 id = EWmlCmdLaunchHomePage; |
|
72 |
|
73 control = AVKON_BUTTON |
|
74 { |
|
75 flags = KAknButtonRequestExitOnButtonUpEvent; |
|
76 states = |
|
77 { |
|
78 AVKON_BUTTON_STATE |
|
79 { |
|
80 txt = qtn_browser_ext_tb_home; |
|
81 helptxt = qtn_browser_ext_tb_home_tt; |
|
82 bmpfile = "\\Resource\\apps\\browser.mif"; |
|
83 bmpid = EMbmBrowserQgn_indi_browser_tb_home; |
|
84 bmpmask = EMbmBrowserQgn_indi_browser_tb_home_mask; |
|
85 extension = r_browser_ext_qgn_indi_browser_tb_home; |
|
86 } |
|
87 }; |
|
88 }; |
|
89 }, |
|
90 TBAR_CTRL |
|
91 { |
|
92 type = EAknCtButton; |
|
93 id = EWmlCmdSaveAsBookmark; |
|
94 |
|
95 control = AVKON_BUTTON |
|
96 { |
|
97 flags = KAknButtonRequestExitOnButtonUpEvent; |
|
98 states = |
|
99 { |
|
100 AVKON_BUTTON_STATE |
|
101 { |
|
102 txt = qtn_browser_ext_tb_save_bookmark; |
|
103 helptxt = qtn_browser_ext_tb_save_bookmark_tt; |
|
104 bmpfile = "\\Resource\\apps\\browser.mif"; |
|
105 bmpid = EMbmBrowserQgn_indi_browser_tb_save_bm; |
|
106 bmpmask = EMbmBrowserQgn_indi_browser_tb_save_bm_mask; |
|
107 extension = r_browser_ext_qgn_indi_browser_tb_savebm; |
|
108 } |
|
109 }; |
|
110 }; |
|
111 }, |
|
112 TBAR_CTRL |
|
113 { |
|
114 type = EAknCtButton; |
|
115 id = EWmlCmdFindKeyword; |
|
116 |
|
117 control = AVKON_BUTTON |
|
118 { |
|
119 flags = KAknButtonRequestExitOnButtonUpEvent; |
|
120 states = |
|
121 { |
|
122 AVKON_BUTTON_STATE |
|
123 { |
|
124 txt = qtn_browser_ext_tb_find_keyword; |
|
125 helptxt = qtn_browser_ext_tb_find_keyword_tt; |
|
126 bmpfile = "\\Resource\\apps\\browser.mif"; |
|
127 bmpid = EMbmBrowserQgn_indi_browser_tb_find_kw; |
|
128 bmpmask = EMbmBrowserQgn_indi_browser_tb_find_kw_mask; |
|
129 extension = r_browser_ext_qgn_indi_browser_tb_findkw; |
|
130 } |
|
131 }; |
|
132 }; |
|
133 }, |
|
134 TBAR_CTRL |
|
135 { |
|
136 type = EAknCtButton; |
|
137 id = EWmlCmdReload; |
|
138 |
|
139 control = AVKON_BUTTON |
|
140 { |
|
141 flags = KAknButtonRequestExitOnButtonUpEvent; |
|
142 states = |
|
143 { |
|
144 AVKON_BUTTON_STATE |
|
145 { |
|
146 txt = qtn_browser_ext_tb_reload; |
|
147 helptxt = qtn_browser_ext_tb_reload_tt; |
|
148 bmpfile = "\\Resource\\apps\\browser.mif"; |
|
149 bmpid = EMbmBrowserQgn_indi_browser_tb_reload; |
|
150 bmpmask = EMbmBrowserQgn_indi_browser_tb_reload_mask; |
|
151 extension = r_browser_ext_qgn_indi_browser_tb_reload; |
|
152 } |
|
153 }; |
|
154 }; |
|
155 }, |
|
156 TBAR_CTRL |
|
157 { |
|
158 type = EAknCtButton; |
|
159 id = EAknCmdHelp; |
|
160 |
|
161 control = AVKON_BUTTON |
|
162 { |
|
163 flags = KAknButtonRequestExitOnButtonUpEvent; |
|
164 states = |
|
165 { |
|
166 AVKON_BUTTON_STATE |
|
167 { |
|
168 txt = qtn_browser_ext_tb_help; |
|
169 helptxt = qtn_browser_ext_tb_help_tt; |
|
170 bmpfile = "\\Resource\\apps\\browser.mif"; |
|
171 bmpid = EMbmBrowserQgn_indi_browser_tb_help; |
|
172 bmpmask = EMbmBrowserQgn_indi_browser_tb_help_mask; |
|
173 extension = r_browser_ext_qgn_indi_browser_tb_help; |
|
174 } |
|
175 }; |
|
176 }; |
|
177 }, |
|
178 TBAR_CTRL |
|
179 { |
|
180 type = EAknCtButton; |
|
181 id = EWmlCmdShowMiniature; |
|
182 |
|
183 control = AVKON_BUTTON |
|
184 { |
|
185 flags = KAknButtonRequestExitOnButtonUpEvent; |
|
186 states = |
|
187 { |
|
188 AVKON_BUTTON_STATE |
|
189 { |
|
190 txt = qtn_browser_ext_tb_miniature_show; |
|
191 helptxt = qtn_browser_ext_tb_miniature_show_tt; |
|
192 bmpfile = "\\Resource\\apps\\browser.mif"; |
|
193 bmpid = EMbmBrowserQgn_indi_browser_tb_page; |
|
194 bmpmask = EMbmBrowserQgn_indi_browser_tb_page_mask; |
|
195 extension = r_browser_ext_qgn_indi_browser_tb_pages; |
|
196 } |
|
197 }; |
|
198 }; |
|
199 }, |
|
200 TBAR_CTRL |
|
201 { |
|
202 type = EAknCtButton; |
|
203 id = EWmlCmdPreferences; |
|
204 |
|
205 control = AVKON_BUTTON |
|
206 { |
|
207 flags = KAknButtonRequestExitOnButtonUpEvent; |
|
208 states = |
|
209 { |
|
210 AVKON_BUTTON_STATE |
|
211 { |
|
212 txt = qtn_browser_ext_tb_settings; |
|
213 helptxt = qtn_browser_ext_tb_settings_tt; |
|
214 bmpfile = "\\Resource\\apps\\browser.mif"; |
|
215 bmpid = EMbmBrowserQgn_indi_browser_tb_settings; |
|
216 bmpmask = EMbmBrowserQgn_indi_browser_tb_settings_mask; |
|
217 extension = r_browser_ext_qgn_indi_browser_tb_settings; |
|
218 } |
|
219 }; |
|
220 }; |
|
221 }, |
|
222 TBAR_CTRL |
|
223 { |
|
224 type = EAknCtButton; |
|
225 id = EWmlCmdOpenFeedsFolder; |
|
226 |
|
227 control = AVKON_BUTTON |
|
228 { |
|
229 flags = KAknButtonRequestExitOnButtonUpEvent; |
|
230 states = |
|
231 { |
|
232 AVKON_BUTTON_STATE |
|
233 { |
|
234 txt = qtn_browser_ext_tb_view_feeds; |
|
235 helptxt = qtn_browser_ext_tb_view_feeds_tt; |
|
236 bmpfile = "\\Resource\\apps\\browser.mif"; |
|
237 bmpid = EMbmBrowserQgn_indi_browser_tb_feeds; |
|
238 bmpmask = EMbmBrowserQgn_indi_browser_tb_feeds_mask; |
|
239 extension = r_browser_ext_qgn_indi_browser_tb_feeds; |
|
240 } |
|
241 }; |
|
242 }; |
|
243 }, |
|
244 TBAR_CTRL |
|
245 { |
|
246 type = EAknCtButton; |
|
247 id = EWmlCmdShowSubscribeList; |
|
248 |
|
249 control = AVKON_BUTTON |
|
250 { |
|
251 flags = KAknButtonRequestExitOnButtonUpEvent; |
|
252 states = |
|
253 { |
|
254 AVKON_BUTTON_STATE |
|
255 { |
|
256 txt = qtn_browser_ext_tb_subscribe_list; |
|
257 helptxt = qtn_browser_ext_tb_subscribe_list_tt; |
|
258 bmpfile = "\\Resource\\apps\\browser.mif"; |
|
259 bmpid = EMbmBrowserQgn_indi_browser_tb_rss; |
|
260 bmpmask = EMbmBrowserQgn_indi_browser_tb_rss_mask; |
|
261 extension = r_browser_ext_qgn_indi_browser_tb_rss; |
|
262 } |
|
263 }; |
|
264 }; |
|
265 }, |
|
266 TBAR_CTRL |
|
267 { |
|
268 type = EAknCtButton; |
|
269 id = EWmlCmdSwitchWindow; |
|
270 |
|
271 control = AVKON_BUTTON |
|
272 { |
|
273 flags = KAknButtonRequestExitOnButtonUpEvent; |
|
274 states = |
|
275 { |
|
276 AVKON_BUTTON_STATE |
|
277 { |
|
278 txt = qtn_browser_ext_tb_switch_win; |
|
279 helptxt = qtn_browser_ext_tb_switch_win_tt; |
|
280 bmpfile = "\\Resource\\apps\\browser.mif"; |
|
281 bmpid = EMbmBrowserQgn_indi_browser_tb_switch_win; |
|
282 bmpmask = EMbmBrowserQgn_indi_browser_tb_switch_win_mask; |
|
283 extension = r_browser_ext_qgn_indi_browser_tb_switch_win; |
|
284 } |
|
285 }; |
|
286 }; |
|
287 }, |
|
288 TBAR_CTRL |
|
289 { |
|
290 type = EAknCtButton; |
|
291 id = EWmlCmdSendAddressViaUnifiedMessage; |
|
292 |
|
293 control = AVKON_BUTTON |
|
294 { |
|
295 flags = KAknButtonRequestExitOnButtonUpEvent; |
|
296 states = |
|
297 { |
|
298 AVKON_BUTTON_STATE |
|
299 { |
|
300 txt = qtn_browser_ext_tb_send_url; |
|
301 helptxt = qtn_browser_ext_tb_send_url_tt; |
|
302 bmpfile = "\\Resource\\apps\\browser.mif"; |
|
303 bmpid = EMbmBrowserQgn_indi_browser_tb_send_url; |
|
304 bmpmask = EMbmBrowserQgn_indi_browser_tb_send_url_mask; |
|
305 extension = r_browser_ext_qgn_indi_browser_tb_send_url; |
|
306 } |
|
307 }; |
|
308 }; |
|
309 } |
|
310 |
|
311 }; |
|
312 }; |
|
313 }, |
|
314 |
|
315 TBAR_CTRL |
|
316 { |
|
317 type = EAknCtButton; |
|
318 id = EWmlCmdGoToAddress; |
|
319 |
|
320 control = AVKON_BUTTON |
|
321 { |
|
322 flags = 0; |
|
323 states = |
|
324 { |
|
325 AVKON_BUTTON_STATE |
|
326 { |
|
327 txt = ""; //Icon should always be visible instead of this |
|
328 helptxt = qtn_browser_tb_gotoaddress_tt; |
|
329 bmpfile = "\\Resource\\apps\\browser.mif"; |
|
330 bmpid = EMbmBrowserQgn_indi_browser_tb_goto; |
|
331 bmpmask = EMbmBrowserQgn_indi_browser_tb_goto_mask; |
|
332 extension = r_browser_ext_qgn_indi_browser_tb_goto; |
|
333 } |
|
334 }; |
|
335 }; |
|
336 }, |
|
337 TBAR_CTRL |
|
338 { |
|
339 type = EAknCtButton; |
|
340 id = EWmlCmdHistoryBack; |
|
341 |
|
342 control = AVKON_BUTTON |
|
343 { |
|
344 flags = 0; |
|
345 states = |
|
346 { |
|
347 AVKON_BUTTON_STATE |
|
348 { |
|
349 txt = ""; //Icon should always be visible instead of this |
|
350 helptxt = qtn_browser_tb_history_back_tt; |
|
351 bmpfile = "\\Resource\\apps\\browser.mif"; |
|
352 bmpid = EMbmBrowserQgn_indi_browser_tb_history_back; |
|
353 bmpmask = EMbmBrowserQgn_indi_browser_tb_history_back_mask; |
|
354 extension = r_browser_ext_qgn_indi_browser_tb_history_back; |
|
355 } |
|
356 }; |
|
357 }; |
|
358 }, |
|
359 TBAR_CTRL |
|
360 { |
|
361 type = EAknCtButton; |
|
362 id = EWmlCmdFindPrevious; |
|
363 |
|
364 control = AVKON_BUTTON |
|
365 { |
|
366 flags = 0; |
|
367 states = |
|
368 { |
|
369 AVKON_BUTTON_STATE |
|
370 { |
|
371 txt = ""; //Icon should always be visible instead of this |
|
372 helptxt = qtn_browser_tb_findprevious_tt; |
|
373 bmpfile = "\\Resource\\apps\\browser.mif"; |
|
374 bmpid = EMbmBrowserQgn_indi_browser_tb_find_kw_prev; |
|
375 bmpmask = EMbmBrowserQgn_indi_browser_tb_find_kw_prev_mask; |
|
376 extension = r_browser_ext_qgn_indi_browser_tb_findkw_prev; |
|
377 } |
|
378 }; |
|
379 }; |
|
380 }, |
|
381 TBAR_CTRL |
|
382 { |
|
383 type = EAknCtButton; |
|
384 id = EWmlNoCmd; |
|
385 control = AVKON_BUTTON |
|
386 { |
|
387 flags = 0; |
|
388 states = |
|
389 { |
|
390 AVKON_BUTTON_STATE |
|
391 { |
|
392 txt = ""; //Icon should always be visible instead of this |
|
393 helptxt = ""; |
|
394 // bmpfile = ; |
|
395 // bmpid = ; |
|
396 // bmpmask = ; |
|
397 extension = r_browser_ext_qgn_indi_browser_tb_blank; |
|
398 } |
|
399 }; |
|
400 }; |
|
401 }, |
|
402 TBAR_CTRL |
|
403 { |
|
404 type = EAknCtButton; |
|
405 id = EWmlCmdFindNext; |
|
406 |
|
407 control = AVKON_BUTTON |
|
408 { |
|
409 flags = 0; |
|
410 states = |
|
411 { |
|
412 AVKON_BUTTON_STATE |
|
413 { |
|
414 txt = ""; //Icon should always be visible instead of this |
|
415 helptxt = qtn_browser_tb_findnext_tt; |
|
416 bmpfile = "\\Resource\\apps\\browser.mif"; |
|
417 bmpid = EMbmBrowserQgn_indi_browser_tb_find_kw_next; |
|
418 bmpmask = EMbmBrowserQgn_indi_browser_tb_find_kw_next_mask; |
|
419 extension = r_browser_ext_qgn_indi_browser_tb_findkw_next; |
|
420 } |
|
421 }; |
|
422 }; |
|
423 }, |
|
424 TBAR_CTRL |
|
425 { |
|
426 type = EAknCtButton; |
|
427 id = EWmlCmdHistoryForward; |
|
428 |
|
429 control = AVKON_BUTTON |
|
430 { |
|
431 flags = 0; |
|
432 states = |
|
433 { |
|
434 AVKON_BUTTON_STATE |
|
435 { |
|
436 txt = ""; //Icon should always be visible instead of this |
|
437 helptxt = qtn_browser_tb_history_forward_tt; |
|
438 bmpfile = "\\Resource\\apps\\browser.mif"; |
|
439 bmpid = EMbmBrowserQgn_indi_browser_tb_history_fw; |
|
440 bmpmask = EMbmBrowserQgn_indi_browser_tb_history_fw_mask; |
|
441 extension = r_browser_ext_qgn_indi_browser_tb_history_fw; |
|
442 } |
|
443 }; |
|
444 }; |
|
445 }, |
|
446 TBAR_CTRL |
|
447 { |
|
448 type = EAknCtButton; |
|
449 id = EWmlCmdZoomSliderShow; |
|
450 |
|
451 control = AVKON_BUTTON |
|
452 { |
|
453 flags = 0; |
|
454 states = |
|
455 { |
|
456 AVKON_BUTTON_STATE |
|
457 { |
|
458 txt = ""; //Icon should always be visible instead of this |
|
459 helptxt = qtn_browser_tb_zoomshow_tt; |
|
460 bmpfile = "\\Resource\\apps\\browser.mif"; |
|
461 bmpid = EMbmBrowserQgn_indi_browser_tb_zoom_in; |
|
462 bmpmask = EMbmBrowserQgn_indi_browser_tb_zoom_in_mask; |
|
463 extension = r_browser_ext_qgn_indi_browser_tb_zoomin; |
|
464 } |
|
465 }; |
|
466 }; |
|
467 } |
|
468 }; |
|
469 } |
|
470 |
|
471 #else |
|
472 |
|
473 // Common toolbar resource |
|
474 RESOURCE AVKON_TOOLBAR r_content_view_toolbar |
|
475 { |
|
476 } |
|
477 |
|
478 #endif |