|
1 <?xml version="1.0" encoding="UTF-8"?> |
|
2 <!-- Copyright (c) 2006 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 <component friendlyName="%friendlyName" |
|
12 qualifiedName="com.nokia.sdt.series60.CAknBinaryPopupSettingItem" |
|
13 baseComponent="com.nokia.sdt.series60.EnumeratedTextPopupBase" |
|
14 category="Controls" |
|
15 instanceNameRoot="binarySetting" version="1.0"> |
|
16 <documentation> |
|
17 <information>%information</information> |
|
18 <helpTopic></helpTopic> |
|
19 <wizardDescription></wizardDescription> |
|
20 </documentation> |
|
21 <symbian minSDKVersion="2.0" sdkName="com.nokia.series60" |
|
22 resourceType="AVKON_POPUP_SETTING_TEXTS" className="CAknBinaryPopupSettingItem" /> |
|
23 <designerImages |
|
24 smallIconFile="CAknBinaryPopupSettingItem_sm.png" |
|
25 largeIconFile="CAknBinaryPopupSettingItem.png"/> |
|
26 |
|
27 <attributes> |
|
28 <attribute key="cpp-class-name">CAknBinaryPopupSettingItem</attribute> |
|
29 <attribute key="setting-item-class-name">CAknBinaryPopupSettingItem</attribute> |
|
30 <attribute key="data-model-cpp-type">TBool</attribute> |
|
31 <attribute key="rss-control-type-enum">EAknCtPopupSettingList</attribute> |
|
32 <attribute key="setting-item-has-associated-resource">true</attribute> |
|
33 <attribute key="editable-array-property">items</attribute> |
|
34 </attributes> |
|
35 |
|
36 <properties> |
|
37 <arrayProperty name="items" category="Data" resettable="false" |
|
38 type="com.nokia.sdt.series60.EnumeratedTextPopupType" |
|
39 editorClass="com.nokia.sdt.series60.component.EnumeratedTextPopupListEditorFactory" |
|
40 descriptionKey="itemsDescription" |
|
41 /> |
|
42 </properties> |
|
43 |
|
44 <implementations> |
|
45 <implementation> |
|
46 <interface id="com.nokia.sdt.datamodel.adapter.IComponentValidator"/> |
|
47 <script file="CAknBinaryPopupSettingItem.js" prototype="CAknBinaryPopupSettingItem"/> |
|
48 </implementation> |
|
49 <implementation> |
|
50 <interface id="com.nokia.sdt.datamodel.adapter.IInitializer"/> |
|
51 <code class="com.nokia.sdt.series60.component.BinaryPopupSettingItemInitializerFactory"/> |
|
52 </implementation> |
|
53 </implementations> |
|
54 |
|
55 <sourceMapping> |
|
56 <!-- empty for setting item page --> |
|
57 <mapResource struct="POPUP_SETTING_LIST" headers="avkon.rh" /> |
|
58 |
|
59 <!-- this is the associated resource --> |
|
60 <mapResource struct="AVKON_POPUP_SETTING_TEXTS" headers="avkon.rh avkon.hrh" |
|
61 id="associated"> |
|
62 <!-- TODO: flags? --> |
|
63 <mapResourceMember struct="ARRAY" |
|
64 property="." member="setting_texts_resource" |
|
65 headers="badef.rh" |
|
66 id="setting"> |
|
67 <mapArrayMember property="items" member="items"> |
|
68 <mapResourceElement struct="AVKON_ENUMERATED_TEXT" id="setting_element"> |
|
69 <mapSimpleMember property="settingText" member="text"/> |
|
70 <mapSimpleMember property="value" member="value"/> |
|
71 </mapResourceElement> |
|
72 </mapArrayMember> |
|
73 </mapResourceMember> |
|
74 <mapResourceMember struct="ARRAY" |
|
75 property="." member="popped_up_texts_resource" |
|
76 headers="badef.rh" |
|
77 id="popup"> |
|
78 <mapArrayMember property="items" member="items"> |
|
79 <mapResourceElement struct="LBUF" id="popup_element"> |
|
80 <mapSimpleMember property="popupText" member="txt"/> |
|
81 </mapResourceElement> |
|
82 </mapArrayMember> |
|
83 </mapResourceMember> |
|
84 </mapResource> |
|
85 </sourceMapping> |
|
86 |
|
87 <sourceGen forms="Dialog Container"> |
|
88 |
|
89 <useTemplate ids="INIT_FROM_CONTAINER" /> |
|
90 <useTemplate ids="INIT_FROM_DIALOG" /> |
|
91 <useTemplateGroup ids="CLASS_CONTRIBS" /> |
|
92 <useTemplate ids="LAYOUT_CONTROLS" /> |
|
93 <useTemplate ids="INIT_FROM_SETTINGS_LIST" /> |
|
94 |
|
95 <inline> |
|
96 this.getCppSystemIncludes(contribs, [ "barsread.h", "stringloader.h", |
|
97 "aknpopupfieldtext.h", "eikenv.h" ]); |
|
98 </inline> |
|
99 |
|
100 <template phase="Initialize" forms="SettingsList"><![CDATA[ |
|
101 <% var el = instance.properties.items[instance.properties.active]; |
|
102 var init = el ? "" + el.value : null; |
|
103 this.setupSettingItem(contribs, 0, instance, init); |
|
104 %>]]> </template> |
|
105 |
|
106 <useTemplateGroup ids="GenerateCommonControlEvents GenerateStateChangedEvent"/> |
|
107 <useTemplateGroup ids="GenerateRequestingFocusEvent GenerateRequestingExitEvent"/> |
|
108 <useTemplateGroup ids="GenerateRequestingCancelEvent GenerateInteractionRefusedEvent"/> |
|
109 <useTemplateGroup ids="GeneratePrepareFocusTransitionEvent"/> |
|
110 |
|
111 <useTemplateGroup ids="GenerateEditingStartedEvent GenerateEditingStoppedEvent"/> |
|
112 |
|
113 </sourceGen> |
|
114 |
|
115 </component> |
|
116 </componentDefinition> |
|
117 |