uidesigner/com.nokia.sdt.series60.componentlibrary/components/controls/CEikLabel.component
author Steve Sobek <steve.sobek@nokia.com>
Tue, 14 Apr 2009 18:40:50 -0500
changeset 96 dc3dca9ced31
parent 2 d760517a8095
permissions -rw-r--r--
Fix TOC XML in hopes that 2.1 will build & carefully formatted lots of lines for readability.
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
	<enumPropertyDeclaration qualifiedName="com.nokia.sdt.series60.CEikLabel.HAlignment">
cawthron
parents:
diff changeset
    12
		<enumElement value="EEikLabelAlignHLeft" displayValue="left"/>
cawthron
parents:
diff changeset
    13
		<enumElement value="EEikLabelAlignHCenter" displayValue="center"/>
cawthron
parents:
diff changeset
    14
		<enumElement value="EEikLabelAlignHRight" displayValue="right"/>
cawthron
parents:
diff changeset
    15
	</enumPropertyDeclaration>
cawthron
parents:
diff changeset
    16
cawthron
parents:
diff changeset
    17
	<enumPropertyDeclaration qualifiedName="com.nokia.sdt.series60.CEikLabel.TextEmphasis">
cawthron
parents:
diff changeset
    18
		<enumElement value="ENoEmphasis" displayValue="none"/>
cawthron
parents:
diff changeset
    19
		<enumElement value="EPartialEmphasis" displayValue="partial"/>
cawthron
parents:
diff changeset
    20
		<enumElement value="EFullEmphasis" displayValue="full"/>
cawthron
parents:
diff changeset
    21
	</enumPropertyDeclaration>
cawthron
parents:
diff changeset
    22
cawthron
parents:
diff changeset
    23
	<enumPropertyDeclaration qualifiedName="com.nokia.sdt.series60.CEikLabel.StandardFont">
cawthron
parents:
diff changeset
    24
		<enumElement value="standard.NormalFont" displayValue="normal"/>
cawthron
parents:
diff changeset
    25
		<enumElement value="standard.LegendFont" displayValue="legend"/>
cawthron
parents:
diff changeset
    26
		<enumElement value="standard.AnnotationFont" displayValue="annotation"/>
cawthron
parents:
diff changeset
    27
	</enumPropertyDeclaration>
cawthron
parents:
diff changeset
    28
	
cawthron
parents:
diff changeset
    29
	<component baseComponent="com.nokia.sdt.series60.CCoeControlBase" 
cawthron
parents:
diff changeset
    30
		friendlyName="%friendlyName" 
cawthron
parents:
diff changeset
    31
		qualifiedName="com.nokia.sdt.series60.CEikLabel" 
cawthron
parents:
diff changeset
    32
		category="Controls"
cawthron
parents:
diff changeset
    33
		instanceNameRoot="label"
cawthron
parents:
diff changeset
    34
		version="1.0">
cawthron
parents:
diff changeset
    35
		<documentation>
cawthron
parents:
diff changeset
    36
			<information>%information</information>
cawthron
parents:
diff changeset
    37
		</documentation>
cawthron
parents:
diff changeset
    38
		<symbian sdkName="com.nokia.series60" minSDKVersion="2.0" 
cawthron
parents:
diff changeset
    39
			className="CEikLabel" classHelpTopic=""
cawthron
parents:
diff changeset
    40
			resourceType="LABEL" resourceHelpTopic="" />
cawthron
parents:
diff changeset
    41
		<designerImages smallIconFile="CEikLabel_sm.png" 
cawthron
parents:
diff changeset
    42
			largeIconFile="CEikLabel.png" 
cawthron
parents:
diff changeset
    43
			layoutImageFile="static_label.png"/>
cawthron
parents:
diff changeset
    44
		<attributes>
cawthron
parents:
diff changeset
    45
			<attribute key="cpp-class-name">CEikLabel</attribute>
cawthron
parents:
diff changeset
    46
			<attribute key="is-dialog-content">true</attribute>
cawthron
parents:
diff changeset
    47
			<attribute key="is-ccoecontrol-content">true</attribute>
cawthron
parents:
diff changeset
    48
			<attribute key="is-caknpreviewpopup-content">true</attribute>
cawthron
parents:
diff changeset
    49
			<attribute key="rss-control-type-enum">EEikCtLabel</attribute>
cawthron
parents:
diff changeset
    50
		</attributes>
cawthron
parents:
diff changeset
    51
		<properties>
cawthron
parents:
diff changeset
    52
			<enumProperty category="Appearance" name="alignment" 
cawthron
parents:
diff changeset
    53
				type="com.nokia.sdt.series60.CEikLabel.HAlignment" 
cawthron
parents:
diff changeset
    54
				default="EEikLabelAlignHCenter"
cawthron
parents:
diff changeset
    55
				descriptionKey="alignmentDescription" />
cawthron
parents:
diff changeset
    56
			<enumProperty category="Appearance" name="brushStyle" 
cawthron
parents:
diff changeset
    57
				type="com.nokia.sdt.series60.CGraphicsContext.BrushStyle"
cawthron
parents:
diff changeset
    58
				descriptionKey="brushStyleDescription" />
cawthron
parents:
diff changeset
    59
			<property category="Label" name="text" type="localizedString" 
cawthron
parents:
diff changeset
    60
				default="label"
cawthron
parents:
diff changeset
    61
				descriptionKey="textDescription" 
cawthron
parents:
diff changeset
    62
				editorClass="com.nokia.sdt.symbian.ui.editors.ScalableTextEditorFactory" />
cawthron
parents:
diff changeset
    63
			<enumProperty category="Appearance" name="font" 
cawthron
parents:
diff changeset
    64
				type="com.nokia.sdt.series60.CEikLabel.StandardFont"
cawthron
parents:
diff changeset
    65
				descriptionKey="fontDescription" />
cawthron
parents:
diff changeset
    66
			<enumProperty category="Appearance" name="emphasis" 
cawthron
parents:
diff changeset
    67
				type="com.nokia.sdt.series60.CEikLabel.TextEmphasis"
cawthron
parents:
diff changeset
    68
				descriptionKey="emphasisDescription" />
cawthron
parents:
diff changeset
    69
			<property category="Appearance" name="pixelGapBetweenLines" 
cawthron
parents:
diff changeset
    70
				type="integer"
cawthron
parents:
diff changeset
    71
				descriptionKey="pixelGapBetweenLinesDescription" />
cawthron
parents:
diff changeset
    72
			<property category="Appearance" name="underline" type="boolean"
cawthron
parents:
diff changeset
    73
				descriptionKey="underlineDescription" />
cawthron
parents:
diff changeset
    74
			<property category="Appearance" name="strikethrough" type="boolean"
cawthron
parents:
diff changeset
    75
				descriptionKey="strikethroughDescription" />
cawthron
parents:
diff changeset
    76
		</properties>
cawthron
parents:
diff changeset
    77
		<implementations>
cawthron
parents:
diff changeset
    78
			<implementation>
cawthron
parents:
diff changeset
    79
				<interface id="com.nokia.sdt.datamodel.adapter.IVisualAppearance"/>
cawthron
parents:
diff changeset
    80
				<interface id="com.nokia.sdt.datamodel.adapter.IDirectLabelEdit"/>
cawthron
parents:
diff changeset
    81
				<script file="CEikLabel_visual.js" prototype="CEikLabelVisual"/>
cawthron
parents:
diff changeset
    82
			</implementation>
cawthron
parents:
diff changeset
    83
		</implementations>
cawthron
parents:
diff changeset
    84
		
cawthron
parents:
diff changeset
    85
		<sourceMapping>
cawthron
parents:
diff changeset
    86
			<mapResource struct="LABEL" headers="eikon.rh uikon.rh">
cawthron
parents:
diff changeset
    87
				<mapSimpleMember property="text" member="txt"/>
cawthron
parents:
diff changeset
    88
				<mapEnumMember property="alignment" member="horiz_align"
cawthron
parents:
diff changeset
    89
					validate="false"
cawthron
parents:
diff changeset
    90
					headers="uikon.hrh"/>
cawthron
parents:
diff changeset
    91
				<mapEnumMember property="font" member="standard_font">
cawthron
parents:
diff changeset
    92
					<mapEnum value="standard.NormalFont" enumerator="EEikLabelFontNormal"/>
cawthron
parents:
diff changeset
    93
					<mapEnum value="standard.LegendFont" enumerator="EEikLabelFontLegend"/>
cawthron
parents:
diff changeset
    94
					<mapEnum value="standard.AnnotationFont" enumerator="EEikLabelFontAnnotation"/>
cawthron
parents:
diff changeset
    95
				</mapEnumMember>
cawthron
parents:
diff changeset
    96
			</mapResource>
cawthron
parents:
diff changeset
    97
		</sourceMapping>
cawthron
parents:
diff changeset
    98
		
cawthron
parents:
diff changeset
    99
		<sourceGen forms="Dialog Container">
cawthron
parents:
diff changeset
   100
			<useTemplateGroup ids="CLASS_CONTRIBS" />
cawthron
parents:
diff changeset
   101
			<useTemplate ids="INIT_FROM_CONTAINER" />
cawthron
parents:
diff changeset
   102
			<useTemplateGroup ids="CONTAINER_CHILD_CONTRIBS" />
cawthron
parents:
diff changeset
   103
			<useTemplate ids="INIT_FROM_DIALOG" />
cawthron
parents:
diff changeset
   104
			<useTemplate ids="LAYOUT_CONTROLS" />
cawthron
parents:
diff changeset
   105
cawthron
parents:
diff changeset
   106
			<inline>
cawthron
parents:
diff changeset
   107
this.getCppSystemIncludes(contribs, [ "barsread.h", "stringloader.h",
cawthron
parents:
diff changeset
   108
									"eiklabel.h", "eikenv.h" ]);
cawthron
parents:
diff changeset
   109
			</inline>
cawthron
parents:
diff changeset
   110
	
cawthron
parents:
diff changeset
   111
			<inline scope="prototype">
cawthron
parents:
diff changeset
   112
include("../srcgenLibrary.js")
cawthron
parents:
diff changeset
   113
			</inline>
cawthron
parents:
diff changeset
   114
			
cawthron
parents:
diff changeset
   115
			<inline><![CDATA[
cawthron
parents:
diff changeset
   116
if (Engine.formMatches(form, ["", "Dialog", "Container"])) {
cawthron
parents:
diff changeset
   117
	checkNull = (form == "Dialog");
cawthron
parents:
diff changeset
   118
	setPropertiesForPhase(contribs, "Initialize", 0, instanceMemberName, checkNull,
cawthron
parents:
diff changeset
   119
		properties.brushStyle, "ENullBrush", "{0}->SetBrushStyle( CWindowGc::{1} );\n",
cawthron
parents:
diff changeset
   120
		properties.emphasis, "ENoEmphasis", "{0}->SetEmphasis( CEikLabel::{1} );\n",
cawthron
parents:
diff changeset
   121
		properties.pixelGapBetweenLines, 0, "{0}->SetPixelGapBetweenLines( {1} );\n",
cawthron
parents:
diff changeset
   122
		properties.underline, 0, "{0}->SetUnderlining( {1} );\n",
cawthron
parents:
diff changeset
   123
		properties.strikethrough, 0, "{0}->SetStrikethrough( {1} );\n" );
cawthron
parents:
diff changeset
   124
}
cawthron
parents:
diff changeset
   125
]]>			</inline>
cawthron
parents:
diff changeset
   126
cawthron
parents:
diff changeset
   127
			<useTemplateGroup ids="GenerateCommonControlEvents GenerateStateChangedEvent"/>
cawthron
parents:
diff changeset
   128
			<useTemplateGroup ids="GenerateRequestingFocusEvent GenerateRequestingExitEvent"/>
cawthron
parents:
diff changeset
   129
			<useTemplateGroup ids="GenerateRequestingCancelEvent GenerateInteractionRefusedEvent"/>
cawthron
parents:
diff changeset
   130
			<useTemplateGroup ids="GeneratePrepareFocusTransitionEvent"/>
cawthron
parents:
diff changeset
   131
cawthron
parents:
diff changeset
   132
		</sourceGen>
cawthron
parents:
diff changeset
   133
	</component>
cawthron
parents:
diff changeset
   134
</componentDefinition>