uidesigner/com.nokia.sdt.series60.componentlibrary/components/menu/SystemMenuItem.component
author dan.podwall@nokia.com
Mon, 06 Apr 2009 14:00:50 -0500
changeset 50 9107fae37cee
parent 2 d760517a8095
permissions -rw-r--r--
merge on RCL_2_0
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 baseComponent="com.nokia.sdt.series60.MenuItemBase" 
cawthron
parents:
diff changeset
    13
		friendlyName="%friendlyName" 
cawthron
parents:
diff changeset
    14
		qualifiedName="com.nokia.sdt.series60.SystemMenuItem" 
cawthron
parents:
diff changeset
    15
		category="Menu"
cawthron
parents:
diff changeset
    16
		instanceNameRoot="menuItem"
cawthron
parents:
diff changeset
    17
		version="1.0">
cawthron
parents:
diff changeset
    18
		
cawthron
parents:
diff changeset
    19
		<symbian sdkName="com.nokia.series60" minSDKVersion="2.0" 
cawthron
parents:
diff changeset
    20
			className="CEikMenuPaneItem" classHelpTopic=""
cawthron
parents:
diff changeset
    21
			resourceType="MENU_ITEM" resourceHelpTopic="" />
cawthron
parents:
diff changeset
    22
			
cawthron
parents:
diff changeset
    23
		<designerImages smallIconFile="SystemMenuItem_sm.png" 
cawthron
parents:
diff changeset
    24
			largeIconFile="SystemMenuItem.png"/>
cawthron
parents:
diff changeset
    25
cawthron
parents:
diff changeset
    26
		<attributes>
cawthron
parents:
diff changeset
    27
			<attribute key="not-in-toolbox">true</attribute>
cawthron
parents:
diff changeset
    28
		</attributes>
cawthron
parents:
diff changeset
    29
		
cawthron
parents:
diff changeset
    30
		<properties>
cawthron
parents:
diff changeset
    31
			<!-- placeholder text; never generated, thus not localizable -->
cawthron
parents:
diff changeset
    32
			<property category="Appearance" name="text" type="string" readOnly="true"
cawthron
parents:
diff changeset
    33
				descriptionKey="textDescription" />
cawthron
parents:
diff changeset
    34
		</properties>
cawthron
parents:
diff changeset
    35
		
cawthron
parents:
diff changeset
    36
		<propertyOverrides>
cawthron
parents:
diff changeset
    37
			<propertyOverride name="name" readOnly="true" />
cawthron
parents:
diff changeset
    38
			<propertyOverride name="command" readOnly="true" />
cawthron
parents:
diff changeset
    39
		</propertyOverrides>
cawthron
parents:
diff changeset
    40
cawthron
parents:
diff changeset
    41
		<implementations>
cawthron
parents:
diff changeset
    42
			<implementation>
cawthron
parents:
diff changeset
    43
				<interface id="com.nokia.sdt.datamodel.adapter.IQueryContainment" />
cawthron
parents:
diff changeset
    44
				<script file="SystemMenuItem.js" prototype="SystemMenuItem" />
cawthron
parents:
diff changeset
    45
			</implementation>
cawthron
parents:
diff changeset
    46
		</implementations>
cawthron
parents:
diff changeset
    47
cawthron
parents:
diff changeset
    48
	<sourceMapping>
cawthron
parents:
diff changeset
    49
		<!-- none: this is built-in to a parent SystemMenuPane -->
cawthron
parents:
diff changeset
    50
	</sourceMapping>
cawthron
parents:
diff changeset
    51
cawthron
parents:
diff changeset
    52
	<sourceGen forms="RootAppUi AknView Container HandleCommandSwitchDispatch">
cawthron
parents:
diff changeset
    53
		
cawthron
parents:
diff changeset
    54
		<useTemplateGroup ids="HandleSelectedEvent" />
cawthron
parents:
diff changeset
    55
	
cawthron
parents:
diff changeset
    56
		<inline>
cawthron
parents:
diff changeset
    57
			if (Engine.formMatches(form, [""])) {
cawthron
parents:
diff changeset
    58
				// gather child contributions
cawthron
parents:
diff changeset
    59
				contribs.addAll(Engine.generateChildContributions(form))
cawthron
parents:
diff changeset
    60
			}
cawthron
parents:
diff changeset
    61
		</inline>
cawthron
parents:
diff changeset
    62
		
cawthron
parents:
diff changeset
    63
	</sourceGen>
cawthron
parents:
diff changeset
    64
		
cawthron
parents:
diff changeset
    65
	</component>
cawthron
parents:
diff changeset
    66
</componentDefinition>