<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). -->
<!-- All rights reserved. -->
<!-- This component and the accompanying materials are made available -->
<!-- under the terms of the License "Eclipse Public License v1.0" -->
<!-- which accompanies this distribution, and is available -->
<!-- at the URL "http://www.eclipse.org/legal/epl-v10.html". -->
<!-- START_USECASES: CU10 END_USECASES -->
<componentDefinition xmlns="http://www.nokia.com/sdt/emf/component"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	
	<compoundPropertyDeclaration qualifiedName="com.nokia.carbide.uiq.GridLayoutManager.LayoutData">
		<!-- default=EQikLayoutHAlignInherit -->
		<enumProperty name="horizontalAlignment"
			displayName="%horizontalalignment"
			category="%category.layout"
			descriptionKey="horizontalalignment.description"
			type="com.nokia.carbide.uiq.LayoutManager.TQikLayoutHorizontalAlignment"
			default="EQikLayoutHAlignInherit"/>
		<!-- default=EQikLayoutVAlignInherit -->
		<enumProperty name="verticalAlignment"
			displayName="%verticalalignment"
			category="%category.layout"
			descriptionKey="verticalalignment.description"
			type="com.nokia.carbide.uiq.LayoutManager.TQikLayoutVerticalAlignment"
			default="EQikLayoutVAlignInherit"/>
		<enumProperty name="layoutWhenInvisible"
			displayName="%layoutwheninvisible"
			category="%category.layout"
			descriptionKey="layoutwheninvisible.description"
			type="com.nokia.carbide.uiq.LayoutManager.TQikLayoutBoolSetting"
			default="EQikLayoutInheritBoolValue"/>
		<!-- default=EQikLayoutInheritMinimum -->
		<property name="minimumWidth"
			displayName="%minimumwidth"
			category="%category.layout"
			descriptionKey="minimumwidth.description"
			type="integer"
			default="-2"
			extendWithEnum="com.nokia.carbide.uiq.LayoutManager.TQikLayoutLogicalSizes"/>
		<!-- default=EQikLayoutInheritMinimum -->
		<property name="minimumHeight"
			displayName="%minimumheight"
			category="%category.layout"
			descriptionKey="minimumheight.description"
			type="integer"
			default="-2"
			extendWithEnum="com.nokia.carbide.uiq.LayoutManager.TQikLayoutLogicalSizes"/>
		<!-- default=EQikLayoutInheritMargin -->
		<property name="leftMargin"
			displayName="%leftmargin"
			category="%category.layout"
			descriptionKey="leftmargin.description"
			type="integer"
			default="-1"
			extendWithEnum="com.nokia.carbide.uiq.LayoutManager.TQikLayoutLogicalMargins"/>
		<!-- default=EQikLayoutInheritMargin -->
		<property name="rightMargin"
			displayName="%rightmargin"
			category="%category.layout"
			descriptionKey="rightmargin.description"
			type="integer"
			default="-1"
			extendWithEnum="com.nokia.carbide.uiq.LayoutManager.TQikLayoutLogicalMargins"/>
		<!-- default=EQikLayoutInheritMargin -->
		<property name="topMargin"
			displayName="%topmargin"
			category="%category.layout"
			descriptionKey="topmargin.description"
			type="integer"
			default="-1"
			extendWithEnum="com.nokia.carbide.uiq.LayoutManager.TQikLayoutLogicalMargins"/>
		<!-- default=EQikLayoutInheritMargin -->
		<property name="bottomMargin"
			displayName="%bottommargin"
			category="%category.layout"
			descriptionKey="bottommargin.description"
			type="integer"
			default="-1"
			extendWithEnum="com.nokia.carbide.uiq.LayoutManager.TQikLayoutLogicalMargins"/>
		<!-- default=EQikLayoutInheritExcessGrabWeight -->
		<property name="verticalExcessGrabWeight"
			displayName="%verticalexcessgrabweight"
			category="%category.layout"
			descriptionKey="verticalexcessgrabweight.description"
			type="integer"
			default="-1"
			extendWithEnum="com.nokia.carbide.uiq.LayoutManager.Grab"/>
		<sourceTypeMapping>
			<mapResourceType struct="QIK_GRID_LAYOUT_DATA" headers="Qikon.rh">
				<mapEnumMember property="horizontalAlignment" member="horizontal_alignment"/>
				<mapEnumMember property="verticalAlignment" member="vertical_alignment"/>
				<mapEnumMember property="layoutWhenInvisible" member="layout_when_invisible"/>
				<mapSimpleMember property="minimumWidth" member="minimum_width"/>
				<mapSimpleMember property="minimumHeight" member="minimum_height"/>
				<mapSimpleMember property="leftMargin" member="left_margin"/>
				<mapSimpleMember property="rightMargin" member="right_margin"/>
				<mapSimpleMember property="topMargin" member="top_margin"/>
				<mapSimpleMember property="bottomMargin" member="bottom_margin"/>
				<mapSimpleMember property="verticalExcessGrabWeight" member="vertical_excess_grab_weight"/>
			</mapResourceType>
		</sourceTypeMapping>
	</compoundPropertyDeclaration>
	
	<!--TODO: This component is not supported in this release-->
	<!--<component qualifiedName="com.nokia.carbide.uiq.GridLayoutManager"
		baseComponent="com.nokia.carbide.uiq.LayoutManager"
		friendlyName="%friendlyname"
		instanceNameRoot="gridLayoutManager"
		category="%layout.category"
		version="1.0">
		
		<documentation>
			<wizardDescription>%wizardDescription</wizardDescription>
		</documentation>
		
		<symbian sdkName="com.uiq"
			minSDKVersion="3.0"
			resourceType="QIK_GRID_LAYOUT_MANAGER"/>
			
		<attributes>
			<attribute key="layout-manager-enum">EQikGridLayoutManager</attribute>
		</attributes>
		
		<properties>
			<enumProperty name="mirrored"
				displayName="%mirrored"
				category="%category.layout"
				descriptionKey="mirrored.description"
				type="com.nokia.carbide.uiq.LayoutManager.TQikLayoutMirroringSetting"
				default="EQikLayoutAutoMirror"/>
			<property name="normalizeGridHeights"
				displayName="%normalizegridheights"
				category="%category.layout"
				descriptionKey="normalizegridheights.description"
				type="boolean"/>
			<compoundProperty name="defaultLayoutData"
				displayName="%defaultlayoutdata"
				category="%category.layout"
				descriptionKey="defaultlayoutdata.description"
				type="com.nokia.carbide.uiq.GridLayoutManager.LayoutData"/>
		</properties>
		
		<extensionProperties name="default">
			<compoundProperty name="layoutData"
				displayName="%layoutdata"
				category="%category.layout"
				descriptionKey="layoutdata.description"
				type="com.nokia.carbide.uiq.GridLayoutManager.LayoutData"/>
		</extensionProperties>
		
		<sourceMapping>
			<mapResource struct="QIK_GRID_LAYOUT_MANAGER" headers="Qikon.rh" id="layoutManager">
				<mapEnumMember property="mirrored" member="mirrored"/>
				<mapSimpleMember property="normalizeGridHeights" member="normalize_grid_heights"/>
				<mapMemberFromType property="defaultLayoutData" member="default_layout_data"/>
			</mapResource>
		</sourceMapping>
		
	</component>-->
	
</componentDefinition>
