uidesigner/com.nokia.sdt.series60.componentlibrary/components/menu/MenuItem.component
changeset 0 fb279309251b
equal deleted inserted replaced
-1:000000000000 0:fb279309251b
       
     1 <?xml version="1.0" encoding="UTF-8"?>
       
     2 <!-- Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). -->
       
     3 <!-- All rights reserved. -->
       
     4 <!-- This component and the accompanying materials are made available -->
       
     5 <!-- under the terms of the License "Eclipse Public License v1.0" -->
       
     6 <!-- which accompanies this distribution, and is available -->
       
     7 <!-- at the URL "http://www.eclipse.org/legal/epl-v10.html". -->
       
     8 
       
     9 <componentDefinition xmlns="http://www.nokia.com/sdt/emf/component" 
       
    10 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
       
    11 
       
    12 	<component baseComponent="com.nokia.sdt.series60.MenuItemBase" 
       
    13 		friendlyName="%friendlyName" 
       
    14 		qualifiedName="com.nokia.sdt.series60.MenuItem" 
       
    15 		category="Menu"
       
    16 		instanceNameRoot="menuItem"
       
    17 		version="1.0">
       
    18 		
       
    19 		<documentation>
       
    20 			<information>%information</information>
       
    21 		</documentation>
       
    22 		
       
    23 		<symbian sdkName="com.nokia.series60" minSDKVersion="2.0" 
       
    24 			className="CEikMenuPaneItem" classHelpTopic=""
       
    25 			resourceType="MENU_ITEM" resourceHelpTopic="" />
       
    26 			
       
    27 		<designerImages smallIconFile="MenuItem_sm.png" largeIconFile="MenuItem.png"/>
       
    28 
       
    29 		<attributes>
       
    30 			<attribute key="layout-type">absolute</attribute>
       
    31 			<attribute key="never-add-component">true</attribute>
       
    32 		</attributes>
       
    33 
       
    34 		<properties>
       
    35 			<property category="Appearance" name="text" type="localizedString"
       
    36 				descriptionKey="textDescription" />
       
    37 		</properties>
       
    38 		
       
    39 		<implementations>
       
    40 			<implementation>
       
    41 				<interface id="com.nokia.sdt.datamodel.adapter.ISetValueCommandExtender"/>
       
    42 				<code class="com.nokia.sdt.series60.component.menu.MenuItemImplFactory"/>
       
    43 			</implementation>
       
    44 		</implementations>
       
    45 		
       
    46 	<sourceGen forms="RootAppUi AknView Container HandleCommandSwitchDispatch">
       
    47 
       
    48 		<useTemplateGroup ids="HandleSelectedEvent" />
       
    49 	
       
    50 		<inline>
       
    51 			if (Engine.formMatches(form, ["", "HandleCommandSwitchDispatch"])) {
       
    52 				// gather child contributions
       
    53 				contribs.addAll(Engine.generateChildContributions(form))
       
    54 			}
       
    55 		</inline>
       
    56 		
       
    57 	</sourceGen>
       
    58 		
       
    59 	</component>
       
    60 </componentDefinition>