|
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.StatusPaneContext" |
|
14 baseComponent="com.nokia.sdt.series60.StatusPaneContextBase" |
|
15 category="System" |
|
16 instanceNameRoot="context" |
|
17 version="1.0"> |
|
18 <documentation> |
|
19 <information>%information</information> |
|
20 </documentation> |
|
21 <symbian sdkName="com.nokia.series60" minSDKVersion="2.0" |
|
22 className="CAknContextPane" classHelpTopic="" |
|
23 resourceType="CONTEXT_PANE" resourceHelpTopic="" |
|
24 /> |
|
25 <attributes> |
|
26 <attribute key="model-type-disposition">view</attribute> |
|
27 <attribute key="rss-control-type-enum">EAknCtContextPane</attribute> |
|
28 <attribute key="status-pane-id">EEikStatusPaneUidContext</attribute> |
|
29 </attributes> |
|
30 <designerImages smallIconFile="StatusPaneContext_sm.png" |
|
31 largeIconFile="StatusPaneContext.png"/> |
|
32 <properties> |
|
33 <compoundProperty category="Appearance" name="image" |
|
34 type="com.nokia.sdt.symbian.imageProperty" |
|
35 descriptionKey="imageDescription" /> |
|
36 </properties> |
|
37 <implementations> |
|
38 <implementation> |
|
39 <interface id="com.nokia.sdt.datamodel.adapter.IVisualAppearance"/> |
|
40 <interface id="com.nokia.sdt.datamodel.adapter.IDirectImageEdit"/> |
|
41 <interface id="com.nokia.sdt.datamodel.adapter.IImagePropertyRenderingInfo"/> |
|
42 <script file="StatusPaneContext_visual.js" prototype="StatusPaneContextVisual"/> |
|
43 </implementation> |
|
44 </implementations> |
|
45 <sourceMapping> |
|
46 <mapResource struct="CONTEXT_PANE" headers="avkon.rh" standalone="true"> |
|
47 <mapSimpleMember property="image.bmpfile" member="bmpfile"/> |
|
48 <mapIdentifierMember property="image.bmpid" member="bmpid"/> |
|
49 <mapIdentifierMember property="image.bmpmask" member="bmpmask"/> |
|
50 </mapResource> |
|
51 </sourceMapping> |
|
52 <sourceGen> |
|
53 <template phase="SetupStatusPane"><![CDATA[ |
|
54 // setup the context pane |
|
55 TUid contextPaneUid = TUid::Uid( EEikStatusPaneUidContext ); |
|
56 CEikStatusPaneBase::TPaneCapabilities subPaneContext = |
|
57 StatusPane()->PaneCapabilities( contextPaneUid ); |
|
58 if ( subPaneContext.IsPresent() && subPaneContext.IsAppOwned() ) |
|
59 { |
|
60 CAknContextPane* ${instanceName} = static_cast< CAknContextPane* > ( |
|
61 StatusPane()->ControlL( contextPaneUid ) ); |
|
62 TResourceReader reader; |
|
63 iCoeEnv->CreateResourceReaderLC( reader, ${resourceName$upper} ); |
|
64 ${instanceName}->SetFromResourceL( reader ); |
|
65 CleanupStack::PopAndDestroy(); // reader internal state |
|
66 } |
|
67 ]]> |
|
68 </template> |
|
69 |
|
70 <template phase="MainSystemIncludes"><![CDATA[ |
|
71 #include <akncontext.h> |
|
72 ]]> </template> |
|
73 <template phase="MainSystemIncludes"><![CDATA[ |
|
74 #include <barsread.h> |
|
75 ]]> </template> |
|
76 |
|
77 </sourceGen> |
|
78 </component> |
|
79 </componentDefinition> |