|
1 <?xml version="1.0" encoding="UTF-8"?> |
|
2 <!-- Copyright (c) 2009 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 <componentDefinition xmlns="http://www.nokia.com/sdt/emf/component" |
|
9 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
|
10 |
|
11 <!-- testing version --> |
|
12 |
|
13 <compoundPropertyDeclaration qualifiedName="com.nokia.sdt.series60.test.locationProperty"> |
|
14 <property name="x" type="integer"/> |
|
15 <property name="y" type="integer"/> |
|
16 </compoundPropertyDeclaration> |
|
17 <compoundPropertyDeclaration qualifiedName="com.nokia.sdt.series60.test.sizeProperty"> |
|
18 <property name="width" type="integer"/> |
|
19 <property name="height" type="integer"/> |
|
20 </compoundPropertyDeclaration> |
|
21 |
|
22 <enumPropertyDeclaration qualifiedName="com.nokia.sdt.series60.test.CBA.Type"> |
|
23 <enumElement value="r_avkon_softkeys_empty" displayValue="EMPTY"/> |
|
24 <enumElement value="r_avkon_softkeys_empty_with_ids" displayValue="EMPTY_WITH_IDS"/> |
|
25 <enumElement value="r_avkon_softkeys_ok_empty" displayValue="OK_EMPTY"/> |
|
26 <enumElement value="r_avkon_softkeys_select_cancel" displayValue="SELECT_CANCEL"/> |
|
27 <enumElement value="r_avkon_softkeys_ok_cancel" displayValue="OK_CANCEL"/> |
|
28 <enumElement value="r_avkon_softkeys_ok_details" displayValue="OK_DETAILS"/> |
|
29 <enumElement value="r_avkon_softkeys_call_cancel" displayValue="CALL_CANCEL"/> |
|
30 <enumElement value="r_avkon_softkeys_options_back" displayValue="OPTIONS_BACK"/> |
|
31 <enumElement value="r_avkon_softkeys_options_done" displayValue="OPTIONS_DONE"/> |
|
32 <enumElement value="r_avkon_softkeys_options_cancel" displayValue="OPTIONS_CANCEL"/> |
|
33 <enumElement value="r_avkon_softkeys_options_exit" displayValue="OPTIONS_EXIT"/> |
|
34 <enumElement value="r_avkon_softkeys_ok_back" displayValue="OK_BACK"/> |
|
35 <enumElement value="r_avkon_softkeys_cancel" displayValue="CANCEL"/> |
|
36 <enumElement value="r_avkon_softkeys_back" displayValue="BACK"/> |
|
37 <enumElement value="r_avkon_softkeys_close" displayValue="CLOSE"/> |
|
38 <enumElement value="r_avkon_softkeys_done_back" displayValue="DONE_BACK"/> |
|
39 <enumElement value="r_avkon_softkeys_done_cancel" displayValue="DONE_CANCEL"/> |
|
40 <enumElement value="r_avkon_softkeys_select_back" displayValue="SELECT_BACK"/> |
|
41 <enumElement value="r_avkon_softkeys_mark_back" displayValue="MARK_BACK"/> |
|
42 <enumElement value="r_avkon_softkeys_unmark_back" displayValue="UNMARK_BACK"/> |
|
43 <enumElement value="r_avkon_softkeys_yes_no" displayValue="YES_NO"/> |
|
44 <enumElement value="r_avkon_softkeys_unlock_empty" displayValue="UNLOCK_EMPTY"/> |
|
45 <enumElement value="r_avkon_softkeys_save_back" displayValue="SAVE_BACK"/> |
|
46 <enumElement value="r_avkon_softkeys_show_cancel" displayValue="SHOW_CANCEL"/> |
|
47 <enumElement value="r_avkon_softkeys_show_exit" displayValue="SHOW_EXIT"/> |
|
48 <enumElement value="r_avkon_softkeys_answer_exit" displayValue="ANSWER_EXIT"/> |
|
49 <enumElement value="r_avkon_softkeys_exit" displayValue="EXIT"/> |
|
50 <enumElement value="r_avkon_softkeys_read_exit" displayValue="READ_EXIT"/> |
|
51 <enumElement value="r_avkon_softkeys_listen_exit" displayValue="LISTEN_EXIT"/> |
|
52 <enumElement value="r_avkon_softkeys_search_back" displayValue="SEARCH_BACK"/> |
|
53 <enumElement value="r_avkon_softkeys_again_quit" displayValue="AGAIN_QUIT"/> |
|
54 <enumElement value="r_avkon_softkeys_quit" displayValue="QUIT"/> |
|
55 <enumElement value="r_avkon_softkeys_insert_back" displayValue="INSERT_BACK"/> |
|
56 </enumPropertyDeclaration> |
|
57 |
|
58 <enumPropertyDeclaration qualifiedName="com.nokia.sdt.series60.test.CBA.Id"> |
|
59 <enumElement value="" displayValue="None"/> |
|
60 <enumElement value="UNIQUE" displayValue="Custom command"/> |
|
61 <enumElement value="EAknSoftkeyOk"/> |
|
62 <enumElement value="EAknSoftkeyCancel"/> |
|
63 <enumElement value="EAknSoftkeySelect"/> |
|
64 <enumElement value="EAknSoftkeyOptions"/> |
|
65 <enumElement value="EAknSoftkeyBack"/> |
|
66 <enumElement value="EAknSoftkeyMark"/> |
|
67 <enumElement value="EAknSoftkeyUnmark"/> |
|
68 <enumElement value="EAknSoftkeyInsert"/> |
|
69 <enumElement value="EAknSoftkeyYes"/> |
|
70 <enumElement value="EAknSoftkeyNo"/> |
|
71 <enumElement value="EAknSoftkeyDone"/> |
|
72 <enumElement value="EAknSoftkeyClose"/> |
|
73 <enumElement value="EAknSoftkeyExit"/> |
|
74 <enumElement value="EAknSoftkeyClear"/> |
|
75 <enumElement value="EAknSoftkeyUnlock"/> |
|
76 <enumElement value="EAknSoftkeySave"/> |
|
77 <enumElement value="EAknSoftkeyShow"/> |
|
78 <enumElement value="EAknSoftkeyListen"/> |
|
79 <enumElement value="EAknSoftkeyRead"/> |
|
80 <enumElement value="EAknSoftkeySearch"/> |
|
81 <enumElement value="EAknSoftkeyEmpty"/> |
|
82 <enumElement value="EAknSoftkeyLock"/> |
|
83 <enumElement value="EAknSoftkeyCall"/> |
|
84 <enumElement value="EAknSoftkeyAgain"/> |
|
85 <enumElement value="EAknSoftkeyQuit"/> |
|
86 <enumElement value="EAknSoftkeyDetails"/> |
|
87 <enumElement value="EAknSoftkeyNext"/> |
|
88 </enumPropertyDeclaration> |
|
89 |
|
90 <compoundPropertyDeclaration editableType="com.nokia.sdt.series60.test.CBA.Type" |
|
91 qualifiedName="com.nokia.sdt.series60.test.CBAProperty"> |
|
92 <property displayName="left text" name="leftText" type="localizedString" default="Options" /> |
|
93 <enumProperty displayName="left id" name="leftId" type="com.nokia.sdt.series60.test.CBA.Id" default="EAknSoftkeyOptions" /> |
|
94 <property displayName="right text" name="rightText" type="localizedString" default="Exit" /> |
|
95 <enumProperty displayName="right id" name="rightId" type="com.nokia.sdt.series60.test.CBA.Id" default="EAknSoftkeyExit" /> |
|
96 </compoundPropertyDeclaration> |
|
97 |
|
98 <component friendlyName="Control Button Array" qualifiedName="com.nokia.sdt.series60.test.CBAstandalone" |
|
99 category="Basic" instanceNameRoot="CBA" version="0.1"> |
|
100 |
|
101 <documentation> |
|
102 <information>A Series60 Control Button Array class.</information> |
|
103 </documentation> |
|
104 <symbian sdkName="com.nokia.series60.test" minSDKVersion="2.0" |
|
105 className="" classHelpTopic="" |
|
106 resourceType="CBA" resourceHelpTopic="" /> |
|
107 <designerImages smallIconFile="" largeIconFile="" layoutImageFile=""/> |
|
108 <attributes> |
|
109 <attribute key="is-layout-object">true</attribute> |
|
110 <attribute key="display-model-class">com.nokia.sdt.component.symbian.displaymodel.DisplayModelS60</attribute> |
|
111 <attribute key="not-in-toolbox">true</attribute> |
|
112 <attribute key="is-layout-object">true</attribute> |
|
113 <attribute key="is-not-user-removable">true</attribute> |
|
114 <attribute key="is-non-resizable-or-moveable-layout-object">true</attribute> |
|
115 <attribute key="is-top-level-only-layout-object">true</attribute> |
|
116 </attributes> |
|
117 <properties> |
|
118 <property category="Design" displayName="name" name="name" type="uniqueName"/> |
|
119 <compoundProperty category="Layout" displayName="location" name="location" type="com.nokia.sdt.series60.test.locationProperty"/> |
|
120 <compoundProperty category="Layout" displayName="size" name="size" type="com.nokia.sdt.series60.test.sizeProperty"/> |
|
121 <compoundProperty category="Behavior" displayName="control button array" name="CBA" type="com.nokia.sdt.series60.test.CBAProperty"/> |
|
122 </properties> |
|
123 <implementations> |
|
124 <implementation> |
|
125 <interface id="com.nokia.sdt.datamodel.adapter.IVisualAppearance"/> |
|
126 <script file="testCBA_visual.js" prototype="CBAVisual"/> |
|
127 </implementation> |
|
128 <implementation> |
|
129 <interface id="com.nokia.sdt.datamodel.adapter.IReconcileProperty"/> |
|
130 <script file="testCBA_reconcile.js" prototype="CBAReconcile"/> |
|
131 </implementation> |
|
132 </implementations> |
|
133 |
|
134 <sourceMapping> |
|
135 <mapResource struct="EIK_APP_INFO" headers="cba.rh"> |
|
136 <select property="CBA"> |
|
137 <choice value="com.nokia.sdt.series60.test.CBA.Type.CUSTOM"> |
|
138 <mapResourceMember property="CBA" member="cba" struct="CBA" headers="cba.rh"> |
|
139 <mapResourceMember property="." member="buttons[0]" struct="CBA_BUTTON" headers="cba.rh"> |
|
140 <mapEnumMember property="leftId" member="id" |
|
141 uniqueValue="UNIQUE" |
|
142 nameAlgorithm="com.nokia.sdt.component.symbian.NAME_ALG_COMMANDS" |
|
143 /> |
|
144 <mapSimpleMember property="leftText" member="txt"/> |
|
145 </mapResourceMember> |
|
146 <mapResourceMember property="." member="buttons[1]" struct="CBA_BUTTON" headers="cba.rh"> |
|
147 <mapEnumMember property="rightId" member="id" |
|
148 uniqueValue="UNIQUE" |
|
149 nameAlgorithm="com.nokia.sdt.component.symbian.NAME_ALG_COMMANDS" |
|
150 /> |
|
151 <mapSimpleMember property="rightText" member="txt"/> |
|
152 </mapResourceMember> |
|
153 </mapResourceMember> |
|
154 </choice> |
|
155 <choice> |
|
156 <mapIdentifierMember property="CBA" member="cba" /> |
|
157 </choice> |
|
158 </select> |
|
159 </mapResource> |
|
160 </sourceMapping> |
|
161 |
|
162 </component> |
|
163 </componentDefinition> |