|
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 |
|
9 <componentDefinition xmlns="http://www.nokia.com/sdt/emf/component" |
|
10 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
|
11 |
|
12 <component |
|
13 friendlyName="" |
|
14 qualifiedName="com.nokia.sdt.series60.DesignTimeContainer" |
|
15 baseComponent="com.nokia.sdt.series60.CommonBase" |
|
16 abstract="true" |
|
17 version="1.0"> |
|
18 <symbian sdkName="com.nokia.series60" minSDKVersion="2.0"/> |
|
19 <attributes> |
|
20 <attribute key="is-layout-object">true</attribute> |
|
21 <attribute key="is-layout-container">true</attribute> |
|
22 <attribute key="display-model-class">com.nokia.sdt.component.symbian.displaymodel.DisplayModelS60</attribute> |
|
23 <attribute key="not-in-toolbox">true</attribute> |
|
24 <attribute key="is-non-resizable-or-moveable-layout-object">true</attribute> |
|
25 <attribute key="fixed-child-order">true</attribute> |
|
26 <attribute key="container-background-color">EEikColorWindowBackground</attribute> |
|
27 </attributes> |
|
28 <properties> |
|
29 <property name="className" category="Design" type="string" readOnly="true" |
|
30 descriptionKey="classDescription"/> |
|
31 <compoundProperty name="location" category="Hidden" type="com.nokia.sdt.series60.locationProperty"/> |
|
32 <compoundProperty name="size" category="Hidden" type="com.nokia.sdt.series60.sizeProperty"/> |
|
33 </properties> |
|
34 |
|
35 <sourceGen> |
|
36 <inline scope="prototype"><![CDATA[ |
|
37 ${jsObject}.prototype.getHrhFiles = function(contribs) { |
|
38 // get the generated files matching this pattern and include them |
|
39 var files = Engine.findGeneratedRssFiles(".*\\.hrh"); |
|
40 for (idx in files) { |
|
41 var file = files[idx]; |
|
42 var mycontrib = Engine.createContributionForPhase("MainUserIncludes") |
|
43 mycontrib.setText("#include \"" + file + "\"\n"); |
|
44 contribs.add(mycontrib); |
|
45 } |
|
46 } |
|
47 ]]> </inline> |
|
48 |
|
49 |
|
50 </sourceGen> |
|
51 |
|
52 </component> |
|
53 </componentDefinition> |