uidesigner/com.nokia.sdt.component.symbian.test/data/srcgen/complex.component
author fturovic <frank.turovich@nokia.com>
Mon, 10 Aug 2009 15:21:12 -0500
changeset 400 9b005a8e6778
parent 0 fb279309251b
permissions -rw-r--r--
removed duplicate pages, unused images, and fixed links to same

<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -->
<!-- All rights reserved.                                              -->
<!-- This component and the accompanying materials are made available  -->
<!-- under the terms of the License "Eclipse Public License v1.0"      -->
<!-- which accompanies this distribution, and is available             -->
<!-- at the URL "http://www.eclipse.org/legal/epl-v10.html".           -->
<componentDefinition xmlns="http://www.nokia.com/sdt/emf/component" 
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://www.nokia.com/sdt/emf/component
C:\Users\NOKIAI~1\RADPLA~1\design\component.xsd">
	<component baseComponent="com.nokia.examples.baseComponent"
	friendlyName="SourceGen Test" qualifiedName="com.nokia.examples.complex" 
	category="Testing" version="1.0">
		<documentation>
			<information>
			Source generation test component
			</information>
		</documentation>
		<designerImages smallIconFile="test-image.bmp" largeIconFile="test-image.bmp" layoutImageFile="test-image.bmp"/>
		<symbian sdkName="com.nokia.series60" minSDKVersion="2.0" maxSDKVersion="3.0" 
			classHelpTopic="org.eclipse.ui.property_sheet_page_help_context" 
			/>
		<attributes>
			<attribute key="is-layout-object">true</attribute>
		</attributes>
		<properties>
			<property category="Data" displayName="First" name="first" type="integer"/>
			<property category="Data" displayName="Second" name="second" type="integer"/>
		</properties>
		<sourceGen forms="CEikDialog">
		 <templateGroup form="CEikDialog">
		   <template phase="initcomponents" id="foo">
		${id} =static_cast&lt;CEikEdwin*&gt; (ControlOrNull(${property["dialogId"]}));
		   </template>
		   <template phase="parenting"> ... parenting for CEikDialog ... </template>
		 </templateGroup>
		 <templateGroup form="default">
		   <template phase="initcomponents" id="foo">  <!-- note: "id" can be shared in different forms -->
		${id} = new (ELeave) CEikEdwin;
		...
		iCoeEnv-&gt;CreateResourceReaderLC (reader, ${property["rssName"]});
		   </template>
		 <template phase="parenting"> ... parenting for default ... </template>
		</templateGroup>
		<!-- unnamed group -->
		<templateGroup>
			<template id="pol">
			</template>
		</templateGroup>
		</sourceGen>

	</component>
</componentDefinition>