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