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