uidesigner/com.nokia.sdt.series60.componentlibrary/components/controls/setting-items/CAknEnumeratedTextPopup.component
changeset 0 fb279309251b
equal deleted inserted replaced
-1:000000000000 0:fb279309251b
       
     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.CAknEnumeratedTextPopupSettingItem"
       
    13 		baseComponent="com.nokia.sdt.series60.EnumeratedTextPopupBase" 
       
    14 		category="Controls"
       
    15 		instanceNameRoot="enumeratedTextPopup" 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="CAknEnumeratedTextPopupSettingItem" />
       
    23 		<designerImages 
       
    24 			smallIconFile="CAknEnumeratedTextPopup_sm.png" 
       
    25 			largeIconFile="CAknEnumeratedTextPopup.png"/>
       
    26 				
       
    27 		<attributes>
       
    28 			<attribute key="cpp-class-name">CAknEnumeratedTextPopupSettingItem</attribute>
       
    29 			<attribute key="setting-item-class-name">CAknEnumeratedTextPopupSettingItem</attribute>
       
    30 			<attribute key="data-model-cpp-type">TInt</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" 
       
    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="CAknEnumeratedTextPopup.js" prototype="CAknEnumeratedTextPopup"/>
       
    48 			</implementation>
       
    49 		</implementations>
       
    50 
       
    51 	<sourceMapping>
       
    52 		<!-- empty for setting item page -->
       
    53 		<mapResource struct="POPUP_SETTING_LIST" headers="avkon.rh" />
       
    54 		
       
    55 		<!-- this is the associated resource -->
       
    56 		<mapResource struct="AVKON_POPUP_SETTING_TEXTS" headers="avkon.rh avkon.hrh"
       
    57 			id="associated">
       
    58 			<!-- TODO: flags? -->
       
    59 			<mapResourceMember struct="ARRAY" 
       
    60 					property="." member="setting_texts_resource" 
       
    61 					headers="badef.rh"
       
    62 					id="setting">
       
    63 				<mapArrayMember property="items" member="items">
       
    64 					<mapResourceElement struct="AVKON_ENUMERATED_TEXT" id="setting_element">
       
    65 						<mapSimpleMember property="settingText" member="text"/>
       
    66 						<mapSimpleMember property="value" member="value"/>
       
    67 					</mapResourceElement>
       
    68 				</mapArrayMember>
       
    69 			</mapResourceMember>
       
    70 			<mapResourceMember struct="ARRAY" 
       
    71 					property="." member="popped_up_texts_resource" 
       
    72 					headers="badef.rh"
       
    73 					id="popup">
       
    74 				<mapArrayMember property="items" member="items">
       
    75 					<mapResourceElement struct="LBUF" id="popup_element">
       
    76 						<mapSimpleMember property="popupText" member="txt"/>
       
    77 					</mapResourceElement>
       
    78 				</mapArrayMember>
       
    79 			</mapResourceMember>
       
    80 		</mapResource>
       
    81 	</sourceMapping>
       
    82 
       
    83 		<sourceGen forms="Dialog Container">
       
    84 	
       
    85 			<useTemplate ids="INIT_FROM_CONTAINER" />
       
    86 			<useTemplate ids="INIT_FROM_DIALOG" />
       
    87 			<useTemplateGroup ids="CLASS_CONTRIBS" />
       
    88 			<useTemplate ids="LAYOUT_CONTROLS" />
       
    89 			<useTemplate ids="INIT_FROM_SETTINGS_LIST" />
       
    90 
       
    91 			<inline>
       
    92 this.getCppSystemIncludes(contribs, [ "barsread.h", "stringloader.h",
       
    93 									"aknpopupfieldtext.h", "eikenv.h" ]);
       
    94 			</inline>
       
    95 
       
    96 		<template phase="Initialize" forms="SettingsList"><![CDATA[
       
    97 <% 		var el = instance.properties.items[instance.properties.active];
       
    98 		var init = el ? "" + el.value : null;
       
    99 		this.setupSettingItem(contribs, 0, instance, init); 
       
   100 %>]]>	</template>
       
   101 
       
   102 		<useTemplateGroup ids="GenerateCommonControlEvents GenerateStateChangedEvent"/>
       
   103 		<useTemplateGroup ids="GenerateRequestingFocusEvent GenerateRequestingExitEvent"/>
       
   104 		<useTemplateGroup ids="GenerateRequestingCancelEvent GenerateInteractionRefusedEvent"/>
       
   105 		<useTemplateGroup ids="GeneratePrepareFocusTransitionEvent"/>
       
   106 
       
   107 		<useTemplateGroup ids="GenerateEditingStartedEvent GenerateEditingStoppedEvent"/>
       
   108 		
       
   109 	</sourceGen>
       
   110 
       
   111 	</component>
       
   112 </componentDefinition>
       
   113