|
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.StatusPane" |
|
14 baseComponent="com.nokia.sdt.series60.ControlBase" |
|
15 category="System" |
|
16 instanceNameRoot="statusPane" |
|
17 version="1.0"> |
|
18 <documentation> |
|
19 <information>%information</information> |
|
20 </documentation> |
|
21 <symbian sdkName="com.nokia.series60" minSDKVersion="2.0" |
|
22 className="CEikStatusPane" classHelpTopic="" |
|
23 resourceType="STATUS_PANE_APP_INFO" resourceHelpTopic="" |
|
24 /> |
|
25 <attributes> |
|
26 <attribute key="is-layout-object">true</attribute> |
|
27 <attribute key="is-layout-container">true</attribute> |
|
28 <attribute key="is-system-component">true</attribute> |
|
29 <attribute key="is-not-user-removable">true</attribute> |
|
30 <attribute key="never-add-component">true</attribute> |
|
31 <attribute key="display-model-class">com.nokia.sdt.component.symbian.displaymodel.DisplayModelS60</attribute> |
|
32 <attribute key="is-non-resizable-or-moveable-layout-object">true</attribute> |
|
33 </attributes> |
|
34 <propertyOverrides> |
|
35 <propertyOverride name="location" category="Hidden"/> |
|
36 <propertyOverride name="size" category="Hidden"/> |
|
37 </propertyOverrides> |
|
38 |
|
39 <designerImages smallIconFile="StatusPane_sm.png" |
|
40 largeIconFile="StatusPane.png"/> |
|
41 <implementations> |
|
42 <implementation> |
|
43 <interface id="com.nokia.sdt.datamodel.adapter.IVisualAppearance"/> |
|
44 <code class="com.nokia.sdt.series60.component.StatusPaneVisualImplFactory"/> |
|
45 </implementation> |
|
46 <implementation> |
|
47 <interface id="com.nokia.sdt.datamodel.adapter.ILayout"/> |
|
48 <code class="com.nokia.sdt.series60.component.StatusPaneLayoutImplFactory"/> |
|
49 </implementation> |
|
50 <implementation> |
|
51 <interface id="com.nokia.sdt.datamodel.adapter.IQueryContainment"/> |
|
52 <script file="StatusPane_queryContainment.js" prototype="StatusPaneQueryContainment"/> |
|
53 </implementation> |
|
54 </implementations> |
|
55 <sourceMapping> |
|
56 <mapResource struct="STATUS_PANE_APP_MODEL" headers="uikon.rh"> |
|
57 <mapArrayMember property="." member="panes"> |
|
58 <select attribute="status-pane-id"> |
|
59 <choice value=""> |
|
60 </choice> |
|
61 <choice> |
|
62 <mapResourceElement struct="SPANE_PANE" |
|
63 instanceIdentifyingMember="id" > |
|
64 <!-- looking at the current array element, get the |
|
65 enumerator for the status pane id --> |
|
66 <mapEnumMember property="." member="id" |
|
67 nameAlgorithm="com.nokia.sdt.component.symbian.NAME_ALG_STATUS_PANE_ID" |
|
68 headers="avkon.hrh" |
|
69 /> |
|
70 <!-- looking at the current array element, get the |
|
71 enumerator for the instance's control type --> |
|
72 <mapEnumMember property="." member="type" |
|
73 nameAlgorithm="com.nokia.sdt.component.symbian.NAME_ALG_CONTROL_TYPE" |
|
74 headers="eikon.hrh" |
|
75 /> |
|
76 <mapResourceMember property="." member="resource"/> |
|
77 </mapResourceElement> |
|
78 </choice> |
|
79 </select> |
|
80 </mapArrayMember> |
|
81 </mapResource> |
|
82 </sourceMapping> |
|
83 <sourceGen> |
|
84 <inline> |
|
85 include("../containers/containerLibrary.js") |
|
86 </inline> |
|
87 <template phase="MainSystemIncludes"><![CDATA[ |
|
88 #include <akncontext.h> |
|
89 ]]> </template> |
|
90 <template phase="MainSystemIncludes"><![CDATA[ |
|
91 #include <akntitle.h> |
|
92 ]]> </template> |
|
93 <template phase="SetupStatusPane"><![CDATA[ |
|
94 <% if (!findImmediateChildByComponentID(instance.children, |
|
95 "com.nokia.sdt.series60.StatusPaneTitle")) { |
|
96 %>// reset the title pane |
|
97 TUid titlePaneUid = TUid::Uid( EEikStatusPaneUidTitle ); |
|
98 CEikStatusPaneBase::TPaneCapabilities subPaneTitle = |
|
99 StatusPane()->PaneCapabilities( titlePaneUid ); |
|
100 if ( subPaneTitle.IsPresent() && subPaneTitle.IsAppOwned() ) |
|
101 { |
|
102 CAknTitlePane* title = static_cast< CAknTitlePane* >( |
|
103 StatusPane()->ControlL( titlePaneUid ) ); |
|
104 title->SetTextToDefaultL(); |
|
105 } |
|
106 <% } |
|
107 if (!findImmediateChildByComponentID(instance.children, |
|
108 "com.nokia.sdt.series60.StatusPaneContext")) { |
|
109 %>// reset the context pane |
|
110 TUid contextPaneUid = TUid::Uid( EEikStatusPaneUidContext ); |
|
111 CEikStatusPaneBase::TPaneCapabilities subPaneContext = |
|
112 StatusPane()->PaneCapabilities( contextPaneUid ); |
|
113 if ( subPaneContext.IsPresent() && subPaneContext.IsAppOwned() ) |
|
114 { |
|
115 CAknContextPane* context = static_cast< CAknContextPane* > ( |
|
116 StatusPane()->ControlL( contextPaneUid ) ); |
|
117 context->SetPictureToDefaultL(); |
|
118 } |
|
119 <% } %> |
|
120 ]]> </template> |
|
121 |
|
122 <template phase="CleanupStatusPane"/> |
|
123 |
|
124 <inline><![CDATA[ |
|
125 if (!Engine.formMatches(form, ["RootAppUi"])) { |
|
126 contribs.addAll(Engine.generateChildContributions(form)) |
|
127 } |
|
128 ]]></inline> |
|
129 |
|
130 </sourceGen> |
|
131 </component> |
|
132 </componentDefinition> |