uidesigner/com.nokia.carbide.cpp.uiq.components/components/controls/ControlBase/ControlCollectionItemBase.component
changeset 0 fb279309251b
equal deleted inserted replaced
-1:000000000000 0:fb279309251b
       
     1 <?xml version="1.0" encoding="UTF-8"?>
       
     2 <!-- START_USECASES: CU10 END_USECASES -->
       
     3 <!-- Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). -->
       
     4 <!-- All rights reserved. -->
       
     5 <!-- This component and the accompanying materials are made available -->
       
     6 <!-- under the terms of the License "Eclipse Public License v1.0" -->
       
     7 <!-- which accompanies this distribution, and is available -->
       
     8 <!-- at the URL "http://www.eclipse.org/legal/epl-v10.html". -->
       
     9 <componentDefinition xmlns="http://www.nokia.com/sdt/emf/component"
       
    10 					xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
       
    11 					
       
    12 	<!-- This component is the abstract base component for
       
    13 	     all UIQ control collection item components
       
    14 	 -->					
       
    15 	<component 
       
    16 			baseComponent="com.nokia.carbide.uiq.CommonBase"
       
    17 			qualifiedName="com.nokia.carbide.uiq.ControlCollectionItemBase"
       
    18 			version="1.0"
       
    19 			abstract="true">
       
    20 									
       
    21 		<symbian sdkName="com.uiq" minSDKVersion="3.0"/>
       
    22 		
       
    23 		<attributes>
       
    24 	    	<attribute key="not-in-toolbox">false</attribute>
       
    25 			<attribute key ="is-qikcontainer-content">true</attribute>
       
    26 			<attribute key ="is-slot-content">true</attribute>
       
    27 		</attributes>
       
    28 		
       
    29 		<properties>
       
    30 			<property name="dimmed"
       
    31 				displayName="%dimmed"
       
    32 				descriptionKey="dimmedDescription"
       
    33 				category="%category.appearance"
       
    34 				type="boolean"
       
    35 				default="false"/>
       
    36 			<property name="isVisible"
       
    37 				displayName="%visible"
       
    38 				descriptionKey="visible.description"
       
    39 				category="%category.appearance"
       
    40 				type="boolean"
       
    41 				default="true"/>
       
    42 		</properties>
       
    43 		
       
    44 		<implementations>
       
    45 			<implementation>
       
    46 				<interface id="com.nokia.sdt.datamodel.adapter.IComponentEventInfo"/>
       
    47 				<script file="ControlCollectionItemBase.js" prototype="ControlCollectionItemBaseEventInfo"/>
       
    48 			</implementation>
       
    49 			<implementation>
       
    50 				<interface id="com.nokia.sdt.datamodel.adapter.IPropertyExtenders"/>
       
    51 				<script file="ControlCollectionItemBase_propertyExtenders.js" prototype="ControlCollectionItemBasePropertyExtenders"/>
       
    52 			</implementation>
       
    53 			<implementation>
       
    54 				<interface id="com.nokia.sdt.datamodel.adapter.IClipboardCommandExtender"/>
       
    55 				<code class="com.nokia.carbide.cpp.uiq.components.controlCollection.ClipboardCommandExtenderFactory"/>
       
    56 			</implementation> 			
       
    57 		</implementations>
       
    58 
       
    59 		<sourceGen>
       
    60 
       
    61 			<templateGroup id="makeVisible" form="InstanceGen">
       
    62 			
       
    63 				<inline id="mv">
       
    64 					<![CDATA[
       
    65 	setPropertiesForPhase(contribs, "InitializeControlHandlers", 0, instanceMemberName, true,
       
    66 		properties.isVisible, true, "{0}->MakeVisible( {1} );\n",
       
    67 		properties.dimmed,false,"{0}->SetDimmed( {1} );\n");
       
    68 					]]>			
       
    69 				</inline>
       
    70 				
       
    71 			</templateGroup>
       
    72 		</sourceGen>
       
    73 
       
    74 	</component>
       
    75 
       
    76 </componentDefinition>