uidesigner/com.nokia.sdt.series60.componentlibrary/components/navipane/NaviImage.component
author fturovic <frank.turovich@nokia.com>
Tue, 07 Apr 2009 13:55:47 -0500
branchRCL_2_0
changeset 69 cab50ba61335
parent 2 d760517a8095
permissions -rw-r--r--
added info on IAD custom rules
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
	<component baseComponent="com.nokia.sdt.series60.NaviBase" 
cawthron
parents:
diff changeset
    12
		friendlyName="%friendlyName" 
cawthron
parents:
diff changeset
    13
		qualifiedName="com.nokia.sdt.series60.NaviImage" 
cawthron
parents:
diff changeset
    14
		category="System"
cawthron
parents:
diff changeset
    15
		instanceNameRoot="naviImage"
cawthron
parents:
diff changeset
    16
		version="1.0">
cawthron
parents:
diff changeset
    17
		<documentation>
cawthron
parents:
diff changeset
    18
			<information>%information</information>
cawthron
parents:
diff changeset
    19
		</documentation>
cawthron
parents:
diff changeset
    20
		<symbian sdkName="com.nokia.series60" minSDKVersion="2.0" 
cawthron
parents:
diff changeset
    21
			className="CAknNavigationControlContainer" classHelpTopic=""
cawthron
parents:
diff changeset
    22
			resourceType="NAVI_DECORATOR, NAVI_IMAGE" resourceHelpTopic="" />
cawthron
parents:
diff changeset
    23
		<designerImages smallIconFile="NaviImage_sm.png" 
cawthron
parents:
diff changeset
    24
			largeIconFile="NaviImage.png"/>
cawthron
parents:
diff changeset
    25
		<attributes>
cawthron
parents:
diff changeset
    26
			<attribute key="rss-control-type-enum">EAknCtNaviPane</attribute>
cawthron
parents:
diff changeset
    27
		</attributes>
cawthron
parents:
diff changeset
    28
		<properties>
cawthron
parents:
diff changeset
    29
			<compoundProperty category="Appearance" name="image"
cawthron
parents:
diff changeset
    30
				type="com.nokia.sdt.symbian.imageProperty"
cawthron
parents:
diff changeset
    31
				descriptionKey="imageDescription" />
cawthron
parents:
diff changeset
    32
		</properties>
cawthron
parents:
diff changeset
    33
		<implementations>
cawthron
parents:
diff changeset
    34
			<implementation>
cawthron
parents:
diff changeset
    35
				<interface id="com.nokia.sdt.datamodel.adapter.IVisualAppearance"/>
cawthron
parents:
diff changeset
    36
				<interface id="com.nokia.sdt.datamodel.adapter.IDirectImageEdit"/>
cawthron
parents:
diff changeset
    37
				<interface id="com.nokia.sdt.datamodel.adapter.IImagePropertyRenderingInfo"/>
cawthron
parents:
diff changeset
    38
				<script file="NaviImage_visual.js" prototype="NaviImageVisual"/>
cawthron
parents:
diff changeset
    39
			</implementation>
cawthron
parents:
diff changeset
    40
		</implementations>
cawthron
parents:
diff changeset
    41
		
cawthron
parents:
diff changeset
    42
		<!-- note: this generates both the navi pane status pane AND the singular item content -->
cawthron
parents:
diff changeset
    43
cawthron
parents:
diff changeset
    44
		<sourceMapping>
cawthron
parents:
diff changeset
    45
			<mapResource struct="NAVI_DECORATOR" headers="avkon.rh">
cawthron
parents:
diff changeset
    46
				<mapFixedMember value="ENaviDecoratorImage" member="type"/>
cawthron
parents:
diff changeset
    47
				<mapResourceMember property="." member="control" struct="NAVI_IMAGE" headers="avkon.rh">
cawthron
parents:
diff changeset
    48
					<mapSimpleMember property="image.bmpfile" member="bmpfile"/>
cawthron
parents:
diff changeset
    49
					<mapIdentifierMember property="image.bmpid" member="bmpid"/>
cawthron
parents:
diff changeset
    50
					<mapIdentifierMember property="image.bmpmask" member="bmpmask"/>
cawthron
parents:
diff changeset
    51
				</mapResourceMember>
cawthron
parents:
diff changeset
    52
			</mapResource>
cawthron
parents:
diff changeset
    53
		</sourceMapping>
cawthron
parents:
diff changeset
    54
	
cawthron
parents:
diff changeset
    55
		<sourceGen>
cawthron
parents:
diff changeset
    56
			<inline>
cawthron
parents:
diff changeset
    57
include("../srcgenLibrary.js")
cawthron
parents:
diff changeset
    58
			</inline>
cawthron
parents:
diff changeset
    59
			
cawthron
parents:
diff changeset
    60
			<useTemplateGroup ids="NaviBaseSetup"/>
cawthron
parents:
diff changeset
    61
			<useTemplate ids="SetupPrelude"/>
cawthron
parents:
diff changeset
    62
cawthron
parents:
diff changeset
    63
			<template phase="MainSystemIncludes"><![CDATA[
cawthron
parents:
diff changeset
    64
#include <barsread.h>
cawthron
parents:
diff changeset
    65
]]>			</template>
cawthron
parents:
diff changeset
    66
cawthron
parents:
diff changeset
    67
			<template phase="SetupStatusPane"><![CDATA[
cawthron
parents:
diff changeset
    68
		{
cawthron
parents:
diff changeset
    69
		TResourceReader reader;
cawthron
parents:
diff changeset
    70
		iEikonEnv->CreateResourceReaderLC( reader, ${resourceName$upper} );
cawthron
parents:
diff changeset
    71
		iNaviDecorator_ = naviPane->ConstructNavigationDecoratorFromResourceL( reader );
cawthron
parents:
diff changeset
    72
		CleanupStack::PopAndDestroy(); // reader internal state
cawthron
parents:
diff changeset
    73
		}
cawthron
parents:
diff changeset
    74
]]>			
cawthron
parents:
diff changeset
    75
			</template>
cawthron
parents:
diff changeset
    76
cawthron
parents:
diff changeset
    77
<!--
cawthron
parents:
diff changeset
    78
			<inline>
cawthron
parents:
diff changeset
    79
if (formrx.test("")) {
cawthron
parents:
diff changeset
    80
	// dynamically resize the image
cawthron
parents:
diff changeset
    81
	setupImageFromPropertyViaCFbsBitmap(contribs, instance, "SetupStatusPane", null, 1,
cawthron
parents:
diff changeset
    82
			instance.properties["image"], "EAspectRatioPreserved",
cawthron
parents:
diff changeset
    83
			"iNaviDecorator_ = naviPane->CreateNavigationImageL( {0} );\n",
cawthron
parents:
diff changeset
    84
			"iNaviDecorator_ = naviPane->CreateNavigationImageL( {0}, {1} );\n",
cawthron
parents:
diff changeset
    85
			"naviPane->Size()"
cawthron
parents:
diff changeset
    86
			);
cawthron
parents:
diff changeset
    87
}
cawthron
parents:
diff changeset
    88
			</inline>
cawthron
parents:
diff changeset
    89
-->
cawthron
parents:
diff changeset
    90
	
cawthron
parents:
diff changeset
    91
			<useTemplate ids="SetupPostlude CleanupPostlude"/>
cawthron
parents:
diff changeset
    92
cawthron
parents:
diff changeset
    93
		</sourceGen>
cawthron
parents:
diff changeset
    94
	</component>
cawthron
parents:
diff changeset
    95
</componentDefinition>