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