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.NaviText"
|
|
14 |
category="System"
|
|
15 |
instanceNameRoot="naviText"
|
|
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_LABEL" resourceHelpTopic="" />
|
|
23 |
<designerImages smallIconFile="NaviText_sm.png" largeIconFile="NaviText.png"/>
|
|
24 |
<attributes>
|
|
25 |
<attribute key="rss-control-type-enum">EAknCtNaviPane</attribute>
|
|
26 |
</attributes>
|
|
27 |
<properties>
|
|
28 |
<property category="Design" name="text" type="localizedString"
|
|
29 |
default="text"
|
|
30 |
descriptionKey="textDescription"
|
|
31 |
editorClass="com.nokia.sdt.symbian.ui.editors.ScalableTextEditorFactory" />
|
|
32 |
</properties>
|
|
33 |
<designerImages
|
|
34 |
smallIconFile="NaviText_sm.png"
|
|
35 |
largeIconFile="NaviText.png"/>
|
|
36 |
<implementations>
|
|
37 |
<implementation>
|
|
38 |
<interface id="com.nokia.sdt.datamodel.adapter.IVisualAppearance"/>
|
|
39 |
<interface id="com.nokia.sdt.datamodel.adapter.IDirectLabelEdit"/>
|
|
40 |
<script file="NaviText_visual.js" prototype="NaviTextVisual"/>
|
|
41 |
</implementation>
|
|
42 |
</implementations>
|
|
43 |
|
|
44 |
<!-- note: this generates both the navi pane status pane AND the singular item content -->
|
|
45 |
|
|
46 |
<sourceMapping>
|
|
47 |
<mapResource struct="NAVI_DECORATOR" headers="avkon.rh">
|
|
48 |
<mapFixedMember value="ENaviDecoratorLabel" member="type"/>
|
|
49 |
<mapResourceMember property="." member="control" struct="NAVI_LABEL" headers="avkon.rh">
|
|
50 |
<mapSimpleMember property="text" member="txt"/>
|
|
51 |
</mapResourceMember>
|
|
52 |
</mapResource>
|
|
53 |
<mapResource struct="TBUF" headers="badef.rh" id="text" standalone="true">
|
|
54 |
<mapSimpleMember property="text" member="buf"/>
|
|
55 |
</mapResource>
|
|
56 |
</sourceMapping>
|
|
57 |
|
|
58 |
<sourceGen>
|
|
59 |
<useTemplateGroup ids="NaviBaseSetup"/>
|
|
60 |
<useTemplate ids="SetupPrelude"/>
|
|
61 |
|
|
62 |
<template phase="SetupStatusPane"><![CDATA[
|
|
63 |
HBufC* labelText = StringLoader::LoadLC( ${Engine.getGeneratedResource(instance, "text").toUpperCase() } );
|
|
64 |
iNaviDecorator_ = naviPane->CreateNavigationLabelL( *labelText );
|
|
65 |
CleanupStack::PopAndDestroy( labelText );
|
|
66 |
]]>
|
|
67 |
</template>
|
|
68 |
|
|
69 |
<useTemplate ids="SetupPostlude CleanupPostlude"/>
|
|
70 |
|
|
71 |
<template phase="MainSystemIncludes"><![CDATA[
|
|
72 |
#include <stringloader.h>
|
|
73 |
]]> </template>
|
|
74 |
|
|
75 |
|
|
76 |
</sourceGen>
|
|
77 |
</component>
|
|
78 |
</componentDefinition>
|