uidesigner/com.nokia.sdt.series60.componentlibrary/components/controls/setting-items/CAknEnumeratedTextPopup.component
author Frank Turovich <frank.turovich@nokia.com>
Thu, 02 Apr 2009 15:09:04 -0500
changeset 24 f2ad263823f3
parent 2 d760517a8095
permissions -rw-r--r--
added DS_Store to hgignore list
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
<componentDefinition xmlns="http://www.nokia.com/sdt/emf/component" 
cawthron
parents:
diff changeset
     9
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
cawthron
parents:
diff changeset
    10
	
cawthron
parents:
diff changeset
    11
	<component friendlyName="%friendlyName"
cawthron
parents:
diff changeset
    12
		qualifiedName="com.nokia.sdt.series60.CAknEnumeratedTextPopupSettingItem"
cawthron
parents:
diff changeset
    13
		baseComponent="com.nokia.sdt.series60.EnumeratedTextPopupBase" 
cawthron
parents:
diff changeset
    14
		category="Controls"
cawthron
parents:
diff changeset
    15
		instanceNameRoot="enumeratedTextPopup" version="1.0">
cawthron
parents:
diff changeset
    16
		<documentation>
cawthron
parents:
diff changeset
    17
			<information>%information</information>
cawthron
parents:
diff changeset
    18
			<helpTopic></helpTopic>
cawthron
parents:
diff changeset
    19
			<wizardDescription></wizardDescription>
cawthron
parents:
diff changeset
    20
		</documentation>
cawthron
parents:
diff changeset
    21
		<symbian minSDKVersion="2.0" sdkName="com.nokia.series60"
cawthron
parents:
diff changeset
    22
			resourceType="AVKON_POPUP_SETTING_TEXTS" className="CAknEnumeratedTextPopupSettingItem" />
cawthron
parents:
diff changeset
    23
		<designerImages 
cawthron
parents:
diff changeset
    24
			smallIconFile="CAknEnumeratedTextPopup_sm.png" 
cawthron
parents:
diff changeset
    25
			largeIconFile="CAknEnumeratedTextPopup.png"/>
cawthron
parents:
diff changeset
    26
				
cawthron
parents:
diff changeset
    27
		<attributes>
cawthron
parents:
diff changeset
    28
			<attribute key="cpp-class-name">CAknEnumeratedTextPopupSettingItem</attribute>
cawthron
parents:
diff changeset
    29
			<attribute key="setting-item-class-name">CAknEnumeratedTextPopupSettingItem</attribute>
cawthron
parents:
diff changeset
    30
			<attribute key="data-model-cpp-type">TInt</attribute>
cawthron
parents:
diff changeset
    31
			<attribute key="rss-control-type-enum">EAknCtPopupSettingList</attribute>
cawthron
parents:
diff changeset
    32
			<attribute key="setting-item-has-associated-resource">true</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
			<arrayProperty name="items" category="Data" 
cawthron
parents:
diff changeset
    38
				type="com.nokia.sdt.series60.EnumeratedTextPopupType" 
cawthron
parents:
diff changeset
    39
				editorClass="com.nokia.sdt.series60.component.EnumeratedTextPopupListEditorFactory"
cawthron
parents:
diff changeset
    40
				descriptionKey="itemsDescription"
cawthron
parents:
diff changeset
    41
				/>
cawthron
parents:
diff changeset
    42
		</properties>
cawthron
parents:
diff changeset
    43
		
cawthron
parents:
diff changeset
    44
		<implementations>
cawthron
parents:
diff changeset
    45
			<implementation>
cawthron
parents:
diff changeset
    46
				<interface id="com.nokia.sdt.datamodel.adapter.IComponentValidator"/>
cawthron
parents:
diff changeset
    47
				<script file="CAknEnumeratedTextPopup.js" prototype="CAknEnumeratedTextPopup"/>
cawthron
parents:
diff changeset
    48
			</implementation>
cawthron
parents:
diff changeset
    49
		</implementations>
cawthron
parents:
diff changeset
    50
cawthron
parents:
diff changeset
    51
	<sourceMapping>
cawthron
parents:
diff changeset
    52
		<!-- empty for setting item page -->
cawthron
parents:
diff changeset
    53
		<mapResource struct="POPUP_SETTING_LIST" headers="avkon.rh" />
cawthron
parents:
diff changeset
    54
		
cawthron
parents:
diff changeset
    55
		<!-- this is the associated resource -->
cawthron
parents:
diff changeset
    56
		<mapResource struct="AVKON_POPUP_SETTING_TEXTS" headers="avkon.rh avkon.hrh"
cawthron
parents:
diff changeset
    57
			id="associated">
cawthron
parents:
diff changeset
    58
			<!-- TODO: flags? -->
cawthron
parents:
diff changeset
    59
			<mapResourceMember struct="ARRAY" 
cawthron
parents:
diff changeset
    60
					property="." member="setting_texts_resource" 
cawthron
parents:
diff changeset
    61
					headers="badef.rh"
cawthron
parents:
diff changeset
    62
					id="setting">
cawthron
parents:
diff changeset
    63
				<mapArrayMember property="items" member="items">
cawthron
parents:
diff changeset
    64
					<mapResourceElement struct="AVKON_ENUMERATED_TEXT" id="setting_element">
cawthron
parents:
diff changeset
    65
						<mapSimpleMember property="settingText" member="text"/>
cawthron
parents:
diff changeset
    66
						<mapSimpleMember property="value" member="value"/>
cawthron
parents:
diff changeset
    67
					</mapResourceElement>
cawthron
parents:
diff changeset
    68
				</mapArrayMember>
cawthron
parents:
diff changeset
    69
			</mapResourceMember>
cawthron
parents:
diff changeset
    70
			<mapResourceMember struct="ARRAY" 
cawthron
parents:
diff changeset
    71
					property="." member="popped_up_texts_resource" 
cawthron
parents:
diff changeset
    72
					headers="badef.rh"
cawthron
parents:
diff changeset
    73
					id="popup">
cawthron
parents:
diff changeset
    74
				<mapArrayMember property="items" member="items">
cawthron
parents:
diff changeset
    75
					<mapResourceElement struct="LBUF" id="popup_element">
cawthron
parents:
diff changeset
    76
						<mapSimpleMember property="popupText" member="txt"/>
cawthron
parents:
diff changeset
    77
					</mapResourceElement>
cawthron
parents:
diff changeset
    78
				</mapArrayMember>
cawthron
parents:
diff changeset
    79
			</mapResourceMember>
cawthron
parents:
diff changeset
    80
		</mapResource>
cawthron
parents:
diff changeset
    81
	</sourceMapping>
cawthron
parents:
diff changeset
    82
cawthron
parents:
diff changeset
    83
		<sourceGen forms="Dialog Container">
cawthron
parents:
diff changeset
    84
	
cawthron
parents:
diff changeset
    85
			<useTemplate ids="INIT_FROM_CONTAINER" />
cawthron
parents:
diff changeset
    86
			<useTemplate ids="INIT_FROM_DIALOG" />
cawthron
parents:
diff changeset
    87
			<useTemplateGroup ids="CLASS_CONTRIBS" />
cawthron
parents:
diff changeset
    88
			<useTemplate ids="LAYOUT_CONTROLS" />
cawthron
parents:
diff changeset
    89
			<useTemplate ids="INIT_FROM_SETTINGS_LIST" />
cawthron
parents:
diff changeset
    90
cawthron
parents:
diff changeset
    91
			<inline>
cawthron
parents:
diff changeset
    92
this.getCppSystemIncludes(contribs, [ "barsread.h", "stringloader.h",
cawthron
parents:
diff changeset
    93
									"aknpopupfieldtext.h", "eikenv.h" ]);
cawthron
parents:
diff changeset
    94
			</inline>
cawthron
parents:
diff changeset
    95
cawthron
parents:
diff changeset
    96
		<template phase="Initialize" forms="SettingsList"><![CDATA[
cawthron
parents:
diff changeset
    97
<% 		var el = instance.properties.items[instance.properties.active];
cawthron
parents:
diff changeset
    98
		var init = el ? "" + el.value : null;
cawthron
parents:
diff changeset
    99
		this.setupSettingItem(contribs, 0, instance, init); 
cawthron
parents:
diff changeset
   100
%>]]>	</template>
cawthron
parents:
diff changeset
   101
cawthron
parents:
diff changeset
   102
		<useTemplateGroup ids="GenerateCommonControlEvents GenerateStateChangedEvent"/>
cawthron
parents:
diff changeset
   103
		<useTemplateGroup ids="GenerateRequestingFocusEvent GenerateRequestingExitEvent"/>
cawthron
parents:
diff changeset
   104
		<useTemplateGroup ids="GenerateRequestingCancelEvent GenerateInteractionRefusedEvent"/>
cawthron
parents:
diff changeset
   105
		<useTemplateGroup ids="GeneratePrepareFocusTransitionEvent"/>
cawthron
parents:
diff changeset
   106
cawthron
parents:
diff changeset
   107
		<useTemplateGroup ids="GenerateEditingStartedEvent GenerateEditingStoppedEvent"/>
cawthron
parents:
diff changeset
   108
		
cawthron
parents:
diff changeset
   109
	</sourceGen>
cawthron
parents:
diff changeset
   110
cawthron
parents:
diff changeset
   111
	</component>
cawthron
parents:
diff changeset
   112
</componentDefinition>
cawthron
parents:
diff changeset
   113