uidesigner/com.nokia.sdt.symbian.tests/data/images/components/testStatusPaneContext.component
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/uidesigner/com.nokia.sdt.symbian.tests/data/images/components/testStatusPaneContext.component Tue Mar 24 22:20:21 2009 -0500
@@ -0,0 +1,73 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<componentDefinition xmlns="http://www.nokia.com/sdt/emf/component"
+xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+<!-- Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -->
+<!-- All rights reserved. -->
+<!-- This component and the accompanying materials are made available -->
+<!-- under the terms of the License "Eclipse Public License v1.0" -->
+<!-- which accompanies this distribution, and is available -->
+<!-- at the URL "http://www.eclipse.org/legal/epl-v10.html". -->
+
+ <component friendlyName="%friendlyName"
+ qualifiedName="com.nokia.sdt.test.testStatusPaneContext"
+ baseComponent="com.nokia.sdt.test.testControlBase"
+ category="System"
+ instanceNameRoot="context"
+ version="0.1">
+ <documentation>
+ <information>%information</information>
+ </documentation>
+ <attributes>
+ <attribute key="is-status-pane-content">true</attribute>
+ <attribute key="is-system-component">true</attribute>
+ <attribute key="is-non-resizable-or-moveable-layout-object">true</attribute>
+ <attribute key="never-add-component">true</attribute>
+ <attribute key="rss-control-type-enum">EAknCtContextPane</attribute>
+ <attribute key="status-pane-id">EEikStatusPaneUidContext</attribute>
+ </attributes>
+ <properties>
+ <compoundProperty name="image" displayName="%imageText"
+ type="com.nokia.sdt.symbian.test.imageProperty"
+ editorClass="com.nokia.sdt.symbian.ui.editors.ImageEditorFactory" />
+ </properties>
+ <implementations>
+ <implementation>
+ <interface id="com.nokia.sdt.datamodel.adapter.IVisualAppearance"/>
+ <interface id="com.nokia.sdt.datamodel.adapter.IDirectImageEdit"/>
+ <script file="StatusPaneContext_visual.js" prototype="StatusPaneContextVisual"/>
+ </implementation>
+ </implementations>
+ <sourceMapping>
+ <mapResource struct="CONTEXT_PANE" headers="avkon.rh" standalone="true">
+ <mapSimpleMember property="image.bmpfile" member="bmpfile"/>
+ <mapIdentifierMember property="image.bmpid" member="bmpid"/>
+ <mapIdentifierMember property="image.bmpmask" member="bmpmask"/>
+ </mapResource>
+ </sourceMapping>
+ <sourceGen>
+ <template phase="SetupStatusPane"><![CDATA[
+// setup the context pane
+TUid contextPaneUid = TUid::Uid( EEikStatusPaneUidContext );
+CEikStatusPaneBase::TPaneCapabilities subPaneContext =
+ statusPane->PaneCapabilities( contextPaneUid );
+if ( subPaneContext.IsPresent() && subPaneContext.IsAppOwned() )
+ {
+ CAknContextPane* ${instanceName} = static_cast< CAknContextPane* >( statusPane->ControlL( contextPaneUid ) );
+ TResourceReader reader;
+ iCoeEnv->CreateResourceReaderLC( reader, ${resourceName$upper} );
+ ${instanceName}->ConstructFromResourceL( reader );
+ CleanupStack::PopAndDestroy();
+ }
+]]>
+ </template>
+
+ <template phase="MainSystemIncludes"><![CDATA[
+#include <akncontext.h>
+]]> </template>
+ <template phase="MainSystemIncludes"><![CDATA[
+#include <barsread.h>
+]]> </template>
+
+ </sourceGen>
+ </component>
+</componentDefinition>