|
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 friendlyName="%friendlyName" |
|
13 qualifiedName="com.nokia.sdt.series60.StatusPaneTitle" |
|
14 baseComponent="com.nokia.sdt.series60.StatusPaneTitleBase" |
|
15 category="System" |
|
16 instanceNameRoot="title" |
|
17 version="1.0"> |
|
18 <documentation> |
|
19 <information>%information</information> |
|
20 </documentation> |
|
21 <symbian sdkName="com.nokia.series60" minSDKVersion="2.0" |
|
22 className="CAknTitlePane" classHelpTopic="" |
|
23 resourceType="TITLE_PANE" resourceHelpTopic="" |
|
24 /> |
|
25 <attributes> |
|
26 <attribute key="model-type-disposition">view</attribute> |
|
27 <attribute key="status-pane-id">EEikStatusPaneUidTitle</attribute> |
|
28 <attribute key="rss-control-type-enum">EAknCtTitlePane</attribute> |
|
29 </attributes> |
|
30 <designerImages smallIconFile="StatusPaneTitle_sm.png" |
|
31 largeIconFile="StatusPaneTitle.png"/> |
|
32 <properties> |
|
33 <property name="titleText" displayName="%titleText" |
|
34 category="Data" type="localizedString" default="Title" |
|
35 descriptionKey="titleTextDescription" |
|
36 editorClass="com.nokia.sdt.symbian.ui.editors.ScalableTextEditorFactory" /> |
|
37 <compoundProperty category="Appearance" name="image" |
|
38 descriptionKey="imageDescription" |
|
39 type="com.nokia.sdt.symbian.imageProperty"/> |
|
40 </properties> |
|
41 <implementations> |
|
42 <implementation> |
|
43 <interface id="com.nokia.sdt.datamodel.adapter.IVisualAppearance"/> |
|
44 <interface id="com.nokia.sdt.datamodel.adapter.IDirectLabelEdit"/> |
|
45 <interface id="com.nokia.sdt.datamodel.adapter.IDirectImageEdit"/> |
|
46 <interface id="com.nokia.sdt.datamodel.adapter.IImagePropertyRenderingInfo"/> |
|
47 <interface id="com.nokia.sdt.datamodel.adapter.IComponentInstancePropertyListener"/> |
|
48 <script file="StatusPaneTitle_visual.js" prototype="StatusPaneTitleVisual"/> |
|
49 </implementation> |
|
50 </implementations> |
|
51 <sourceMapping> |
|
52 <mapResource struct="TITLE_PANE" headers="avkon.rh"> |
|
53 <mapSimpleMember property="titleText" member="txt"/> |
|
54 </mapResource> |
|
55 </sourceMapping> |
|
56 <sourceGen> |
|
57 <inline> |
|
58 include("../srcgenLibrary.js") |
|
59 </inline> |
|
60 <template phase="MainSystemIncludes"><![CDATA[ |
|
61 #include <akntitle.h> |
|
62 ]]> </template> |
|
63 <template phase="MainSystemIncludes"><![CDATA[ |
|
64 #include <stringloader.h> |
|
65 ]]> </template> |
|
66 <template phase="MainSystemIncludes"><![CDATA[ |
|
67 #include <barsread.h> |
|
68 ]]> </template> |
|
69 |
|
70 <template phase="SetupStatusPane"><![CDATA[ |
|
71 // setup the title pane |
|
72 TUid titlePaneUid = TUid::Uid( EEikStatusPaneUidTitle ); |
|
73 CEikStatusPaneBase::TPaneCapabilities subPaneTitle = |
|
74 StatusPane()->PaneCapabilities( titlePaneUid ); |
|
75 if ( subPaneTitle.IsPresent() && subPaneTitle.IsAppOwned() ) |
|
76 { |
|
77 CAknTitlePane* ${instanceName} = static_cast< CAknTitlePane* >( |
|
78 StatusPane()->ControlL( titlePaneUid ) ); |
|
79 <% if (properties.titleText != "") { |
|
80 %> TResourceReader reader; |
|
81 iEikonEnv->CreateResourceReaderLC( reader, ${resourceName$upper} ); |
|
82 ${instanceName}->SetFromResourceL( reader ); |
|
83 CleanupStack::PopAndDestroy(); // reader internal state |
|
84 <% } else { |
|
85 setupImageFromPropertyViaCFbsBitmap(contribs, instance, "SetupStatusPane", null, 1, |
|
86 instance.properties["image"], "EAspectRatioPreserved" /*aspect*/, |
|
87 instanceName + "->SetPicture( {0} );\\n", |
|
88 instanceName + "->SetPicture( {0}, {1} );\\n", |
|
89 instanceName + "->Size()" |
|
90 ); |
|
91 } |
|
92 %> } |
|
93 ]]> |
|
94 </template> |
|
95 |
|
96 |
|
97 </sourceGen> |
|
98 </component> |
|
99 </componentDefinition> |