|
1 <?xml version="1.0" encoding="utf-8"?> |
|
2 <!-- Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies) All rights reserved. --> |
|
3 <!-- This component and the accompanying materials are made available under the terms of the License |
|
4 "Eclipse Public License v1.0" which accompanies this distribution, |
|
5 and is available at the URL "http://www.eclipse.org/legal/epl-v10.html". --> |
|
6 <!-- Initial Contributors: |
|
7 Nokia Corporation - initial contribution. |
|
8 Contributors: |
|
9 --> |
|
10 <!DOCTYPE task |
|
11 PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"> |
|
12 <task id="GUID-E3A60844-EE37-4AF1-8921-59375C563723" xml:lang="en"><title>Removing |
|
13 item-specific commands from the toolbar</title><shortdesc>This document describes the changes required to your code to remove |
|
14 the item-specific commands from the toolbar.</shortdesc><prolog><metadata><keywords/></metadata></prolog><taskbody> |
|
15 <steps-unordered id="GUID-4DD07DEC-6017-4237-BE46-1D69E5FBD744-GENID-1-4-1-1-7-1-4-1-6-1-3-1"> |
|
16 <step id="GUID-9A69E5AD-E938-4092-A8C2-CB65C37C8962-GENID-1-4-1-1-7-1-4-1-6-1-3-1-1"><cmd>Remove all item-specifc |
|
17 commands from your resource files.</cmd> |
|
18 </step> |
|
19 </steps-unordered> |
|
20 <example><p>Let us consider the following code snippet as a part of an application |
|
21 that supports single-tap functionality. As single-tap functionality does not |
|
22 support highlighting an item in a list, the item-specific commands are not |
|
23 required to be in a toolbar and therefore can be removed.</p><codeblock xml:space="preserve"> |
|
24 RESOURCE AVKON_TOOLBAR r_application_toolbar |
|
25 { |
|
26 flags = KAknToolbarFlexiblePosition; |
|
27 items = |
|
28 { |
|
29 // Top level buttons |
|
30 //----------------------------------------------------------------------------- |
|
31 /*------Remove this item specific command (Delete)----------- |
|
32 TBAR_CTRL |
|
33 { |
|
34 type = EAknCtButton; |
|
35 id = EToolbarDelete; |
|
36 control = AVKON_BUTTON |
|
37 { |
|
38 flags = KAknButtonSizeFitText;; |
|
39 states = |
|
40 { |
|
41 AVKON_BUTTON_STATE |
|
42 { |
|
43 bmpfile = "\\resource\\apps\\delete.mbm"; |
|
44 bmpid = ECalInterIcon_delete_unpressed_38x38; |
|
45 press_bmpid = EMCalInterIcon_delete_pressed_38x38; |
|
46 helptxt = "Delete"; |
|
47 } |
|
48 }; |
|
49 }; |
|
50 }, |
|
51 ----------------------------------------------------------------------------- */ |
|
52 TBAR_CTRL |
|
53 { |
|
54 type = EAknCtButton; |
|
55 id = EToolbarHelp; |
|
56 control = AVKON_BUTTON |
|
57 { |
|
58 flags = 0; |
|
59 states = |
|
60 { |
|
61 AVKON_BUTTON_STATE |
|
62 { |
|
63 bmpfile = "\\resource\\apps\\help.mbm"; |
|
64 bmpid = ECalInterIcon_undo_unpressed_38x38; |
|
65 press_bmpid = ECalInterIcon_undo_pressed_38x38; |
|
66 helptxt = "Help"; |
|
67 } |
|
68 }; |
|
69 }; |
|
70 }; |
|
71 }; |
|
72 } |
|
73 </codeblock></example> |
|
74 </taskbody></task> |