uidesigner/com.nokia.sdt.series60.componentlibrary/components/menu/MenuItem.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 baseComponent="com.nokia.sdt.series60.MenuItemBase" 
cawthron
parents:
diff changeset
    13
		friendlyName="%friendlyName" 
cawthron
parents:
diff changeset
    14
		qualifiedName="com.nokia.sdt.series60.MenuItem" 
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
		<documentation>
cawthron
parents:
diff changeset
    20
			<information>%information</information>
cawthron
parents:
diff changeset
    21
		</documentation>
cawthron
parents:
diff changeset
    22
		
cawthron
parents:
diff changeset
    23
		<symbian sdkName="com.nokia.series60" minSDKVersion="2.0" 
cawthron
parents:
diff changeset
    24
			className="CEikMenuPaneItem" classHelpTopic=""
cawthron
parents:
diff changeset
    25
			resourceType="MENU_ITEM" resourceHelpTopic="" />
cawthron
parents:
diff changeset
    26
			
cawthron
parents:
diff changeset
    27
		<designerImages smallIconFile="MenuItem_sm.png" largeIconFile="MenuItem.png"/>
cawthron
parents:
diff changeset
    28
cawthron
parents:
diff changeset
    29
		<attributes>
cawthron
parents:
diff changeset
    30
			<attribute key="layout-type">absolute</attribute>
cawthron
parents:
diff changeset
    31
			<attribute key="never-add-component">true</attribute>
cawthron
parents:
diff changeset
    32
		</attributes>
cawthron
parents:
diff changeset
    33
cawthron
parents:
diff changeset
    34
		<properties>
cawthron
parents:
diff changeset
    35
			<property category="Appearance" name="text" type="localizedString"
cawthron
parents:
diff changeset
    36
				descriptionKey="textDescription" />
cawthron
parents:
diff changeset
    37
		</properties>
cawthron
parents:
diff changeset
    38
		
cawthron
parents:
diff changeset
    39
		<implementations>
cawthron
parents:
diff changeset
    40
			<implementation>
cawthron
parents:
diff changeset
    41
				<interface id="com.nokia.sdt.datamodel.adapter.ISetValueCommandExtender"/>
cawthron
parents:
diff changeset
    42
				<code class="com.nokia.sdt.series60.component.menu.MenuItemImplFactory"/>
cawthron
parents:
diff changeset
    43
			</implementation>
cawthron
parents:
diff changeset
    44
		</implementations>
cawthron
parents:
diff changeset
    45
		
cawthron
parents:
diff changeset
    46
	<sourceGen forms="RootAppUi AknView Container HandleCommandSwitchDispatch">
cawthron
parents:
diff changeset
    47
cawthron
parents:
diff changeset
    48
		<useTemplateGroup ids="HandleSelectedEvent" />
cawthron
parents:
diff changeset
    49
	
cawthron
parents:
diff changeset
    50
		<inline>
cawthron
parents:
diff changeset
    51
			if (Engine.formMatches(form, ["", "HandleCommandSwitchDispatch"])) {
cawthron
parents:
diff changeset
    52
				// gather child contributions
cawthron
parents:
diff changeset
    53
				contribs.addAll(Engine.generateChildContributions(form))
cawthron
parents:
diff changeset
    54
			}
cawthron
parents:
diff changeset
    55
		</inline>
cawthron
parents:
diff changeset
    56
		
cawthron
parents:
diff changeset
    57
	</sourceGen>
cawthron
parents:
diff changeset
    58
		
cawthron
parents:
diff changeset
    59
	</component>
cawthron
parents:
diff changeset
    60
</componentDefinition>