2
|
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 |
xsi:schemaLocation="http://www.nokia.com/sdt/emf/component
|
|
12 |
C:\Users\NOKIAI~1\RADPLA~1\design\component.xsd">
|
|
13 |
<component baseComponent="com.nokia.examples.baseComponent"
|
|
14 |
friendlyName="SourceGen Test" qualifiedName="com.nokia.examples.srcgenTest"
|
|
15 |
category="Testing" version="1.0">
|
|
16 |
<documentation>
|
|
17 |
<information>
|
|
18 |
Source generation test component
|
|
19 |
</information>
|
|
20 |
</documentation>
|
|
21 |
<designerImages smallIconFile="test-image.bmp" largeIconFile="test-image.bmp" layoutImageFile="test-image.bmp"/>
|
|
22 |
<symbian sdkName="com.nokia.series60" minSDKVersion="2.0" maxSDKVersion="3.0"
|
|
23 |
classHelpTopic="org.eclipse.ui.property_sheet_page_help_context"
|
|
24 |
/>
|
|
25 |
<attributes>
|
|
26 |
<attribute key="is-layout-object">true</attribute>
|
|
27 |
</attributes>
|
|
28 |
<properties>
|
|
29 |
<property category="Data" displayName="First" name="first" type="integer"/>
|
|
30 |
<property category="Data" displayName="Second" name="second" type="integer"/>
|
|
31 |
</properties>
|
|
32 |
<sourceGen forms="CEikDialog">
|
|
33 |
<templateGroup form="CEikDialog">
|
|
34 |
<template phase="initcomponents" id="foo">
|
|
35 |
${id} =static_cast<CEikEdwin*> (ControlOrNull(${property["dialogId"]}));
|
|
36 |
</template>
|
|
37 |
<template phase="parenting"> ... parenting for CEikDialog ... </template>
|
|
38 |
</templateGroup>
|
|
39 |
<templateGroup form="default">
|
|
40 |
<template phase="initcomponents" id="foo"> <!-- note: "id" can be shared in different forms -->
|
|
41 |
${id} = new (ELeave) CEikEdwin;
|
|
42 |
...
|
|
43 |
iCoeEnv->CreateResourceReaderLC (reader, ${property["rssName"]});
|
|
44 |
</template>
|
|
45 |
<template phase="parenting"> ... parenting for default ... </template>
|
|
46 |
</templateGroup>
|
|
47 |
</sourceGen>
|
|
48 |
|
|
49 |
</component>
|
|
50 |
</componentDefinition>
|