uidesigner/com.nokia.sdt.series60.componentlibrary/components/design_time/DesignTimeContainer.component
author cawthron
Tue, 24 Mar 2009 22:20:21 -0500
changeset 2 d760517a8095
permissions -rw-r--r--
new
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
cawthron
parents:
diff changeset
     1
<?xml version="1.0" encoding="UTF-8"?>
cawthron
parents:
diff changeset
     2
<!-- Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). -->
cawthron
parents:
diff changeset
     3
<!-- All rights reserved. -->
cawthron
parents:
diff changeset
     4
<!-- This component and the accompanying materials are made available -->
cawthron
parents:
diff changeset
     5
<!-- under the terms of the License "Eclipse Public License v1.0" -->
cawthron
parents:
diff changeset
     6
<!-- which accompanies this distribution, and is available -->
cawthron
parents:
diff changeset
     7
<!-- at the URL "http://www.eclipse.org/legal/epl-v10.html". -->
cawthron
parents:
diff changeset
     8
cawthron
parents:
diff changeset
     9
<componentDefinition xmlns="http://www.nokia.com/sdt/emf/component" 
cawthron
parents:
diff changeset
    10
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
cawthron
parents:
diff changeset
    11
cawthron
parents:
diff changeset
    12
	<component 
cawthron
parents:
diff changeset
    13
			friendlyName="" 
cawthron
parents:
diff changeset
    14
			qualifiedName="com.nokia.sdt.series60.DesignTimeContainer" 
cawthron
parents:
diff changeset
    15
			baseComponent="com.nokia.sdt.series60.CommonBase"
cawthron
parents:
diff changeset
    16
			abstract="true"
cawthron
parents:
diff changeset
    17
			version="1.0">
cawthron
parents:
diff changeset
    18
		<symbian sdkName="com.nokia.series60" minSDKVersion="2.0"/>
cawthron
parents:
diff changeset
    19
		<attributes>
cawthron
parents:
diff changeset
    20
			<attribute key="is-layout-object">true</attribute>
cawthron
parents:
diff changeset
    21
			<attribute key="is-layout-container">true</attribute>
cawthron
parents:
diff changeset
    22
	  		<attribute key="display-model-class">com.nokia.sdt.component.symbian.displaymodel.DisplayModelS60</attribute>
cawthron
parents:
diff changeset
    23
			<attribute key="not-in-toolbox">true</attribute>
cawthron
parents:
diff changeset
    24
			<attribute key="is-non-resizable-or-moveable-layout-object">true</attribute>
cawthron
parents:
diff changeset
    25
			<attribute key="fixed-child-order">true</attribute>
cawthron
parents:
diff changeset
    26
			<attribute key="container-background-color">EEikColorWindowBackground</attribute>
cawthron
parents:
diff changeset
    27
		</attributes>
cawthron
parents:
diff changeset
    28
		<properties>
cawthron
parents:
diff changeset
    29
			<property name="className" category="Design" type="string" readOnly="true"
cawthron
parents:
diff changeset
    30
				descriptionKey="classDescription"/>
cawthron
parents:
diff changeset
    31
			<compoundProperty name="location" category="Hidden" type="com.nokia.sdt.series60.locationProperty"/>
cawthron
parents:
diff changeset
    32
			<compoundProperty name="size" category="Hidden" type="com.nokia.sdt.series60.sizeProperty"/>
cawthron
parents:
diff changeset
    33
		</properties>
cawthron
parents:
diff changeset
    34
		
cawthron
parents:
diff changeset
    35
		<sourceGen>
cawthron
parents:
diff changeset
    36
			<inline scope="prototype"><![CDATA[
cawthron
parents:
diff changeset
    37
${jsObject}.prototype.getHrhFiles = function(contribs) {
cawthron
parents:
diff changeset
    38
			// get the generated files matching this pattern and include them
cawthron
parents:
diff changeset
    39
			var files = Engine.findGeneratedRssFiles(".*\\.hrh");
cawthron
parents:
diff changeset
    40
			for (idx in files) {
cawthron
parents:
diff changeset
    41
				var file = files[idx];
cawthron
parents:
diff changeset
    42
				var mycontrib = Engine.createContributionForPhase("MainUserIncludes")
cawthron
parents:
diff changeset
    43
				mycontrib.setText("#include \"" + file + "\"\n");
cawthron
parents:
diff changeset
    44
				contribs.add(mycontrib);
cawthron
parents:
diff changeset
    45
			}
cawthron
parents:
diff changeset
    46
}
cawthron
parents:
diff changeset
    47
]]>			</inline>
cawthron
parents:
diff changeset
    48
cawthron
parents:
diff changeset
    49
			
cawthron
parents:
diff changeset
    50
		</sourceGen>
cawthron
parents:
diff changeset
    51
		
cawthron
parents:
diff changeset
    52
	</component>
cawthron
parents:
diff changeset
    53
</componentDefinition>