2
|
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 |
|
|
9 |
<componentDefinition xmlns="http://www.nokia.com/sdt/emf/component"
|
|
10 |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
|
11 |
|
|
12 |
<component friendlyName="%friendlyName"
|
|
13 |
qualifiedName="com.nokia.sdt.series60.CAknPopupFieldText"
|
|
14 |
baseComponent="com.nokia.sdt.series60.CCoeControlBase"
|
|
15 |
category="Controls"
|
|
16 |
instanceNameRoot="popupFieldText" version="1.0">
|
|
17 |
<documentation>
|
|
18 |
<information>%information</information>
|
|
19 |
<helpTopic></helpTopic>
|
|
20 |
<wizardDescription></wizardDescription>
|
|
21 |
</documentation>
|
|
22 |
<symbian minSDKVersion="2.0" sdkName="com.nokia.series60"
|
|
23 |
resourceType="POPUP_FIELD_TEXT" className="CAknPopupFieldText" />
|
|
24 |
<designerImages
|
|
25 |
smallIconFile="CAknPopupFieldText_sm.png"
|
|
26 |
largeIconFile="CAknPopupFieldText.png"/>
|
|
27 |
|
|
28 |
<attributes>
|
|
29 |
<attribute key="cpp-class-name">CAknPopupFieldText</attribute>
|
|
30 |
<attribute key="is-dialog-content">true</attribute>
|
|
31 |
<attribute key="is-form-content">true</attribute>
|
|
32 |
<attribute key="rss-control-type-enum">EAknCtPopupFieldText</attribute>
|
|
33 |
<attribute key="editable-array-property">items</attribute>
|
|
34 |
</attributes>
|
|
35 |
|
|
36 |
<properties>
|
|
37 |
<property name="maxLength" category="Data" type="integer"
|
|
38 |
default="8"
|
|
39 |
descriptionKey="maxLengthDescription"
|
|
40 |
/>
|
|
41 |
<property name="otherText" category="Data" type="localizedString"
|
|
42 |
descriptionKey="otherTextDescription"
|
|
43 |
/>
|
|
44 |
<!-- S60 panics if a popup field text list is empty, so this will never be activated...
|
|
45 |
<property name="emptyText" category="Data" type="localizedString"/>
|
|
46 |
<componentReferenceProperty category="Data" scope="model" constraint="com.nokia.sdt.series60.StandardNote" name="emptyNote"/>
|
|
47 |
-->
|
|
48 |
<property name="invalidText" category="Data" type="localizedString"
|
|
49 |
descriptionKey="invalidTextDescription"
|
|
50 |
/>
|
|
51 |
<enumProperty name="font" category="Appearance"
|
|
52 |
type="com.nokia.sdt.series60.CEikonEnv.SystemFont"
|
|
53 |
descriptionKey="fontDescription"
|
|
54 |
/>
|
|
55 |
<!-- breaks if turned off
|
|
56 |
<property name="showIndicators" category="Appearance"
|
|
57 |
type="boolean" default="true"
|
|
58 |
descriptionKey="showIndicatorsDescription"
|
|
59 |
/>
|
|
60 |
-->
|
|
61 |
<arrayProperty name="items" category="Data"
|
|
62 |
type="localizedString"
|
|
63 |
editorClass="com.nokia.sdt.symbian.ui.editors.StringListEditorFactory"
|
|
64 |
descriptionKey="itemsDescription"
|
|
65 |
/>
|
|
66 |
<property name="active" category="Data" type="integer"
|
|
67 |
descriptionKey="activeDescription"
|
|
68 |
/>
|
|
69 |
</properties>
|
|
70 |
|
|
71 |
<implementations>
|
|
72 |
<implementation>
|
|
73 |
<interface id="com.nokia.sdt.datamodel.adapter.IVisualAppearance"/>
|
|
74 |
<interface id="com.nokia.sdt.datamodel.adapter.IDirectLabelEdit"/>
|
|
75 |
<interface id="com.nokia.sdt.datamodel.adapter.IComponentValidator"/>
|
|
76 |
<interface id="com.nokia.sdt.datamodel.adapter.IInitializer"/>
|
|
77 |
<!-- for form -->
|
|
78 |
<interface id="com.nokia.sdt.datamodel.adapter.IDirectImageEdit"/>
|
|
79 |
<interface id="com.nokia.sdt.datamodel.adapter.IImagePropertyRenderingInfo"/>
|
|
80 |
<script file="CAknPopupFieldText.js" prototype="CAknPopupFieldText"/>
|
|
81 |
</implementation>
|
|
82 |
</implementations>
|
|
83 |
|
|
84 |
<sourceMapping>
|
|
85 |
<mapResource struct="POPUP_FIELD_TEXT" headers="avkon.rh avkon.hrh">
|
|
86 |
<mapResourceMember struct="POPUP_FIELD" property="." member="popupfield">
|
|
87 |
<mapSimpleMember property="maxLength" member="width"/>
|
|
88 |
<mapSimpleMember property="otherText" member="other"/>
|
|
89 |
<!-- S60 panics if a popup field text list is empty, so this will never be activated...
|
|
90 |
<mapReferenceMember property="emptyNote" member="emptynote"/>
|
|
91 |
<mapSimpleMember property="emptyText" member="empty"/>
|
|
92 |
-->
|
|
93 |
<mapSimpleMember property="invalidText" member="invalid"/>
|
|
94 |
</mapResourceMember>
|
|
95 |
<select property="items">
|
|
96 |
<choice value="0">
|
|
97 |
<!-- don't emit for 0 items: this causes a panic -->
|
|
98 |
</choice>
|
|
99 |
<choice>
|
|
100 |
<mapResourceMember struct="ARRAY" property="." member="textarray" headers="badef.rh">
|
|
101 |
<mapArrayMember property="items" member="items">
|
|
102 |
<mapResourceElement struct="LBUF">
|
|
103 |
<mapSimpleMember property="." member="txt"/>
|
|
104 |
</mapResourceElement>
|
|
105 |
</mapArrayMember>
|
|
106 |
</mapResourceMember>
|
|
107 |
</choice>
|
|
108 |
</select>
|
|
109 |
<mapSimpleMember property="active" member="active"/>
|
|
110 |
</mapResource>
|
|
111 |
</sourceMapping>
|
|
112 |
|
|
113 |
<sourceGen forms="Dialog Container">
|
|
114 |
|
|
115 |
<useTemplate ids="INIT_FROM_CONTAINER" />
|
|
116 |
<useTemplate ids="INIT_FROM_DIALOG" />
|
|
117 |
<useTemplateGroup ids="CLASS_CONTRIBS" />
|
|
118 |
<useTemplate ids="LAYOUT_CONTROLS" />
|
|
119 |
|
|
120 |
<inline>
|
|
121 |
this.getCppSystemIncludes(contribs, [ "barsread.h", "stringloader.h",
|
|
122 |
"aknpopupfieldtext.h", "eikenv.h" ]);
|
|
123 |
</inline>
|
|
124 |
|
|
125 |
<template phase="Initialize"><![CDATA[
|
|
126 |
${instanceMemberName}->SetFont( iEikonEnv->${properties.font}() );
|
|
127 |
]]> </template>
|
|
128 |
|
|
129 |
<template phase="Initialize" form="Container">
|
|
130 |
${instanceMemberName}->SetFormFieldRect( TRect( ${properties.location.x}, ${properties.location.y}, ${properties.size.width}, ${properties.size.height} ) );
|
|
131 |
</template>
|
|
132 |
|
|
133 |
<useTemplateGroup ids="GenerateCommonControlEvents GenerateStateChangedEvent"/>
|
|
134 |
<useTemplateGroup ids="GenerateRequestingFocusEvent GenerateRequestingExitEvent"/>
|
|
135 |
<useTemplateGroup ids="GenerateRequestingCancelEvent GenerateInteractionRefusedEvent"/>
|
|
136 |
<useTemplateGroup ids="GeneratePrepareFocusTransitionEvent"/>
|
|
137 |
|
|
138 |
</sourceGen>
|
|
139 |
|
|
140 |
</component>
|
|
141 |
</componentDefinition>
|
|
142 |
|