uidesigner/com.nokia.sdt.series60.componentlibrary/components/statuspane/StatusPaneContext.component
author timkelly
Thu, 23 Apr 2009 08:52:08 -0500
branchRCL_2_0
changeset 117 bac3606e1ea9
parent 2 d760517a8095
permissions -rw-r--r--
fix bug 8914. endless sdk refresh when devices.xml is empty or has xml format error
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
cawthron
parents:
diff changeset
     1
<?xml version="1.0" encoding="UTF-8"?>
cawthron
parents:
diff changeset
     2
<!-- Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). -->
cawthron
parents:
diff changeset
     3
<!-- All rights reserved. -->
cawthron
parents:
diff changeset
     4
<!-- This component and the accompanying materials are made available -->
cawthron
parents:
diff changeset
     5
<!-- under the terms of the License "Eclipse Public License v1.0" -->
cawthron
parents:
diff changeset
     6
<!-- which accompanies this distribution, and is available -->
cawthron
parents:
diff changeset
     7
<!-- at the URL "http://www.eclipse.org/legal/epl-v10.html". -->
cawthron
parents:
diff changeset
     8
cawthron
parents:
diff changeset
     9
<componentDefinition xmlns="http://www.nokia.com/sdt/emf/component" 
cawthron
parents:
diff changeset
    10
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
cawthron
parents:
diff changeset
    11
cawthron
parents:
diff changeset
    12
	<component friendlyName="%friendlyName" 
cawthron
parents:
diff changeset
    13
		qualifiedName="com.nokia.sdt.series60.StatusPaneContext" 
cawthron
parents:
diff changeset
    14
		baseComponent="com.nokia.sdt.series60.StatusPaneContextBase"
cawthron
parents:
diff changeset
    15
		category="System"
cawthron
parents:
diff changeset
    16
		instanceNameRoot="context"
cawthron
parents:
diff changeset
    17
		version="1.0">
cawthron
parents:
diff changeset
    18
		<documentation>
cawthron
parents:
diff changeset
    19
			<information>%information</information>
cawthron
parents:
diff changeset
    20
		</documentation>
cawthron
parents:
diff changeset
    21
		<symbian sdkName="com.nokia.series60" minSDKVersion="2.0"
cawthron
parents:
diff changeset
    22
			className="CAknContextPane" classHelpTopic=""
cawthron
parents:
diff changeset
    23
			resourceType="CONTEXT_PANE" resourceHelpTopic="" 
cawthron
parents:
diff changeset
    24
		/>
cawthron
parents:
diff changeset
    25
		<attributes>
cawthron
parents:
diff changeset
    26
			<attribute key="model-type-disposition">view</attribute>
cawthron
parents:
diff changeset
    27
			<attribute key="rss-control-type-enum">EAknCtContextPane</attribute>
cawthron
parents:
diff changeset
    28
			<attribute key="status-pane-id">EEikStatusPaneUidContext</attribute>
cawthron
parents:
diff changeset
    29
		</attributes>
cawthron
parents:
diff changeset
    30
		<designerImages smallIconFile="StatusPaneContext_sm.png" 
cawthron
parents:
diff changeset
    31
			largeIconFile="StatusPaneContext.png"/>
cawthron
parents:
diff changeset
    32
		<properties>
cawthron
parents:
diff changeset
    33
			<compoundProperty category="Appearance" name="image"
cawthron
parents:
diff changeset
    34
				type="com.nokia.sdt.symbian.imageProperty"
cawthron
parents:
diff changeset
    35
				descriptionKey="imageDescription" />
cawthron
parents:
diff changeset
    36
		</properties>
cawthron
parents:
diff changeset
    37
		<implementations>
cawthron
parents:
diff changeset
    38
			<implementation>
cawthron
parents:
diff changeset
    39
				<interface id="com.nokia.sdt.datamodel.adapter.IVisualAppearance"/>
cawthron
parents:
diff changeset
    40
				<interface id="com.nokia.sdt.datamodel.adapter.IDirectImageEdit"/>
cawthron
parents:
diff changeset
    41
				<interface id="com.nokia.sdt.datamodel.adapter.IImagePropertyRenderingInfo"/>
cawthron
parents:
diff changeset
    42
				<script file="StatusPaneContext_visual.js" prototype="StatusPaneContextVisual"/>
cawthron
parents:
diff changeset
    43
			</implementation>
cawthron
parents:
diff changeset
    44
		</implementations>
cawthron
parents:
diff changeset
    45
		<sourceMapping>
cawthron
parents:
diff changeset
    46
			<mapResource struct="CONTEXT_PANE" headers="avkon.rh" standalone="true">
cawthron
parents:
diff changeset
    47
				<mapSimpleMember property="image.bmpfile" member="bmpfile"/>
cawthron
parents:
diff changeset
    48
				<mapIdentifierMember property="image.bmpid" member="bmpid"/>
cawthron
parents:
diff changeset
    49
				<mapIdentifierMember property="image.bmpmask" member="bmpmask"/>
cawthron
parents:
diff changeset
    50
			</mapResource>
cawthron
parents:
diff changeset
    51
		</sourceMapping>
cawthron
parents:
diff changeset
    52
		<sourceGen>
cawthron
parents:
diff changeset
    53
			<template phase="SetupStatusPane"><![CDATA[
cawthron
parents:
diff changeset
    54
// setup the context pane
cawthron
parents:
diff changeset
    55
TUid contextPaneUid = TUid::Uid( EEikStatusPaneUidContext );
cawthron
parents:
diff changeset
    56
CEikStatusPaneBase::TPaneCapabilities subPaneContext = 
cawthron
parents:
diff changeset
    57
		StatusPane()->PaneCapabilities( contextPaneUid );
cawthron
parents:
diff changeset
    58
if ( subPaneContext.IsPresent() && subPaneContext.IsAppOwned() )
cawthron
parents:
diff changeset
    59
	{
cawthron
parents:
diff changeset
    60
	CAknContextPane* ${instanceName} = static_cast< CAknContextPane* > ( 
cawthron
parents:
diff changeset
    61
		StatusPane()->ControlL( contextPaneUid ) );
cawthron
parents:
diff changeset
    62
	TResourceReader reader;
cawthron
parents:
diff changeset
    63
	iCoeEnv->CreateResourceReaderLC( reader, ${resourceName$upper} );
cawthron
parents:
diff changeset
    64
	${instanceName}->SetFromResourceL( reader );
cawthron
parents:
diff changeset
    65
	CleanupStack::PopAndDestroy(); // reader internal state
cawthron
parents:
diff changeset
    66
	}
cawthron
parents:
diff changeset
    67
]]>			
cawthron
parents:
diff changeset
    68
			</template>
cawthron
parents:
diff changeset
    69
cawthron
parents:
diff changeset
    70
			<template phase="MainSystemIncludes"><![CDATA[
cawthron
parents:
diff changeset
    71
#include <akncontext.h>
cawthron
parents:
diff changeset
    72
]]>			</template>
cawthron
parents:
diff changeset
    73
			<template phase="MainSystemIncludes"><![CDATA[
cawthron
parents:
diff changeset
    74
#include <barsread.h>
cawthron
parents:
diff changeset
    75
]]>			</template>
cawthron
parents:
diff changeset
    76
			
cawthron
parents:
diff changeset
    77
		</sourceGen>
cawthron
parents:
diff changeset
    78
	</component>
cawthron
parents:
diff changeset
    79
</componentDefinition>