|
2
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
2 |
<!-- START_USECASES: CU10 END_USECASES -->
|
|
|
3 |
<!DOCTYPE componentDefinition [
|
|
|
4 |
<!ENTITY common_events SYSTEM "ControlBase_events.inc">
|
|
|
5 |
<!ENTITY ControlEventSourcegen SYSTEM "../../ControlEventSourcegen.inc">
|
|
|
6 |
<!ENTITY ListBoxEventSourcegen SYSTEM "../../ListBoxEventSourcegen.inc">
|
|
|
7 |
] >
|
|
|
8 |
<!-- Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). -->
|
|
|
9 |
<!-- All rights reserved. -->
|
|
|
10 |
<!-- This component and the accompanying materials are made available -->
|
|
|
11 |
<!-- under the terms of the License "Eclipse Public License v1.0" -->
|
|
|
12 |
<!-- which accompanies this distribution, and is available -->
|
|
|
13 |
<!-- at the URL "http://www.eclipse.org/legal/epl-v10.html". -->
|
|
|
14 |
<componentDefinition xmlns="http://www.nokia.com/sdt/emf/component"
|
|
|
15 |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
|
|
16 |
|
|
|
17 |
<!-- This component is the abstract base component for
|
|
|
18 |
UIQ layout reference components
|
|
|
19 |
-->
|
|
|
20 |
<component
|
|
|
21 |
qualifiedName="com.nokia.carbide.uiq.LayoutControlBase"
|
|
|
22 |
baseComponent="com.nokia.carbide.uiq.ControlBase"
|
|
|
23 |
version="1.0"
|
|
|
24 |
abstract="true">
|
|
|
25 |
|
|
|
26 |
<symbian sdkName="com.uiq" minSDKVersion="3.0"/>
|
|
|
27 |
|
|
|
28 |
<attributes>
|
|
|
29 |
<attribute key="not-in-toolbox">true</attribute>
|
|
|
30 |
</attributes>
|
|
|
31 |
|
|
|
32 |
<properties>
|
|
|
33 |
<componentReferenceProperty name="control" scope="model" category="%category.design"
|
|
|
34 |
constraint="com.nokia.carbide.uiq.ControlCollectionItemBase"
|
|
|
35 |
readOnly="true" promoteReferenceProperties="true"
|
|
|
36 |
displayName="%control"
|
|
|
37 |
descriptionKey="controlDescription"/>
|
|
|
38 |
<!--TODO: temporary until the layout manager is implemented and integrated :
|
|
|
39 |
see DisplayModelUIQ#createLayoutObject and Container -->
|
|
|
40 |
<compoundProperty category="Hidden" name="location" displayName="%location"
|
|
|
41 |
type="com.nokia.carbide.uiq.locationProperty"
|
|
|
42 |
editorClass="com.nokia.sdt.symbian.ui.editors.ReadOnlySummaryEditorFactory"
|
|
|
43 |
descriptionKey="locationDescription" />
|
|
|
44 |
<compoundProperty category="Hidden" name="size" displayName="%size"
|
|
|
45 |
type="com.nokia.carbide.uiq.sizeProperty"
|
|
|
46 |
editorClass="com.nokia.sdt.symbian.ui.editors.ReadOnlySummaryEditorFactory"
|
|
|
47 |
descriptionKey="sizeDescription"/>
|
|
|
48 |
</properties>
|
|
|
49 |
|
|
|
50 |
<events defaultEventName="EEventStateChanged">
|
|
|
51 |
&common_events;
|
|
|
52 |
</events>
|
|
|
53 |
|
|
|
54 |
<implementations>
|
|
|
55 |
<implementation>
|
|
|
56 |
<interface id="com.nokia.sdt.datamodel.adapter.IPropertyExtenders"/>
|
|
|
57 |
<script file="LayoutControlBase_propertyExtenders.js" prototype="LayoutControlBase"/>
|
|
|
58 |
</implementation>
|
|
|
59 |
<implementation>
|
|
|
60 |
<interface id="com.nokia.sdt.datamodel.adapter.IClipboardCommandExtender"/>
|
|
|
61 |
<code class="com.nokia.carbide.cpp.uiq.components.layoutComponents.ClipboardCommandExtenderFactory"/>
|
|
|
62 |
</implementation>
|
|
|
63 |
</implementations>
|
|
|
64 |
|
|
|
65 |
<sourceGen>
|
|
|
66 |
<templateGroup id="GenerateControlSourceGen">
|
|
|
67 |
<inline scope="prototype">
|
|
|
68 |
${jsObject}.prototype.getInstanceMemberName = function(instance) {
|
|
|
69 |
return "i" + TextUtils.titleCase(instance.properties.control);
|
|
|
70 |
} </inline>
|
|
|
71 |
<inline forms="InstanceGen" id="0">
|
|
|
72 |
var targetInstance = lookupInstanceByName(instance.properties.control);
|
|
|
73 |
if (targetInstance) {
|
|
|
74 |
var targetContribs = Engine.generateRedirectedInstanceContributions(
|
|
|
75 |
targetInstance,
|
|
|
76 |
form,
|
|
|
77 |
instance);
|
|
|
78 |
contribs.addAll(targetContribs);
|
|
|
79 |
}
|
|
|
80 |
</inline>
|
|
|
81 |
</templateGroup>
|
|
|
82 |
|
|
|
83 |
&ControlEventSourcegen;
|
|
|
84 |
&ListBoxEventSourcegen;
|
|
|
85 |
|
|
|
86 |
</sourceGen>
|
|
|
87 |
|
|
|
88 |
</component>
|
|
|
89 |
|
|
|
90 |
</componentDefinition>
|