uidesigner/com.nokia.sdt.test.componentlibrary/components/testing/base.component
changeset 2 d760517a8095
equal deleted inserted replaced
-1:000000000000 2:d760517a8095
       
     1 <?xml version="1.0" encoding="UTF-8"?>
       
     2 <!-- Copyright (c) 2009 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:ecore="http://www.eclipse.org/emf/2002/Ecore" 
       
    10 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
       
    11 	<compoundPropertyDeclaration qualifiedName="com.nokia.examples.locationProperty">
       
    12 		<property name="x" type="integer"/>
       
    13 		<property name="y" type="integer"/>
       
    14 	</compoundPropertyDeclaration>
       
    15 	<compoundPropertyDeclaration qualifiedName="com.nokia.examples.sizeProperty">
       
    16 		<property name="width" type="integer"/>
       
    17 		<property name="height" type="integer"/>
       
    18 	</compoundPropertyDeclaration>
       
    19 	<component friendlyName="Base" qualifiedName="com.nokia.examples.baseComponent" 
       
    20 		category="Testing" version="1.0">
       
    21 		<documentation>
       
    22 			<information>Base component information</information>
       
    23 			<helpTopic>Base component help topic</helpTopic>
       
    24 		</documentation>
       
    25 		<symbian sdkName="com.nokia.series60" minSDKVersion="2.0" />
       
    26 		<designerImages smallIconFile="test-image.bmp" largeIconFile="test-image.bmp" layoutImageFile="test-image.bmp"/>
       
    27 		<attributes>
       
    28 			<attribute key="is-layout-object">true</attribute>
       
    29 		</attributes>
       
    30 		<properties>
       
    31 			<property category="Basic" displayName="name" name="name" type="uniqueName"/>
       
    32 			<property category="Bizarre" displayName="flag" name="flag" type="boolean"/>
       
    33 			<compoundProperty category="Layout" displayName="location" name="location" type="com.nokia.examples.locationProperty"/>
       
    34 			<compoundProperty category="Layout" displayName="size" name="size" type="com.nokia.examples.sizeProperty"/>
       
    35 			<property name="text" type="localizedString"/>
       
    36 			<componentReferenceProperty scope="siblings" name="siblingRef"/>
       
    37 		</properties>
       
    38 		<events>
       
    39 			<event name="com.nokia.examples.baseComponent.somethingHappened" category="example" 
       
    40 			    handlerNameTemplate="{title(name)}_SomethingHappened" 
       
    41 			    />
       
    42 		</events>
       
    43 		<implementations>
       
    44 			<implementation>
       
    45 				<interface id="com.nokia.sdt.datamodel.adapter.IPropertyExtenders"/>
       
    46 				<code class="com.nokia.sdt.series60.component.DefaultPropertyExtenderFactory"/>
       
    47 			</implementation>
       
    48 		</implementations>
       
    49 	</component>
       
    50 </componentDefinition>