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