|
1 <?xml version="1.0" encoding="UTF-8"?> |
|
2 <componentDefinition xmlns="http://www.nokia.com/sdt/emf/component" |
|
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
|
4 <!-- Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). --> |
|
5 <!-- All rights reserved. --> |
|
6 <!-- This component and the accompanying materials are made available --> |
|
7 <!-- under the terms of the License "Eclipse Public License v1.0" --> |
|
8 <!-- which accompanies this distribution, and is available --> |
|
9 <!-- at the URL "http://www.eclipse.org/legal/epl-v10.html". --> |
|
10 |
|
11 <component friendlyName="%friendlyName" |
|
12 qualifiedName="com.nokia.sdt.test.testStatusPaneContext" |
|
13 baseComponent="com.nokia.sdt.test.testControlBase" |
|
14 category="System" |
|
15 instanceNameRoot="context" |
|
16 version="0.1"> |
|
17 <documentation> |
|
18 <information>%information</information> |
|
19 </documentation> |
|
20 <attributes> |
|
21 <attribute key="is-status-pane-content">true</attribute> |
|
22 <attribute key="is-system-component">true</attribute> |
|
23 <attribute key="is-non-resizable-or-moveable-layout-object">true</attribute> |
|
24 <attribute key="never-add-component">true</attribute> |
|
25 <attribute key="rss-control-type-enum">EAknCtContextPane</attribute> |
|
26 <attribute key="status-pane-id">EEikStatusPaneUidContext</attribute> |
|
27 </attributes> |
|
28 <properties> |
|
29 <compoundProperty name="image" displayName="%imageText" |
|
30 type="com.nokia.sdt.symbian.test.imageProperty" |
|
31 editorClass="com.nokia.sdt.symbian.ui.editors.ImageEditorFactory" /> |
|
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 <script file="StatusPaneContext_visual.js" prototype="StatusPaneContextVisual"/> |
|
38 </implementation> |
|
39 </implementations> |
|
40 <sourceMapping> |
|
41 <mapResource struct="CONTEXT_PANE" headers="avkon.rh" standalone="true"> |
|
42 <mapSimpleMember property="image.bmpfile" member="bmpfile"/> |
|
43 <mapIdentifierMember property="image.bmpid" member="bmpid"/> |
|
44 <mapIdentifierMember property="image.bmpmask" member="bmpmask"/> |
|
45 </mapResource> |
|
46 </sourceMapping> |
|
47 <sourceGen> |
|
48 <template phase="SetupStatusPane"><![CDATA[ |
|
49 // setup the context pane |
|
50 TUid contextPaneUid = TUid::Uid( EEikStatusPaneUidContext ); |
|
51 CEikStatusPaneBase::TPaneCapabilities subPaneContext = |
|
52 statusPane->PaneCapabilities( contextPaneUid ); |
|
53 if ( subPaneContext.IsPresent() && subPaneContext.IsAppOwned() ) |
|
54 { |
|
55 CAknContextPane* ${instanceName} = static_cast< CAknContextPane* >( statusPane->ControlL( contextPaneUid ) ); |
|
56 TResourceReader reader; |
|
57 iCoeEnv->CreateResourceReaderLC( reader, ${resourceName$upper} ); |
|
58 ${instanceName}->ConstructFromResourceL( reader ); |
|
59 CleanupStack::PopAndDestroy(); |
|
60 } |
|
61 ]]> |
|
62 </template> |
|
63 |
|
64 <template phase="MainSystemIncludes"><![CDATA[ |
|
65 #include <akncontext.h> |
|
66 ]]> </template> |
|
67 <template phase="MainSystemIncludes"><![CDATA[ |
|
68 #include <barsread.h> |
|
69 ]]> </template> |
|
70 |
|
71 </sourceGen> |
|
72 </component> |
|
73 </componentDefinition> |