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